Added menu in header and homepage

This commit is contained in:
2024-01-05 19:18:23 +01:00
parent ae583c7bb7
commit 7840029f8c
3 changed files with 58 additions and 9 deletions

View File

@ -7,6 +7,9 @@
header { header {
margin-bottom: 10vh; margin-bottom: 10vh;
display: flex;
justify-content: center;
align-items: stretch;
} }
header h1 { header h1 {
@ -14,6 +17,8 @@
font-family: "Degheest Director"; font-family: "Degheest Director";
font-weight: 600; font-weight: 600;
flex: 1;
} }
header h1 > a { header h1 > a {
@ -33,6 +38,24 @@
header h1 small { header h1 small {
display: block; display: block;
} }
nav li, nav li a {
color: #fff600;
text-decoration: none;
}
nav li a:hover {
text-decoration: underline;
}
nav ul {
list-style-type: none;
padding: none
}
nav {
text-align: right;
}
</style> </style>
<header> <header>
@ -40,6 +63,12 @@
<img src="/_src/img/logo_kiosque.svg" alt="Logo du site" /> <img src="/_src/img/logo_kiosque.svg" alt="Logo du site" />
<span>Infokiosque du LOL <small>Brochures et autres textes</small></span> <span>Infokiosque du LOL <small>Brochures et autres textes</small></span>
</a></h1> </a></h1>
<nav>
<ul>
<li><a href="https://labolyon.fr">Labolyon.fr</a></li>
<li><a href="https://wiki.labolyon.fr/doku.php?id=infokiosque">Wiki</a></li>
</ul>
</nav>
</header> </header>
<slot></slot> <slot></slot>

View File

@ -143,6 +143,27 @@ body > section {
text-align: center; text-align: center;
} }
.home nav li a::before {
content: none;
}
.home nav ul {
padding: 0;
display: flex;
justify-content: center;
align-items: center;
gap: 5px;
}
.home nav li {
color: #fff600;
}
.home nav ul li:not(:last-child)::after {
content: "•";
margin-left: 5px;
}
/* publication card */ /* publication card */
.publication-card { .publication-card {
@ -166,6 +187,7 @@ body > section {
.publication-card h1 { .publication-card h1 {
font-size: 1.5em; font-size: 1.5em;
margin: 0; margin: 0;
text-align: left;
} }
.publication-card p { .publication-card p {

View File

@ -15,6 +15,13 @@
<h1 property="name">Infokiosque du LOL <small>Brochures et autres textes</small></h1> <h1 property="name">Infokiosque du LOL <small>Brochures et autres textes</small></h1>
<nav>
<ul>
<li><a href="https://labolyon.fr">Labolyon.fr</a></li>
<li><a href="https://wiki.labolyon.fr/doku.php?id=infokiosque">Wiki</a></li>
</ul>
</nav>
<section id="publications" <section id="publications"
property="hasPart" property="hasPart"
typeof="Collection" typeof="Collection"
@ -29,15 +36,6 @@
</ul> </ul>
</section> </section>
<section>
<h2>Resources</h2>
<ul>
<li><a href="https://labolyon.fr">labolyon.fr</a></li>
<li><a href="https://equa.space/notes/pdfjam/">using <code>pdfjam</code> for zine creation and bookbinding</a></li>
</ul>
</section>
<template id="publication-card-tmplt"> <template id="publication-card-tmplt">
<article class="publication-card"> <article class="publication-card">
<img property="image" src="" alt="Couverture" /> <img property="image" src="" alt="Couverture" />