Skip to content

Commit d4d6760

Browse files
feature section done
1 parent a75a7b4 commit d4d6760

2 files changed

Lines changed: 106 additions & 31 deletions

File tree

index.html

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,42 @@
3939
<!--main section-->
4040

4141
<main>
42-
<section class="hero">
42+
43+
<section id="hero">
4344
<h4>Trade-in-offer</h4>
4445
<h2>Super value deals</h2>
4546
<h1>On all products</h1>
4647
<p>save more coupons & up to 70% off!</p>
4748
<button>Shop now</button>
4849
</section>
50+
51+
<section id="features" class="section-p1">
52+
<div class="f-box">
53+
<img src="images/features/f1.png" alt="free shipping">
54+
<h6>Free shipping</h6>
55+
</div>
56+
<div class="f-box">
57+
<img src="images/features/f2.png" alt="online order">
58+
<h6>online order</h6>
59+
</div>
60+
<div class="f-box">
61+
<img src="images/features/f3.png" alt="save money">
62+
<h6>save money</h6>
63+
</div>
64+
<div class="f-box">
65+
<img src="images/features/f4.png" alt="promotions">
66+
<h6>promotions</h6>
67+
</div>
68+
<div class="f-box">
69+
<img src="images/features/f5.png" alt="happy sell">
70+
<h6>happy sell</h6>
71+
</div>
72+
<div class="f-box">
73+
<img src="images/features/f6.png" alt="24/7 support">
74+
<h6>24/7 support</h6>
75+
</div>
76+
</section>
77+
4978
</main>
5079

5180
<!--footer section-->

style.css

Lines changed: 76 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ body {
5151
background-color: #e3e6f3;
5252
padding: 20px 80px;
5353
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
54+
z-index: 999;
5455
position: sticky;
55-
top:0;
56+
top: 0;
5657
left: 0;
57-
z-index: 999;
5858
}
5959

6060
.header-list {
@@ -69,7 +69,6 @@ body {
6969
list-style-type: none;
7070
padding: 0 20px;
7171
position: relative;
72-
7372
}
7473
.header-list-nav ul a {
7574
text-decoration: none;
@@ -82,7 +81,6 @@ body {
8281
.header-list-nav ul a.active {
8382
color: #088178;
8483
content: "";
85-
8684
}
8785
.header-list-icon a {
8886
color: #1a1a1a;
@@ -94,48 +92,96 @@ body {
9492
color: #088178;
9593
}
9694
.header-list-nav ul li a:hover::after,
97-
.header-list-nav ul li a.active::after{
98-
content: "";
99-
width: 30%;
100-
height: 2px;
101-
background:#088178;
102-
position: absolute;
103-
bottom: -4px;
104-
left: 20px;
95+
.header-list-nav ul li a.active::after {
96+
content: "";
97+
width: 30%;
98+
height: 2px;
99+
background: #088178;
100+
position: absolute;
101+
bottom: -4px;
102+
left: 20px;
105103
}
106104

107105
/* home main styles */
108106

109107
/* hero section styles */
110108

111-
section.hero{
109+
section#hero {
112110
background-image: url(images/hero4.png);
113111
width: 100%;
114112
height: 90vh;
115113
background-size: cover;
116114
background-position: top 25% right 0;
117115
display: flex;
118116
flex-direction: column;
119-
align-items:flex-start;
117+
align-items: flex-start;
120118
justify-content: center;
121119
padding: 0 80px;
122120
}
123121

124-
section.hero h4{
122+
#hero h4 {
125123
padding-bottom: 15px;
126124
}
127-
section.hero h1{
128-
color: #088178;
129-
}
130-
section.hero button{
131-
background-color: transparent;
132-
background-image: url(images/button.png);
133-
background-repeat: no-repeat;
134-
background-size: cover;
135-
border: 0;
136-
cursor: pointer;
137-
font-size: 15px;
138-
font-weight: 700;
139-
color: #088178;
140-
padding: 14px 65px 14px 65px;
141-
}
125+
#hero h1 {
126+
color: #088178;
127+
}
128+
#hero button {
129+
background-color: transparent;
130+
background-image: url(images/button.png);
131+
background-repeat: no-repeat;
132+
background-size: cover;
133+
border: 0;
134+
cursor: pointer;
135+
font-size: 15px;
136+
font-weight: 700;
137+
color: #088178;
138+
padding: 14px 65px 14px 65px;
139+
}
140+
141+
/* feature section styles */
142+
#features {
143+
display: flex;
144+
align-items: center;
145+
justify-content: space-around;
146+
}
147+
#features .f-box {
148+
width: 180px;
149+
text-align: center;
150+
padding: 25px 15px;
151+
box-shadow: 20px 20px 34px rgba(0, 0, 0, 0.03);
152+
border: 1px solid #cce7d0;
153+
border-radius: 4px;
154+
margin: 15px 0;
155+
transition: box-shadow 0.3s;
156+
}
157+
#features .f-box:hover {
158+
box-shadow: 10px 10px 54px rgba(0, 0, 0, 0.1);
159+
}
160+
#features .f-box img {
161+
width: 100%;
162+
margin-bottom: 10px;
163+
}
164+
#features .f-box h6 {
165+
display: inline-block;
166+
padding: 9px 8px 6px 8px;
167+
line-height: 1;
168+
font-size: 14px;
169+
border-radius: 4px;
170+
color: #088178;
171+
background-color: #fddde4;
172+
}
173+
#features .f-box:nth-child(2) h6 {
174+
background-color: #cdebbc;
175+
}
176+
#features .f-box:nth-child(3) h6 {
177+
background-color: #d1e8f2;
178+
}
179+
#features .f-box:nth-child(4) h6 {
180+
background-color: #cdd4f8;
181+
}
182+
#features .f-box:nth-child(5) h6 {
183+
background-color: #f6dbf6;
184+
}
185+
#features .f-box:nth-child(6) h6 {
186+
background-color: #fff2e5;
187+
}

0 commit comments

Comments
 (0)