Skip to content

Commit 0d8576d

Browse files
hero section completed
1 parent 2ab528b commit 0d8576d

2 files changed

Lines changed: 45 additions & 1 deletion

File tree

index.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,15 @@
3838

3939
<!--main section-->
4040

41-
<main></main>
41+
<main>
42+
<section class="hero">
43+
<h4>Trade-in-offer</h4>
44+
<h2>Super value deals</h2>
45+
<h1>On all products</h1>
46+
<p>save more coupons & up to 70% off!</p>
47+
<button>Shop now</button>
48+
</section>
49+
</main>
4250

4351
<!--footer section-->
4452

style.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,40 @@ body {
9898
position: absolute;
9999
bottom: -4px;
100100
left: 20px;
101+
}
102+
103+
/* home main styles */
104+
105+
/* hero section styles */
106+
107+
section.hero{
108+
background-image: url(images/hero4.png);
109+
width: 100%;
110+
height: 90vh;
111+
background-size: cover;
112+
background-position: top 25% right 0;
113+
display: flex;
114+
flex-direction: column;
115+
align-items:flex-start;
116+
justify-content: center;
117+
padding: 0 80px;
118+
}
119+
120+
section.hero h4{
121+
padding-bottom: 15px;
122+
}
123+
section.hero h1{
124+
color: #088178;
125+
}
126+
section.hero button{
127+
background-color: transparent;
128+
background-image: url(images/button.png);
129+
background-repeat: no-repeat;
130+
background-size: cover;
131+
border: 0;
132+
cursor: pointer;
133+
font-size: 15px;
134+
font-weight: 700;
135+
color: #088178;
136+
padding: 14px 65px 14px 65px;
101137
}

0 commit comments

Comments
 (0)