Skip to content

Commit 3b97afa

Browse files
authored
Add logo to website (#52)
1 parent 73958d3 commit 3b97afa

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

_assets/logo.png

37.6 KB
Loading

_assets/logo.svg

Lines changed: 1 addition & 0 deletions
Loading

_css/poole_hyde.css

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,14 +307,14 @@ a.sidebar-nav-item:focus {
307307
/* Sticky sidebar
308308
*
309309
* Add the `sidebar-sticky` class to the sidebar's container to affix it the
310-
* contents to the bottom of the sidebar in tablets and up.
310+
* contents to the top of the sidebar in tablets and up.
311311
*/
312312

313313
@media (min-width: 768px) {
314314
.sidebar-sticky {
315315
position: absolute;
316+
top: 1rem;
316317
right: 1rem;
317-
bottom: 1rem;
318318
left: 1rem;
319319
}
320320
}
@@ -338,3 +338,18 @@ a.sidebar-nav-item:focus {
338338
margin-right: 2rem;
339339
}
340340
}
341+
342+
/* Hide the logo on screens with width less than 768px */
343+
@media (max-width: 767px) {
344+
.logo-container {
345+
display: none;
346+
}
347+
}
348+
349+
/* Center the logo within the logo container */
350+
.logo-img {
351+
display: block;
352+
margin-bottom: 15px;
353+
margin-left: 20px;
354+
width: 150px;
355+
}

_layout/sidebar.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
<div class="container sidebar-sticky">
33
<div class="sidebar-about">
44
<h1><a href="/">MoJuWo</a></h1>
5-
<p class="lead"><b>Mo</b>dern <b>Ju</b>lia <b>Wo</b>rkflows</p>
5+
<div class="logo-container">
6+
<img src="/assets/logo.svg" alt="MoJuWo Logo" class="logo-img">
7+
</div>
8+
<p class="lead">Modern Julia Workflows</p>
69
</div>
710
<nav class="sidebar-nav">
811
<a class="sidebar-nav-item {{ispage index.html}}active{{end}}" href="/">Home</a>

0 commit comments

Comments
 (0)