Skip to content

Commit

Permalink
fix: home page title structure
Browse files Browse the repository at this point in the history
  • Loading branch information
SidonieBouthors committed Jul 28, 2024
1 parent 4480e76 commit 7e24d72
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
6 changes: 2 additions & 4 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ export default function Home() {
return (
<>
<div className="home-hero">
<h1>
Welcome to my website!
<div className="subtitle">Recipes, projects & more</div>
</h1>
<h1>Welcome to my website!</h1>
<div className="subtitle">Recipes, projects & more</div>
</div>
<div className="home-page">
<InfoBox title="Note">
Expand Down
28 changes: 14 additions & 14 deletions styles/pages/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,34 @@
h1 {
font-family: $font-black;
font-size: 3rem;
padding: 0 1.5rem 6rem;
padding: 0 1.5rem;
margin: 0;
// Use the text-color from the dark theme
color: map.get($dark-theme-map, "text-color");
}

.subtitle {
font-family: $font-bold;
font-size: 2rem;
color: map.get($dark-theme-map, "secondary-text-color");
}
.subtitle {
text-align: center;
font-family: $font-bold;
font-size: 2rem;
color: map.get($dark-theme-map, "secondary-text-color");
}

@media screen and (min-width: 40rem) {
h1 {
font-size: 4rem;

.subtitle {
font-size: 2rem;
}
}
.subtitle {
font-size: 2rem;
}
}

@media screen and (min-width: 60rem) {
h1 {
font-size: 5rem;

.subtitle {
font-size: 3rem;
}
}
.subtitle {
font-size: 3rem;
}
}
}
Expand Down

0 comments on commit 7e24d72

Please sign in to comment.