-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make text slightly bigger on phones (#3)
* make text slightly bigger on phones * make text slightly bigger * make text smaller on desktop view, while keeping it the same (big) on mobile view
- Loading branch information
1 parent
140f475
commit 0ac314e
Showing
1 changed file
with
48 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,72 @@ | ||
/* CSS styles */ | ||
body { | ||
background: linear-gradient(to right, #ff9a9e, #fad0c4); | ||
background-attachment: fixed; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
height: 100vh; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
font-family: Arial, sans-serif; | ||
overflow: hidden; | ||
background: linear-gradient(to right, #ff9a9e, #fad0c4); | ||
background-attachment: fixed; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
height: 100vh; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
font-family: Arial, sans-serif; | ||
overflow: hidden; | ||
} | ||
|
||
#quote-container { | ||
text-align: center; | ||
color: #333; | ||
opacity: 0; | ||
transform: translateY(100%); | ||
animation: fadeIn 1s ease-in-out forwards; | ||
text-align: center; | ||
color: #333; | ||
opacity: 0; | ||
transform: translateY(100%); | ||
animation: fadeIn 1s ease-in-out forwards; | ||
} | ||
|
||
#quote { | ||
font-size: 36px; | ||
margin-bottom: 10px; | ||
font-size: 36px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
#author { | ||
font-size: 18px; | ||
font-size: 18px; | ||
} | ||
|
||
@keyframes fadeIn { | ||
0% { | ||
opacity: 0; | ||
transform: translateY(100%); | ||
} | ||
100% { | ||
opacity: 1; | ||
transform: translateY(0%); | ||
} | ||
0% { | ||
opacity: 0; | ||
transform: translateY(100%); | ||
} | ||
100% { | ||
opacity: 1; | ||
transform: translateY(0%); | ||
} | ||
} | ||
|
||
/* Media queries */ | ||
@media (max-width: 768px) { | ||
#quote { | ||
font-size: 28px; | ||
} | ||
#quote { | ||
font-size: 40px; | ||
} | ||
|
||
#author { | ||
font-size: 14px; | ||
} | ||
#author { | ||
font-size: 18px; | ||
} | ||
} | ||
|
||
@media (max-width: 480px) { | ||
#quote { | ||
font-size: 22px; | ||
} | ||
#quote { | ||
font-size: 40px; | ||
} | ||
|
||
#author { | ||
font-size: 18px; | ||
} | ||
} | ||
|
||
@media (max-width: 320px) { | ||
#quote { | ||
font-size: 36px; | ||
} | ||
|
||
#author { | ||
font-size: 12px; | ||
} | ||
#author { | ||
font-size: 16px; | ||
} | ||
} |