Skip to content

Commit 26aece8

Browse files
Hero section is complete
1 parent 83a2e4d commit 26aece8

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

starter/07-Omnifood-Desktop/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
<meta charset="UTF-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<link rel="preconnect" href="https://fonts.googleapis.com" />
8+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
9+
<link
10+
href="https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap"
11+
rel="stylesheet"
12+
/>
713
<link rel="stylesheet" href="style.css" />
814
<title>Omnifood</title>
915
</head>
@@ -23,6 +29,17 @@ <h1 class="heading-primary">
2329
>Start eating well</a
2430
>
2531
<a href="#" class="btn btn--outline">Learn more &darr;</a>
32+
<div class="delivered-meals">
33+
<div class="delivered-imgs">
34+
<img src="./content/img/customers/customer-1.jpg" alt="Customer Image">
35+
<img src="./content/img/customers/customer-2.jpg" alt="Customer Image">
36+
<img src="./content/img/customers/customer-3.jpg" alt="Customer Image">
37+
<img src="./content/img/customers/customer-4.jpg" alt="Customer Image">
38+
<img src="./content/img/customers/customer-5.jpg" alt="Customer Image">
39+
<img src="./content/img/customers/customer-6.jpg" alt="Customer Image">
40+
</div>
41+
<p class="delivered-text"><span>250000+</span> meals delivered last year</p>
42+
</div>
2643
</div>
2744
<div class="hero-img-box">
2845
<img

starter/07-Omnifood-Desktop/style.css

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ html{
99
}
1010

1111
body {
12-
font-family: "sans-serif";
12+
font-family: "Rubik", sans-serif;
1313
line-height: 1;
1414
font-weight: 400;
1515
color: #555;
@@ -53,6 +53,7 @@ body {
5353
display: inline-block;
5454
text-decoration: none;
5555
font-size: 2rem;
56+
font-weight: 600;
5657
padding: 1.6rem 3.2rem;
5758
border-radius: 9px;
5859
transition: background-color 0.3s;
@@ -85,4 +86,37 @@ body {
8586

8687
.margin-right-sm{
8788
margin-right: 1.6rem !important;
89+
}
90+
91+
.delivered-meals{
92+
display: flex;
93+
align-items: center;
94+
gap: 1.6rem;
95+
margin-top: 8rem;
96+
}
97+
98+
.delivered-imgs{
99+
display: flex;
100+
}
101+
102+
.delivered-imgs img{
103+
border-radius: 50%;
104+
height: 4.8rem;
105+
width: 4.8rem;
106+
border: 3px solid #fdf2e9;
107+
margin-right: -1.6rem;
108+
}
109+
110+
.delivered-imgs img:last-child{
111+
margin: 0;
112+
}
113+
114+
.delivered-text{
115+
font-size: 1.6rem;
116+
font-weight:600;
117+
}
118+
119+
.delivered-text span{
120+
color: #cf711f;
121+
font-weight: 700;
88122
}

0 commit comments

Comments
 (0)