Skip to content

Commit 06bd3ab

Browse files
committed
Improve navigation bar
1 parent d400f90 commit 06bd3ab

File tree

4 files changed

+59
-24
lines changed

4 files changed

+59
-24
lines changed

_includes/header.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,20 @@
1313
{% else %}
1414
<img class="headerIcon" src="{{ site.app_icon }}">
1515
{% endif %}
16+
<div class="divider"></div>
1617
</div>
1718
<p class="headerName">{{ site.app_name }}</p>
1819
</div>
1920
<nav class="scroll">
2021
<ul>
22+
{% for page in site.pages %}
23+
{% if page.include_in_header == true %}
24+
<li><a href="{{ page.url | relative_url }}" target="_self">{{ page.title }}</a></li>
25+
{% endif %}
26+
{% endfor %}
2127
{% if site.presskit_download_link %}
22-
<li><a href="{{ site.presskit_download_link }}">Press Kit</a></li>
28+
<li><a href="{{ site.presskit_download_link }}">Press Kit</a></li>
2329
{% endif %}
24-
<li><a href="{{ page.url | relative_url }}">Changelog</a></li>
25-
<li><a href="{{ page.url | relative_url }}">Privacy Policy</a></li>
2630
</ul>
2731
</nav>
2832
</header>

_pages/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: page
33
title: What's New
4+
include_in_header: true
45
---
56

67
# Changelog

_pages/privacypolicy.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: page
33
title: Privacy Policy
4+
include_in_header: false
45
---
56

67
**Last updated**

_sass/layout.scss

Lines changed: 50 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@
2020
background-color: rgba($header-color, $header-transparency);
2121
}
2222

23+
@media only screen and (max-width: 768px) {
24+
25+
.headerBackground {
26+
height: 80px;
27+
}
28+
29+
}
30+
2331
.subPageHeaderBackground {
2432
background-color: #fff;
2533
}
@@ -40,26 +48,10 @@
4048
"f f f f f f f f f f f f";
4149
}
4250

43-
.page {
44-
margin-top: 30px;
45-
margin-bottom: 70px;
46-
grid-column: 3/11;
47-
}
48-
49-
@media only screen and (max-width: 768px) {
50-
51-
.page {
52-
margin-top: 30px;
53-
margin-bottom: 70px;
54-
grid-column: 1/-1;
55-
}
56-
57-
}
58-
5951
@media only screen and (max-width: 1070px) {
6052

6153
.container { // Set up the container for the site content
62-
grid-template-rows: 115px 811px auto auto;
54+
grid-template-rows: 80px 811px auto auto;
6355
}
6456
}
6557

@@ -68,7 +60,7 @@
6860
.container {
6961
grid-column-gap: 0px;
7062
grid-template-columns: 1;
71-
grid-template-rows: 115px auto auto auto auto;
63+
grid-template-rows: 80px auto auto auto auto;
7264
grid-template-areas:
7365
"h h h h h h h h h h h h"
7466
"i i i i i i i i i i i i"
@@ -78,6 +70,22 @@
7870
}
7971
}
8072

73+
.page {
74+
margin-top: 30px;
75+
margin-bottom: 70px;
76+
grid-column: 3/11;
77+
}
78+
79+
@media only screen and (max-width: 768px) {
80+
81+
.page {
82+
margin-top: 30px;
83+
margin-bottom: 70px;
84+
grid-column: 1/-1;
85+
}
86+
87+
}
88+
8189
header {
8290
grid-area: h;
8391
display: flex;
@@ -96,12 +104,13 @@ header {
96104
white-space: nowrap;
97105
display: flex;
98106
font-weight: bold;
99-
padding-bottom: 0px;
107+
margin-left: 15px;
100108
}
101109

102110
@media only screen and (max-width: 768px) {
103111

104112
.logo {
113+
height: 80px;
105114
margin-right: 0px;
106115
}
107116

@@ -116,9 +125,20 @@ header {
116125
height: 50px;
117126
-webkit-clip-path: url(#shape);
118127
clip-path: url(#shape);
119-
margin-right: 15px;
120128
}
121129

130+
@media only screen and (max-width: 768px) {
131+
132+
.divider {
133+
position: relative;
134+
min-width: 1px;
135+
max-width: 1px;
136+
background-color:rgba(#ffffff, 0.1);
137+
display: inline-block;
138+
margin-left: 15px;
139+
}
140+
141+
}
122142

123143

124144
// Navigation Links
@@ -127,7 +147,7 @@ header {
127147
width: 100%;
128148
align-items: center;
129149
justify-content: flex-end;
130-
150+
131151
margin-left: 15px;
132152
height: 115px;
133153

@@ -141,6 +161,7 @@ header {
141161
@media only screen and (max-width: 768px) {
142162

143163
.scroll {
164+
height: 80px;
144165
justify-content: flex-start;
145166
}
146167

@@ -162,6 +183,14 @@ nav > ul li {
162183
padding-left: 30px;
163184
}
164185

186+
@media only screen and (max-width: 768px) {
187+
188+
nav > ul li {
189+
padding-left: 20px;
190+
}
191+
192+
}
193+
165194
nav > ul li:first-child {
166195
padding-left: 0px;
167196
}

0 commit comments

Comments
 (0)