Skip to content

Commit 934a0a6

Browse files
committed
Add Hero section part1.
1 parent f32f6a8 commit 934a0a6

File tree

2 files changed

+35
-13
lines changed

2 files changed

+35
-13
lines changed

starter/07-Omnifood-Desktop/content/css/style.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ body {
5252
color: #555;
5353
}
5454

55-
.test {
56-
background-color: red;
57-
padding: 100px;
58-
/* width: 1000px; */
59-
max-width: 1000px;
60-
61-
max-width: 50rem;
62-
padding: 4rem;
63-
font-size: 2rem;
64-
color: #fff;
65-
/* 1 rem = 16px -> 50rem = 800px */
55+
.hero {
56+
/* width: 1300px; */
57+
max-width: 130rem;
58+
margin: 0 auto;
59+
display: grid;
60+
grid-template-columns: 1fr 1fr;
61+
background-color: blueviolet;
62+
}
63+
64+
.hero-img {
65+
width: 100%;
6666
}

starter/07-Omnifood-Desktop/content/index.html

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,29 @@
99
<title>Omnifood</title>
1010
</head>
1111
<body>
12-
<h1>A healthy meal delivered to your door, every single day</h1>
13-
<div class="test">TEST</div>
12+
<section class="section-hero">
13+
<div class="hero">
14+
<div class="hero-text-box">
15+
<h1 class="heading-primary">
16+
A healthy meal delivered to your door, every single day
17+
</h1>
18+
<p class="hero-description">
19+
The smart 365-days-per-year food subscription that will make you eat
20+
healthy again. Tailored to your personal tastes and nutritional
21+
needs. We have delivered 250,000+ meals last year!
22+
</p>
23+
24+
<a href="#" class="btn">Start eating well</a>
25+
<a href="#" class="btn">Learn more &darr;</a>
26+
</div>
27+
<div class="hero-img-box">
28+
<img
29+
src="img/hero.png"
30+
alt="Woman enjoying food, meals in storage container, and food bowls on a table."
31+
class="hero-img"
32+
/>
33+
</div>
34+
</div>
35+
</section>
1436
</body>
1537
</html>

0 commit comments

Comments
 (0)