From 9793d1019c8716e8d653c9663bf224299edd6fdb Mon Sep 17 00:00:00 2001 From: Yvan Sraka Date: Sat, 5 Jun 2021 13:12:15 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20newtype64=20=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _layouts/default.html | 19 +++ assets/css/rstrtt.css | 2 + css/default.css | 374 ----------------------------------------- index.html | 22 --- index.md | 21 +++ site.hs | 16 +- templates/archive.html | 0 templates/default.html | 24 --- 8 files changed, 49 insertions(+), 429 deletions(-) create mode 100644 _layouts/default.html create mode 100644 assets/css/rstrtt.css delete mode 100644 css/default.css delete mode 100644 index.html create mode 100644 index.md delete mode 100644 templates/archive.html delete mode 100644 templates/default.html diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..c29f8d5 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,19 @@ + + + + + + + + + Newtype + + +
+

+ newtype64 +

+ $body$ +
+ + diff --git a/assets/css/rstrtt.css b/assets/css/rstrtt.css new file mode 100644 index 0000000..a897e19 --- /dev/null +++ b/assets/css/rstrtt.css @@ -0,0 +1,2 @@ +html{font-size:12px}*{-webkit-box-sizing:border-box;box-sizing:border-box;text-rendering:geometricPrecision}body{word-wrap:break-word;font-family:Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif;font-size:1rem;line-height:1.5rem;margin:0}h1,h2,h3,h4,h5,h6{line-height:1.3em}fieldset{border:none;margin:0;padding:0}pre{background-color:#fff;border:1px solid #ccc;margin:1.75rem 0;overflow:auto;padding:2rem}code[class*=language-],pre[class*=language-],pre code{font-weight:100;margin:1.75rem 0;text-shadow:none}p{color:#222}h1,h2,h3,h4,h5,h6,strong{color:#000}a{color:#00f;cursor:pointer}a,a:visited{-webkit-text-decoration:underline solid .1em;text-decoration:underline solid .1em}a:visited{color:purple}a:hover{background-color:#00f;color:#fff}a:hover:visited{background-color:purple}b{font-weight:700}em{font-style:italic}u{text-decoration:underline}.rstrtt,.rstrtt blockquote,.rstrtt code,.rstrtt em,.rstrtt h1,.rstrtt h2,.rstrtt h3,.rstrtt h4,.rstrtt h5,.rstrtt h6,.rstrtt strong{font-family:Fira Code,Jetbrains Mono;-webkit-font-feature-settings:"calt" 1;font-feature-settings:"calt" 1;margin:0;text-rendering:optimizeLegibility}.rstrtt h1{font-size:3rem}.rstrtt h2{font-size:2rem}.rstrtt h3{font-size:1.8rem}.rstrtt h4{font-size:1.6rem}.rstrtt h5{font-size:1.4rem}.rstrtt h6{font-size:1.2rem}.rstrtt,.rstrtt blockquote,.rstrtt code,.rstrtt em,.rstrtt strong{font-size:1rem}.rstrtt,.rstrtt blockquote,.rstrtt code,.rstrtt h1,.rstrtt h2,.rstrtt h3,.rstrtt h4,.rstrtt h5,.rstrtt h6{font-style:normal}.rstrtt blockquote,.rstrtt code,.rstrtt em,.rstrtt strong{line-height:20px}.rstrtt blockquote,.rstrtt code,.rstrtt footer,.rstrtt h1,.rstrtt h2,.rstrtt h3,.rstrtt h4,.rstrtt h5,.rstrtt h6,.rstrtt header,.rstrtt li,.rstrtt ol,.rstrtt p,.rstrtt section,.rstrtt ul{float:none;margin:0;padding:0}.rstrtt blockquote,.rstrtt h1,.rstrtt ol,.rstrtt p,.rstrtt ul{margin-bottom:20px;margin-top:20px}.rstrtt h1,.rstrtt h2,.rstrtt h3,.rstrtt h4,.rstrtt h5,.rstrtt h6{margin-bottom:1.75rem;position:relative}.rstrtt h1:before,.rstrtt h2:before,.rstrtt h3:before,.rstrtt h4:before,.rstrtt h5:before,.rstrtt h6:before{color:rgba(95,95,95,.78);display:inline}.rstrtt h1:before{content:"# "}.rstrtt h2:before{content:"## "}.rstrtt h3:before{content:"### "}.rstrtt h4:before{content:"#### "}.rstrtt h5:before{content:"##### "}.rstrtt h6:before{content:"###### "}.rstrtt li{display:block;padding-left:20px;position:relative}.rstrtt li:after{left:0;position:absolute;top:0}.rstrtt ul>li:after{content:"-"}.rstrtt ol{counter-reset:ol}.rstrtt ol>li:after{content:counter(ol) ".";counter-increment:ol}.rstrtt ol li:nth-child(n+10):after{left:-7px}.rstrtt em:after,.rstrtt em:before{color:rgba(95,95,95,.78);content:"_";display:inline}.rstrtt strong:after,.rstrtt strong:before{color:rgba(95,95,95,.78);content:"**";display:inline}.rstrtt pre code:after,.rstrtt pre code:before{content:""}.rstrtt code{font-weight:700}.rstrtt code:after,.rstrtt code:before{color:rgba(95,95,95,.78);content:"`";display:inline}.rstrtt hr{border:.1rem solid #000}@-moz-document url-prefix(){.rstrtt h1{display:block}}.rstrtt-ones ol>li:after{content:"1."}p{margin:0 0 1.75rem}.container{max-width:70rem}.container,.container-fluid{margin:0 auto;padding:0 1rem}.inner{padding:1rem}.inner2x{padding:2rem}.pull-left{float:left}.pull-right{float:right}@media screen and (max-width:768px){.form-group label{border-bottom:none;display:block;width:100%}.form-group.form-textarea label:after{display:none}.form-control{width:100%}textarea.form-control{border-left:none;padding:.5rem 0}pre::-webkit-scrollbar{height:3px}}@media screen and (max-width:480px){.form{width:100%}}.cyan,.green,.pink,.purple,.red,.yellow{background:#000;color:#fff;-webkit-text-decoration:underline solid .05em;text-decoration:underline solid .05em;text-decoration-skip-ink:none}.cyan:hover,.green:hover,.pink:hover,.purple:hover,.red:hover,.yellow:hover{-webkit-text-decoration-color:#fff;text-decoration-color:#fff}.red{-webkit-text-decoration-color:#eb4747;text-decoration-color:#eb4747}.red:hover{background:#eb4747}.yellow{-webkit-text-decoration-color:#ebeb47;text-decoration-color:#ebeb47}.yellow:hover{background:#ebeb47}.green{-webkit-text-decoration-color:#47eb47;text-decoration-color:#47eb47}.green:hover{background:#47eb47}.cyan{-webkit-text-decoration-color:#47ebeb;text-decoration-color:#47ebeb}.cyan:hover{background:#47ebeb}.purple{-webkit-text-decoration-color:#4747eb;text-decoration-color:#4747eb}.purple:hover{background:#4747eb}.pink{-webkit-text-decoration-color:#eb47eb;text-decoration-color:#eb47eb}.pink:hover{background:#eb47eb} +/*# sourceMappingURL=rstrtt.css.map */ diff --git a/css/default.css b/css/default.css deleted file mode 100644 index 17bf3c1..0000000 --- a/css/default.css +++ /dev/null @@ -1,374 +0,0 @@ -@media (max-width: 455.98px) { - html { - font-size: 11px; - } -} - -@media (min-width: 456px) and (max-width: 575.98px) { - html { - font-size: 12px; - } -} - -@media (min-width: 576px) and (max-width: 767.98px) { - html { - font-size: 14px; - } -} - -@media (min-width: 768px) and (max-width: 991.98px) { - html { - font-size: 16px; - } -} - -@media (min-width: 992px) and (max-width: 1199.98px) { - html { - font-size: 18px; - } -} - -@media (min-width: 1200px) { - html { - font-size: 20px; - } -} - -body { - font-size: 1rem; - line-height: 1.5rem; - margin: 0; - font-family: "Fira Code", "Roboto Mono", "Menlo", "Monaco", "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif; - font-feature-settings: "calt" 1; - /* Enable ligatures for IE 10+, Edge */ - text-rendering: optimizeLegibility; - /* Force ligatures for Webkit, Blink, Gecko */ - min-width: 300px; - min-height: 100vh; - display: flex; - flex-direction: column; - padding: 0 16px; - background: white; -} - -a { - word-break: break-all; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - line-height: 1.3em; - font-weight: 500; -} - -fieldset { - border: none; - padding: 0; - margin: 0; -} - -pre { - padding: 2rem; - margin: 1.75rem 0; - background-color: black; - border: 1px solid #ccc; - overflow: auto; -} - -code[class*="language-"], -pre[class*="language-"], -pre code { - font-weight: 100; - text-shadow: none; - margin: 1.75rem 0; -} - -p { - color: rgba(0, 0, 0, 0.8); -} - -h1, -h2, -h3, -h4, -h5, -h6, -strong { - color: black; -} - -footer { - color: rgba(0, 0, 0, 0.6); -} - -a { - cursor: pointer; - color: blue; - text-decoration: none; -} - -a:visited { - color: purple; -} - -a:hover { - background-color: blue; - color: white; -} - -a:hover:visited { - background-color: purple; -} - -.hack, -.hack blockquote, -.hack code, -.hack em, -.hack h1, -.hack h2, -.hack h3, -.hack h4, -.hack h5, -.hack h6, -.hack strong { - font-style: normal; -} - -.hack blockquote, -.hack code, -.hack em, -.hack strong { - line-height: 20px; -} - -.hack blockquote, -.hack code, -.hack footer, -.hack h1, -.hack h2, -.hack h3, -.hack h4, -.hack h5, -.hack h6, -.hack header, -.hack li, -.hack ol, -.hack p, -.hack section, -.hack ul { - float: none; - margin: 0; - padding: 0; -} - -.hack blockquote, -.hack h1, -.hack ol, -.hack p, -.hack ul { - margin-top: 20px; - margin-bottom: 20px; -} - -.hack h1, -.hack h2, -.hack h3, -.hack h4, -.hack h5, -.hack h6 { - position: relative; - margin-bottom: 1.75rem; -} - -.hack li { - position: relative; - display: block; - padding-left: 20px; -} - -.hack li:after { - position: absolute; - top: 0; - left: 0; -} - -.hack ul > li:after { - content: "-"; -} - -.hack ol { - counter-reset: a; - list-style-type:decimal; - list-style-position:outside; -} - -.hack ol > li:after { - content: counter(a) "."; - counter-increment: a; - - padding:0 0 0 0px; - /* Add some space between numbering and content. */ - margin:0 0 0 -0.3em; -} - -.hack ol li:nth-child(n + 10):after { - left: -7px; -} - -.hack em { - font-style: italic; -} - -.hack pre code:after, -.hack pre code:before { - content: ""; -} - -.hack code { - font-weight: 700; -} - -.hack code:after, -.hack code:before { - content: "`"; - display: inline; -} - -@-moz-document url-prefix() { - .hack h1 { - display: block; - } -} - -.hack-ones ol > li:after { - content: "1."; -} - -p { - margin: 0 0 1.75rem; -} - -.container { - width: 100%; - flex: 1; -} - -.inner { - padding: 1rem; -} - -.inner2x { - padding: 2rem; -} - -.pull-left { - float: left; -} - -.pull-right { - float: right; -} - -.hack h1 { - font-size: 3rem; -} - -.hack h2 { - font-size: 2rem; - padding: 32px 0 0; -} - -.hack h3 { - font-size: 1.5rem; -} - -b { - font-weight: bold; -} - -u { - text-decoration: underline; -} - -#T, #Y, #P, #E, #bropen, #brclose { - background: black; - text-decoration: underline; -} - -#T:hover, #Y:hover, #P:hover, #E:hover, #brclose:hover, #bropen:hover { - color: white; -} - -#T { - color: hsl(0, 80%, 60%); -} - -#T:hover { - background: hsl(0, 80%, 60%); -} - -#Y { - color: hsl(60, 80%, 60%); -} - -#Y:hover { - background: hsl(60, 80%, 60%); -} - -#P { - color: hsl(120, 80%, 60%); -} - -#P:hover { - background: hsl(120, 80%, 60%); -} - -#E { - color: hsl(180, 80%, 60%); -} - -#E:hover { - background: hsl(180, 80%, 60%); -} - -#bropen { - color: hsl(240, 80%, 60%); -} - -#bropen:hover { - background: hsl(240, 80%, 60%); -} - -#brclose { - color: hsl(300, 80%, 60%); -} - -#brclose:hover { - background: hsl(300, 80%, 60%); -} - -#hidden { - color: white; - white-space: nowrap; -} - -h1 { - overflow: hidden; -} - -#T u, #Y u, #P u, #E u, #brclose u, #bropen u { - color: white; - text-decoration: none; -} - -#T u:hover, #Y u:hover, #P u:hover, #E u:hover, #brclose u:hover, #bropen u:hover { - color: black; -} - -hr { - border: 2px solid black; -} diff --git a/index.html b/index.html deleted file mode 100644 index 90eb1d6..0000000 --- a/index.html +++ /dev/null @@ -1,22 +0,0 @@ -

- Nicolas Hovart -• Ryan Lahfa -• Yvan Sraka -• Naomi Nitel -• Axel Viala -

-

- What we do: -

-

-

-> contact@newtype.fr

-

- This website was proudly generated by hakyll. - Sources are available here! -

diff --git a/index.md b/index.md new file mode 100644 index 0000000..e1c5478 --- /dev/null +++ b/index.md @@ -0,0 +1,21 @@ +[Gauvain Roussel-Tarbouriech](https://code.govanify.com/) • +[Nicolas Hovart](https://github.com/NicolasHov) • +[Ryan Lahfa](https://github.com/RaitoBezarius) • +[Yvan Sraka](https://github.com/yvan-sraka) • +~~[Axel Viala](https://github.com/darnuria)~~ • +~~[Naomi Nitel](https://github.com/naominitel)~~ + +What we do: + +- Rust \| WebAssembly +- Nix \| NixOS \| NixOps +- React.js \| React Native +- IPv6(-only) deployments \| Tunnel technologies (WireGuard, IPsec) \| + Multiprotocol BGP +- Security \| Pentest + +-\> + +*This website was proudly generated by +[hakyll](https://jaspervdj.be/hakyll).* Sources are available +[here](https://git.newtype.fr/newtype/website)! diff --git a/site.hs b/site.hs index 238ee21..830c2d8 100644 --- a/site.hs +++ b/site.hs @@ -7,16 +7,14 @@ import Hakyll -------------------------------------------------------------------------------- main :: IO () main = hakyll $ do - match "css/*" $ do + match "assets/css/*" $ do route idRoute compile compressCssCompiler - match "index.html" $ do - route idRoute - compile $ do - getResourceBody - >>= applyAsTemplate indexCtx - >>= loadAndApplyTemplate "templates/default.html" indexCtx - >>= relativizeUrls + match "index.md" $ do + route $ setExtension "html" + compile $ pandocCompiler + >>= loadAndApplyTemplate "_layouts/default.html" defaultContext + >>= relativizeUrls - match "templates/*" $ compile templateBodyCompiler + match "_layouts/*" $ compile templateBodyCompiler diff --git a/templates/archive.html b/templates/archive.html deleted file mode 100644 index e69de29..0000000 diff --git a/templates/default.html b/templates/default.html deleted file mode 100644 index d336778..0000000 --- a/templates/default.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - Newtype - - - - -
-

- newtype() { newtype | newtype& }; newtype -

- $body$ -
- -