Skip to content

Commit 8fe6927

Browse files
Header section completed
1 parent 26aece8 commit 8fe6927

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

starter/07-Omnifood-Desktop/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
<title>Omnifood</title>
1515
</head>
1616
<body>
17+
<header class="header">
18+
<img class="logo" src="./content/img/omnifood-logo.png" alt="omnifood-logo ">
19+
<nav class="main-nav">Navigation</nav>
20+
</header>
21+
<main>
1722
<section class="section-hero">
1823
<div class="hero">
1924
<div class="hero-text-box">
@@ -50,5 +55,6 @@ <h1 class="heading-primary">
5055
</div>
5156
</div>
5257
</section>
58+
</main>
5359
</body>
5460
</html>

starter/07-Omnifood-Desktop/style.css

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ body {
1717

1818
.section-hero{
1919
background-color: #fdf2e9;
20-
padding: 9.6rem 0;
20+
padding: 4.8rem 0 9.6rem 0;
2121
}
2222

2323
.hero{
2424
max-width: 130rem;
2525
margin: 0 auto;
26+
27+
padding: 0 3.2rem;
2628
display: grid;
2729
grid-template-columns: 1fr 1fr;
2830
gap: 9.6rem;
@@ -119,4 +121,18 @@ body {
119121
.delivered-text span{
120122
color: #cf711f;
121123
font-weight: 700;
124+
}
125+
126+
/* Header */
127+
128+
.header{
129+
display: flex;
130+
align-items: center;
131+
justify-content: space-between;
132+
background-color: #fdf2e9;
133+
height: 9.6rem;
134+
padding: 0 4.8rem;
135+
}
136+
.logo{
137+
height: 2.2rem;
122138
}

0 commit comments

Comments
 (0)