add theme picker

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2026-03-16 02:13:11 +01:00
parent a4337b3514
commit 49f457cda7
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
5 changed files with 122 additions and 21 deletions

View file

@ -1,4 +1,5 @@
#import "./custom_html.typ" as chtml
#import "./theme_picker.typ": theme_picker
/// Make the body of the webpage
#let html_body(
@ -10,9 +11,43 @@
logo_alt,
body
) = {
```raw-css
site-wrapper {
display: flex;
flex-wrap: wrap;
width: 100%;
justify-content: center;
nav {
display: flex;
theme-picker {
margin-left: auto;
}
}
site-container {
width: 1050px;
padding: 0 20px;
header {
// display: flex
// flex-wrap: wrap;
justify-content: space-between;
align-items: center;
padding: 15px 5px;
border-bottom: solid 1px var(--color-border);
margin-top: 15px;
}
}
}
```
html.body({
chtml.site-wrapper({
chtml.site-container({
html.nav({
theme_picker()
})
html.header(style: "display: flex; flex-wrap: wrap-reverse;", {
html.hgroup({
header