Skip to content
This repository was archived by the owner on Jun 4, 2020. It is now read-only.

Commit fb1331c

Browse files
committed
Site bar, qe logo in header
1 parent 91d8043 commit fb1331c

File tree

3 files changed

+65
-1
lines changed

3 files changed

+65
-1
lines changed

Diff for: _layouts/default.html

+24-1
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,35 @@
9494
</div>
9595

9696
<ul class="options">
97+
<li>
98+
<a href="https://quantecon.org/"
99+
><span class="sr-only">Visit QuantEcon</span></a
100+
>
101+
</li>
97102
<li><a href="/about">About these lectures</a></li>
98-
<li><a href="https://quantecon.org/">Visit QuantEcon</a></li>
99103
</ul>
100104
</div>
101105
</header>
102106

107+
<nav>
108+
<div class="container">
109+
<ul class="site-bar">
110+
<li>
111+
<a class="active" href="https://python.quantecon.org/">Home</a>
112+
</li>
113+
<li>
114+
<a href="https://python-programming.quantecon.org/"
115+
>Programming</a
116+
>
117+
</li>
118+
<li><a href="https://python-intro.quantecon.org/">Intro</a></li>
119+
<li>
120+
<a href="https://python-advanced.quantecon.org/">Advanced</a>
121+
</li>
122+
</ul>
123+
</div>
124+
</nav>
125+
103126
<main class="main">
104127
{{ content }}
105128
</main>

Diff for: assets/img/qe-squares.png

16.1 KB
Loading

Diff for: assets/sass/_main.scss

+41
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,18 @@ a:visited {
220220
a {
221221
color: #fff;
222222
}
223+
&:first-child {
224+
a {
225+
background-image: url(/assets/img/qe-squares.png);
226+
background-repeat: no-repeat;
227+
display: block;
228+
background-size: contain;
229+
width: 80px;
230+
height: 62px;
231+
position: relative;
232+
top: -5px;
233+
}
234+
}
223235
}
224236
@media (max-width: 1024px) {
225237
margin: 1rem 0 0 0;
@@ -368,3 +380,32 @@ a:visited {
368380
width: 1.25em;
369381
}
370382
}
383+
384+
.site-bar {
385+
list-style: none;
386+
margin: 0;
387+
padding: 0;
388+
display: flex;
389+
width: 100%;
390+
justify-content: space-between;
391+
li {
392+
display: block;
393+
width: 25%;
394+
line-height: 1;
395+
margin: 0;
396+
a {
397+
display: block;
398+
padding: 0.3rem 1rem;
399+
text-align: center;
400+
font-size: 1rem;
401+
//border: 1px solid #ddd;
402+
//border-width: 0 1px 1px 0;
403+
&:hover,
404+
&.active {
405+
background-color: #0072bc;
406+
color: #fff;
407+
text-decoration: none;
408+
}
409+
}
410+
}
411+
}

0 commit comments

Comments
 (0)