Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Fixed hero text on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
nienow committed Dec 13, 2023
1 parent 77f46b5 commit 1af2bc6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
26 changes: 25 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ const twitterSVG = await fetch('https://storage.googleapis.com/randombits/images
font-size: 5rem;
margin-bottom: 0;
font-family: 'Poiret One', cursive;
text-align: right;
letter-spacing: 6px;
font-weight: bold;
text-align: right;
}

.hero-text-2 {
Expand All @@ -100,6 +100,30 @@ const twitterSVG = await fetch('https://storage.googleapis.com/randombits/images
font-size: 3rem;
}

@media screen and (max-width: 1000px) {
.hero-text-1 {
font-size: 3rem;
text-align: center;
}

.hero-text-2 {
font-size: 2rem;
text-align: center;
}
}

@media screen and (max-width: 600px) {
.hero-text-1 {
font-size: 3rem;
text-align: center;
}

.hero-text-2 {
font-size: 1.5rem;
text-align: center;
}
}

.choose {
//font-family: 'Edu SA Beginner', sans-serif;
font-size: 1.5rem;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ button {

.title-total, .title-percent {
font-size: 1.5rem;
padding: 0.5rem 2rem;
padding: 0.5rem 1rem;
flex: 1 1 auto;
text-align: right;
}
Expand Down

0 comments on commit 1af2bc6

Please sign in to comment.