diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-05-13 08:13:37 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-05-13 08:13:37 +0200 |
commit | ad01e931c05d4e6b6cc03c979aba5bcffe875352 (patch) | |
tree | 207f9e14134a8af6b283cb5fe22bdbaa5a3c0fc2 /src/_layout.pug | |
parent | c2222f259fdaa05b483e4d01aa075e1e762bb040 (diff) | |
download | site-ad01e931c05d4e6b6cc03c979aba5bcffe875352.tar.gz site-ad01e931c05d4e6b6cc03c979aba5bcffe875352.zip |
Updates CHATONS site web
Diffstat (limited to 'src/_layout.pug')
-rw-r--r-- | src/_layout.pug | 89 |
1 files changed, 45 insertions, 44 deletions
diff --git a/src/_layout.pug b/src/_layout.pug index 5a7bb16..e185bcc 100644 --- a/src/_layout.pug +++ b/src/_layout.pug @@ -1,47 +1,48 @@ include _mixin/menu.pug - + block root doctype html - head - meta(charset='utf-8') - title 💮💮 deuxfleurs - #{title} - link(rel="stylesheet", href="/css/main.css") - meta(name="viewport", content="width=device-width, initial-scale=1.0") - body - aside - header - a#menu(href="#").mobile_inline - svg(viewBox="0 0 100 80", width="40", height="40") - rect(width="100", height="20") - rect(y="30" width="100" height="20") - rect(y="60" width="100" height="20") - - h1 - a(href="/") deuxfleurs - nav.computer_block - section.center - img(src="/img/flower.svg", width="40") - | - img(src="/img/flower.svg", width="40") - ul - li - a(href="https://plume.deuxfleurs.fr/timeline/1") Actualités - li - a(href="https://wiki.deuxfleurs.fr") Wiki - li - a(href="https://guichet.deuxfleurs.fr") Mon compte - hr - +menu(root, element) - - main - block content - - script. - (_ => { - const hamburger = document.getElementById('menu') - hamburger.onclick = _ => { - const nav = document.querySelector('body > aside > header > nav') - console.log(nav.style.display) - nav.style.display = nav.style.display != 'block' ? 'block' : 'none' - } - })() + html(lang="fr") + head + meta(charset='utf-8') + title 💮💮 deuxfleurs - #{title} + link(rel="stylesheet", href="/css/main.css") + meta(name="viewport", content="width=device-width, initial-scale=1.0") + body + aside + header + a#menu(href="#").mobile_inline + svg(viewBox="0 0 100 80", width="40", height="40") + rect(width="100", height="20") + rect(y="30" width="100" height="20") + rect(y="60" width="100" height="20") + + h1 + a(href="/") deuxfleurs + nav.computer_block + section.center + img(alt="emoji fleur", src="/img/flower.svg", width="40") + | + img(alt="emoji fleur", src="/img/flower.svg", width="40") + ul + li + a(href="https://plume.deuxfleurs.fr/timeline/1") Actualités + li + a(href="https://wiki.deuxfleurs.fr") Wiki + li + a(href="https://guichet.deuxfleurs.fr") Mon compte + hr + +menu(root, element) + + main + block content + + script. + (_ => { + const hamburger = document.getElementById('menu') + hamburger.onclick = _ => { + const nav = document.querySelector('body > aside > header > nav') + console.log(nav.style.display) + nav.style.display = nav.style.display != 'block' ? 'block' : 'none' + } + })() |