From ac3e7e494669f6f923cb240f03d974efc6c84899 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Mon, 2 Mar 2020 23:54:46 +0100 Subject: Migrate website to my own static site generator --- src/.well-known/matrix/client | 9 ++++ src/.well-known/matrix/server | 0 src/Documentation/Association/index.md | 0 src/Documentation/Technique/index.md | 0 src/Documentation/_markdown.pug | 22 +++++++++ src/Documentation/index.md | 1 + src/_layout.pug | 10 ++-- src/css/main.css | 78 ++++++++++++++++++++++++++++++++ src/documentation.pug | 9 ---- src/fonts/texgyreheros-bold.otf | Bin 0 -> 144464 bytes src/fonts/texgyreheros-bolditalic.otf | Bin 0 -> 146012 bytes src/fonts/texgyreheros-italic.otf | Bin 0 -> 150164 bytes src/fonts/texgyreheros-regular.otf | Bin 0 -> 143912 bytes src/fonts/texgyreheroscn-bold.otf | Bin 0 -> 140124 bytes src/fonts/texgyreheroscn-bolditalic.otf | Bin 0 -> 147024 bytes src/fonts/texgyreheroscn-italic.otf | Bin 0 -> 146948 bytes src/fonts/texgyreheroscn-regular.otf | Bin 0 -> 139992 bytes src/img/arobase.png | Bin 0 -> 1326 bytes src/img/flower.svg | 1 + src/robots.txt | 2 + 20 files changed, 118 insertions(+), 14 deletions(-) create mode 100644 src/.well-known/matrix/client create mode 100644 src/.well-known/matrix/server create mode 100644 src/Documentation/Association/index.md create mode 100644 src/Documentation/Technique/index.md create mode 100644 src/Documentation/_markdown.pug create mode 100644 src/Documentation/index.md create mode 100644 src/css/main.css delete mode 100644 src/documentation.pug create mode 100644 src/fonts/texgyreheros-bold.otf create mode 100644 src/fonts/texgyreheros-bolditalic.otf create mode 100644 src/fonts/texgyreheros-italic.otf create mode 100644 src/fonts/texgyreheros-regular.otf create mode 100644 src/fonts/texgyreheroscn-bold.otf create mode 100644 src/fonts/texgyreheroscn-bolditalic.otf create mode 100644 src/fonts/texgyreheroscn-italic.otf create mode 100644 src/fonts/texgyreheroscn-regular.otf create mode 100644 src/img/arobase.png create mode 100644 src/img/flower.svg create mode 100644 src/robots.txt (limited to 'src') diff --git a/src/.well-known/matrix/client b/src/.well-known/matrix/client new file mode 100644 index 0000000..d34a03a --- /dev/null +++ b/src/.well-known/matrix/client @@ -0,0 +1,9 @@ +{ + "m.homeserver": { + "base_url": "https://im.deuxfleurs.fr" + }, + "m.identity_server": { + "base_url": "https://vector.im" + } +} + diff --git a/src/.well-known/matrix/server b/src/.well-known/matrix/server new file mode 100644 index 0000000..e69de29 diff --git a/src/Documentation/Association/index.md b/src/Documentation/Association/index.md new file mode 100644 index 0000000..e69de29 diff --git a/src/Documentation/Technique/index.md b/src/Documentation/Technique/index.md new file mode 100644 index 0000000..e69de29 diff --git a/src/Documentation/_markdown.pug b/src/Documentation/_markdown.pug new file mode 100644 index 0000000..ea23f15 --- /dev/null +++ b/src/Documentation/_markdown.pug @@ -0,0 +1,22 @@ +extends ../_layout.pug + +prepend root + - title = element.nice_path[element.nice_path.length - 1] + +mixin menu(o) + ul + each val in o.children + - if (val.type == 'folder') + li + a(href=val.url)= val.nice_name + +menu(val) + +block content + .container.spacing + nav + strong + a(href="/Documentation") Documentation + +menu(root.children.find(e => e.nice_name == "Documentation")) + + main.spacing + != markdown diff --git a/src/Documentation/index.md b/src/Documentation/index.md new file mode 100644 index 0000000..cd99fca --- /dev/null +++ b/src/Documentation/index.md @@ -0,0 +1 @@ +# hello ! diff --git a/src/_layout.pug b/src/_layout.pug index 37d269a..a01151f 100644 --- a/src/_layout.pug +++ b/src/_layout.pug @@ -3,19 +3,19 @@ block root head meta(charset='utf-8') title 💮💮 deuxfleurs - #{title} - link(rel="stylesheet", href="css/main.css") + link(rel="stylesheet", href="/css/main.css") header .container .menu-item - a(href='index.html') + a(href='/') strong deuxfleurs  - img(src='img/flower.svg' width='38') - img(src='img/flower.svg' width='38') + img(src='/img/flower.svg' width='38') + img(src='/img/flower.svg' width='38') .menu-item a(href='https://guichet.deuxfleurs.fr') compte span  |  .menu-item - a(href='documentation.html') doc + a(href='/Documentation') doc span  |  h1 #{title} main diff --git a/src/css/main.css b/src/css/main.css new file mode 100644 index 0000000..37666f7 --- /dev/null +++ b/src/css/main.css @@ -0,0 +1,78 @@ +@font-face { + font-family: "Heroes"; + src: url('../fonts/texgyreheros-regular.otf') format('truetype'); +} +* { + font-family: Heroes; + margin: 0; + padding: 0; +} + +header { + background-color: #519c60; + color: #ffffff; + padding: 30px 0px 1px 0px; +} + +h1 { + font-size: 5em; +} + +h2 { + font-size: 3em; +} + +p { + font-size: 1.2em; +} + +.spacing { + margin-top: 1em; +} + +header > .container > h1 { + margin: 10px 0px -27px 0px; +} + +header > .container > .menu-item { + float: right; +} + +header > .container > .menu-item > img { + vertical-align: -9px; +} + +header > .container > .menu-item > a,span { + font-size: 30px; + color: white; + text-decoration: none; +} + +.container { + padding: 0px 40px 0px 40px; +} + +.chapeau { + font-size: 1.8em; + font-weight: bold; + line-height: 1.2; +} + +.service-box { + color: #000; + text-decoration: none; + border: 0.2em solid #000; + width: 250px; + text-align:center; + margin-right: 1em; + float: left; +} + +.service-box:hover { + background-color: #000; + color: #fff; +} + +.list > br { + clear: both; +} diff --git a/src/documentation.pug b/src/documentation.pug deleted file mode 100644 index a9a70f0..0000000 --- a/src/documentation.pug +++ /dev/null @@ -1,9 +0,0 @@ -extends _layout.pug - -prepend root - - title = "documentation" - -block content - .container.spacing - h2 Bientôt... - diff --git a/src/fonts/texgyreheros-bold.otf b/src/fonts/texgyreheros-bold.otf new file mode 100644 index 0000000..2f23b92 Binary files /dev/null and b/src/fonts/texgyreheros-bold.otf differ diff --git a/src/fonts/texgyreheros-bolditalic.otf b/src/fonts/texgyreheros-bolditalic.otf new file mode 100644 index 0000000..556b8e1 Binary files /dev/null and b/src/fonts/texgyreheros-bolditalic.otf differ diff --git a/src/fonts/texgyreheros-italic.otf b/src/fonts/texgyreheros-italic.otf new file mode 100644 index 0000000..ae50725 Binary files /dev/null and b/src/fonts/texgyreheros-italic.otf differ diff --git a/src/fonts/texgyreheros-regular.otf b/src/fonts/texgyreheros-regular.otf new file mode 100644 index 0000000..ac6c32f Binary files /dev/null and b/src/fonts/texgyreheros-regular.otf differ diff --git a/src/fonts/texgyreheroscn-bold.otf b/src/fonts/texgyreheroscn-bold.otf new file mode 100644 index 0000000..dc5f63a Binary files /dev/null and b/src/fonts/texgyreheroscn-bold.otf differ diff --git a/src/fonts/texgyreheroscn-bolditalic.otf b/src/fonts/texgyreheroscn-bolditalic.otf new file mode 100644 index 0000000..2b46b47 Binary files /dev/null and b/src/fonts/texgyreheroscn-bolditalic.otf differ diff --git a/src/fonts/texgyreheroscn-italic.otf b/src/fonts/texgyreheroscn-italic.otf new file mode 100644 index 0000000..f5159dd Binary files /dev/null and b/src/fonts/texgyreheroscn-italic.otf differ diff --git a/src/fonts/texgyreheroscn-regular.otf b/src/fonts/texgyreheroscn-regular.otf new file mode 100644 index 0000000..5630217 Binary files /dev/null and b/src/fonts/texgyreheroscn-regular.otf differ diff --git a/src/img/arobase.png b/src/img/arobase.png new file mode 100644 index 0000000..d2a275a Binary files /dev/null and b/src/img/arobase.png differ diff --git a/src/img/flower.svg b/src/img/flower.svg new file mode 100644 index 0000000..869788e --- /dev/null +++ b/src/img/flower.svg @@ -0,0 +1 @@ + diff --git a/src/robots.txt b/src/robots.txt new file mode 100644 index 0000000..c2a49f4 --- /dev/null +++ b/src/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Allow: / -- cgit v1.2.3