Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion page.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,25 @@
</header>

<!--------------------MAIN----------------------------------->
<main></main>
<main>
<section class="hero-section">
<div class="hero-txt">
<h2>FREE COFFEE <br /><span>IS A TAP AWAY</span></h2>
<div class="hero-paragraph">
<p>Join now to start earning Rewards.</p>
<a href="#" class="anchor-1">Join now</a>
<p>
Or <span><a href="#">join in the app </a></span>for best
experience
</p>
</div>
</div>

<div id="'hero-img" class="hero-section-image">
<img src="assets/xl-hero-desktop_2021.png" />
</div>
</section>
</main>

<footer></footer>
</body>
Expand Down
55 changes: 54 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,58 @@
--White: #fff;
--Dark-Green: hsl(166, 34%, 17%);
--Green: hsl(157, 90%, 24%);
--Black: #333;
--Black: #000;
--light-green: #c6d6cc;
}
.hero-section {
font-family: Arial, sans-serif;
font-weight: 400;
background-color: var(--light-green);
display: flex;
justify-content: space-between;
align-content: center;
max-width: 100%;
height: 550px;
padding-left: 25px;
}
.hero-section-image img {
display: block;
width: 100%;
height: 550px;
max-width: 980px;
object-fit: cover;
}
.hero-txt {
padding-top: 150px;
padding-left: 12px;
max-width: 50%;
text-align: justify;
}
.hero-txt h1 {
font-size: 50px;
}
.hero-txt h1 span {
margin-top: 30px;
}
.hero-txt p {
font-size: 17px;
}
.hero-paragraph {
line-height: 2;
}
.hero-txt .anchor-1 {
text-decoration: none;
background-color: var(--Green);
color: var(--White);
border-radius: 20px;
padding: 4px 10px;
font-size: 12px;
cursor: pointer;
}
.hero-txt a {
color: var(--Black);
cursor: pointer;
}
.hero-txt:hover {
transition: 0.3s ease;
}