Skip to content

Commit

Permalink
Made the covers work better on smartphones.
Browse files Browse the repository at this point in the history
  • Loading branch information
originalnicodr committed Dec 16, 2023
1 parent dadf628 commit 2f991c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/home/year-cover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const framedTextStyle: CSS.Properties = {
top: '13%',
left: '50%',
fontWeight: 'bold',
fontSize: '88px',//'110px',
fontSize: `18cqw`,
textAlign: 'center',
transform: 'translate(-50%, -50%)',
opacity: '90%',
Expand All @@ -85,7 +85,7 @@ const yearTextStyle: CSS.Properties = {
top: '85%',
left:' 50%',
fontWeight: 'lighter',
fontSize: '76px',//'95px',
fontSize: '14cqw',
textAlign: 'center',
transform: 'translate(-50%, -50%)',
opacity: '80%',
Expand Down
4 changes: 4 additions & 0 deletions styles/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@ html {
}
}
}

.year-cover-container {
container-type: inline-size;
}

0 comments on commit 2f991c5

Please sign in to comment.