Skip to content

Commit

Permalink
Add navigation menu
Browse files Browse the repository at this point in the history
  • Loading branch information
daschi committed Dec 17, 2023
1 parent 69e9481 commit 61d5dd5
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 8 deletions.
2 changes: 1 addition & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@200&display=swap"
rel="stylesheet"
/>
<!-- Poppins Font -->
<!-- Poppins Font -->
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400&display=swap"
rel="stylesheet"
Expand Down
16 changes: 14 additions & 2 deletions _layouts/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---

<aside class="sidebar">
<header>
<header class="about-header">
<div class="about">
<div class="cover-author-image">
<a href="{{site.baseurl}}/"
Expand All @@ -16,8 +16,20 @@
<p>{{site.about-author}}</p>
</div>
</header>
<section class="navigation-menu">
<div>
<ul>
<li>
<a href="{{ site.baseurl }}/itinerary">Itinerary</a>
</li>
<li>
<a href="{{ site.baseurl }}/">Posts</a>
</li>
</ul>
</div>
</section>
<!-- End Header -->
<footer>
<footer class="footer">
<section class="contact">
<h3 class="contact-title">Message us</h3>
<ul>
Expand Down
33 changes: 28 additions & 5 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -941,18 +941,19 @@ table tfoot td {
/* - - - - - - - - - - Home Page Styles - - - - - - - - - - */
.sidebar {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
display: -webkit-grid;
display: -ms-grid;
display: grid;
grid-template-rows: 1fr 1fr 1fr;
/* -webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
justify-content: space-between; */
position: fixed;
top: 0;
left: 0;
Expand All @@ -963,6 +964,10 @@ table tfoot td {
background-color: #ffffff;
}

.about-header {
grid-area: 1;
}

.about {
margin: 0 0 40px;
text-align: center;
Expand Down Expand Up @@ -1127,6 +1132,10 @@ footer .copyright {
margin: 0;
}

footer.footer {
grid-area: 4;
}

.post {
width: 100%;
max-width: 100%;
Expand Down Expand Up @@ -1477,6 +1486,7 @@ a.newer-posts:hover {
.sidebar footer {
margin-bottom: 10px;
}

.about {
text-align: center;
max-width: 480px;
Expand Down Expand Up @@ -1546,3 +1556,16 @@ a.newer-posts:hover {
#itinerary-title {
width: 100%;
}

.navigation-menu {
grid-area: 2;
ul {
list-style-type: none;
}
ul > li > a {
text-decoration: none;
&:active {
color: #145369;
}
}
}

0 comments on commit 61d5dd5

Please sign in to comment.