add header and menu partials with theme toggle functionality
This commit is contained in:
parent
1ecc5e82f4
commit
50074cc1cc
2 changed files with 162 additions and 0 deletions
37
layouts/partials/menu.html
Normal file
37
layouts/partials/menu.html
Normal file
|
@ -0,0 +1,37 @@
|
|||
<style>
|
||||
.menu {
|
||||
display: flex;
|
||||
flex-wrap: wrap; /* Allow items to wrap onto multiple lines */
|
||||
list-style: none;
|
||||
margin: 0; /* Remove default margin */
|
||||
padding: 0; /* Remove default padding */
|
||||
justify-content: flex-end; /* Align items to the right */
|
||||
}
|
||||
.menu li {
|
||||
margin: 0 10px; /* Add spacing between menu items */
|
||||
display: inline-flex; /* Align emoji and text inline */
|
||||
align-items: center; /* Vertically center emoji and text */
|
||||
}
|
||||
.menu li a {
|
||||
margin-left: 5px; /* Add spacing between emoji and text */
|
||||
text-decoration: none; /* Remove underline */
|
||||
}
|
||||
.menu li a:hover {
|
||||
text-decoration: underline; /* Add underline on hover */
|
||||
}
|
||||
</style>
|
||||
<ul class="menu">
|
||||
<li>📝<a href="blog">Blog</a></li>
|
||||
<p> · </p>
|
||||
<li>📠<a href="collection">Machines</a></li>
|
||||
<p> · </p>
|
||||
<li>🔗<a href="liens">Liens</a></li>
|
||||
<p> · </p>
|
||||
<li>📖<a href="livres">Lectures</a></li>
|
||||
<p> · </p>
|
||||
<li>🌐<a href="blogroll">Blogroll</a></li>
|
||||
<p> · </p>
|
||||
<li>❓<a href="a-propos">A propos</a></li>
|
||||
<p> · </p>
|
||||
<li>✉️<a href="contact">Contact</a></li>
|
||||
</ul>
|
Loading…
Add table
Add a link
Reference in a new issue