Skip to content

Commit ca29ab4

Browse files
committed
Styling the navigation and adding a logo
1 parent f46f357 commit ca29ab4

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

_includes/header.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11

22
<header>
3+
<div class="logo">
4+
<h3>Your App</h3>
5+
</div>
36
<nav>
47
<ul>
58
<li><a href="/">Home</a></li>

_sass/base.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$content-width: 1140px;
1+
$content-width: 1170px;
22
$accent-color: #00ff33;
33

44
$font: 'Helvetica Neue', sans-serif;

_sass/layout.scss

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ body {
77

88
.container {
99
display: grid;
10+
margin: auto;
1011
max-width: $content-width;
1112
padding-left: 15px;
1213
padding-right: 15px;
@@ -21,9 +22,39 @@ body {
2122
}
2223

2324
header {
24-
display: grid;
2525
grid-area: h;
2626
background-color:rgb(0, 255, 13);
27+
28+
display: grid;
29+
grid-template-columns: repeat(2, 1fr);
30+
grid-template-areas: "logo nav";
31+
}
32+
33+
.logo {
34+
grid-area: logo;
35+
display: flex;
36+
justify-content: flex-start;
37+
align-items: center;
38+
height: 60px;
39+
background-color: rgb(56, 56, 56);
40+
}
41+
42+
nav {
43+
grid-area: nav;
44+
display: flex;
45+
justify-content: flex-end;
46+
align-items: center;
47+
height: 60px;
48+
background-color: #000;
49+
}
50+
51+
nav > ul {
52+
display: flex;
53+
list-style-type: none;
54+
}
55+
56+
nav > ul li:nth-last-child(1n-1) {
57+
padding-left: 30px;
2758
}
2859

2960
.features {

0 commit comments

Comments
 (0)