Skip to content

Commit 8a307d1

Browse files
committed
completing the hero section
- adding font - and customers
1 parent 658578c commit 8a307d1

File tree

2 files changed

+55
-7
lines changed

2 files changed

+55
-7
lines changed

practice/07 - Omnifood-Desktop/css/style.css

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414
-- 02 COLORS
1515
1616
- Primary: #e67e22
17-
18-
- Tints:
19-
#fdf2e9
20-
- Shades:
17+
- Tints: #fdf2e9
18+
- Shades: #cf711f
2119
- Accents:
2220
- Greys:
2321
#555
@@ -46,7 +44,7 @@ html {
4644
}
4745

4846
body {
49-
font-family: sans-serif;
47+
font-family: 'Rubik', sans-serif;
5048
line-height: 1;
5149
font-weight: 400;
5250
color: #555;
@@ -88,6 +86,7 @@ body {
8886
color: #fff;
8987
text-decoration: none;
9088
font-size: 2rem;
89+
font-weight: 600;
9190
padding: 1.6rem 3.2rem;
9291
border-radius: 9px;
9392

@@ -116,7 +115,7 @@ body {
116115
background-color: #fdf2e9;
117116
/*border: 3px solid #fff;*/
118117

119-
/* Trick to add border inside */
118+
/* Trick to add border inside */
120119
box-shadow: inset 0 0 0 3px #fff;
121120
}
122121

@@ -127,4 +126,37 @@ body {
127126

128127
.margin-right-sm {
129128
margin-right: 1.6rem !important;
129+
}
130+
131+
.delivered-meals {
132+
display: flex;
133+
align-items: center;
134+
gap: 1.6rem;
135+
margin-top: 8rem;
136+
}
137+
138+
.delivered-imgs {
139+
display: flex;
140+
}
141+
142+
.delivered-imgs img {
143+
height: 4.8rem;
144+
width: 4.8rem;
145+
border-radius: 50%;
146+
margin-right: -1.6rem;
147+
border: 3px solid #fdf2e9;
148+
}
149+
150+
.delivered-imgs img:last-child {
151+
margin: 0;
152+
}
153+
154+
.delivered-meals p span {
155+
color: #cf711f;
156+
font-weight: 700;
157+
}
158+
159+
.delivered-text {
160+
font-size: 1.8rem;
161+
font-weight: 600;
130162
}

practice/07 - Omnifood-Desktop/index.html

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
name="viewport">
77
<meta content="ie=edge" http-equiv="X-UA-Compatible">
88
<title>Omnifood</title>
9+
<link href="https://fonts.googleapis.com" rel="preconnect">
10+
<link crossorigin href="https://fonts.gstatic.com" rel="preconnect">
11+
<link href="https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,400;0,500;0,600;0,700;1,600&display=swap"
12+
rel="stylesheet">
913
<link href="css/style.css" rel="stylesheet">
1014
</head>
1115
<body>
@@ -19,9 +23,21 @@ <h1 class="heading-primary">A healthy meal delivered to your door, every single
1923
</p>
2024
<a class="btn btn--full margin-right-sm" href="#">Start Eating Well</a>
2125
<a class="btn btn--outline" href="#">Learn More &darr;</a>
26+
<div class="delivered-meals">
27+
<div class="delivered-imgs">
28+
<img alt="customer1" src="img/customers/customer-1.jpg">
29+
<img alt="customer2" src="img/customers/customer-2.jpg">
30+
<img alt="customer3" src="img/customers/customer-3.jpg">
31+
<img alt="customer4" src="img/customers/customer-4.jpg">
32+
<img alt="customer5" src="img/customers/customer-5.jpg">
33+
<img alt="customer6" src="img/customers/customer-6.jpg">
34+
</div>
35+
<p class="delivered-text"><span>250,000+</span> meals delivered last year!</p>
36+
</div>
2237
</div>
2338
<div class="hero-img-box">
24-
<img alt="Woman enjoying food, meask in storage container, and food bowls on a table" src="img/hero.png" class="hero-img">
39+
<img alt="Woman enjoying food, meask in storage container, and food bowls on a table" class="hero-img"
40+
src="img/hero.png">
2541
</div>
2642
</div>
2743
</section>

0 commit comments

Comments
 (0)