Skip to content

Commit

Permalink
hero section
Browse files Browse the repository at this point in the history
  • Loading branch information
ropdias committed Jul 8, 2024
1 parent 4cdbb44 commit 3d493e7
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/assets/bg-hero-desktop.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/music-bars.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,17 @@
</nav>
</div>
</header>
<section id="hero">
<div class="container py-xl">
<img src="assets/music-bars.svg" alt="" />
<h1>Quem canta seus males espanta</h1>
<p>Cantar nunca foi tão fácil</p>

<div class="buttons flex items-center gap-1">
<a href="#pricing" aria-label="Ver planos" class="btn btn-md"></a>
<a href="#downloads" class="btn btn-md">Baixar agora</a>
</div>
</div>
</section>
</body>
</html>
47 changes: 47 additions & 0 deletions src/styles/hero.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#hero {
text-align: center;

& img[src*='music'] {
width: 12.875rem;
}

& h1 {
margin-top: 1rem;
}

& p {
font: var(--fw-md) var(--fs-lg) / 1.4 var(--ff-sans);
color: var(--text-color-secondary);
margin-top: 0.5rem;
}

& .buttons {
justify-content: center;
margin-top: 2rem;
}
}

@media (width >= 80em) {
#hero {
background: url(../assets/bg-hero-desktop.svg) no-repeat bottom
center/contain;
padding-bottom: 15rem;

& img[src*='music'] {
width: 25.75rem;
}

& h1 {
margin-top: 1.5rem;
}

& p {
margin-top: 1rem;
font-size: 2.5rem;
}

.buttons {
margin-top: 3rem;
}
}
}
1 change: 1 addition & 0 deletions src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
@import url(buttons.css);
@import url(social.css);
@import url(header.css);
@import url(hero.css);

0 comments on commit 3d493e7

Please sign in to comment.