diff --git a/index.js b/index.js index 93759f1..d95bc9a 100644 --- a/index.js +++ b/index.js @@ -95,4 +95,12 @@ app.get('/post/:post*', (req, res) => { return -}) \ No newline at end of file +}) + +process.on('uncaughtException', (err, origin) => { + fs.writeSync( + process.stderr.fd, + `Caught exception: ${err}\n` + + `Exception origin: ${origin}`, + ); + }); \ No newline at end of file diff --git a/resources/mainPage.html b/resources/mainPage.html index ebe318d..b5fa166 100644 --- a/resources/mainPage.html +++ b/resources/mainPage.html @@ -6,6 +6,11 @@ Violet's Limbo +

Home

diff --git a/resources/postPage.html b/resources/postPage.html index a5d7ef7..61845d7 100644 --- a/resources/postPage.html +++ b/resources/postPage.html @@ -8,7 +8,7 @@ -

Home

+

Home

{POST_TITLE}


diff --git a/static/fonts/encode-sans-expanded-v11-latin-regular.woff2 b/static/fonts/encode-sans-expanded-v11-latin-regular.woff2 new file mode 100644 index 0000000..dbdfceb Binary files /dev/null and b/static/fonts/encode-sans-expanded-v11-latin-regular.woff2 differ diff --git a/static/fonts/rubik-v28-latin-regular.woff2 b/static/fonts/rubik-v28-latin-regular.woff2 new file mode 100644 index 0000000..ac6ff68 Binary files /dev/null and b/static/fonts/rubik-v28-latin-regular.woff2 differ diff --git a/static/style.css b/static/style.css index 2cbb8fa..f6f7c4b 100644 --- a/static/style.css +++ b/static/style.css @@ -6,16 +6,32 @@ src: url('../fonts/source-code-pro-v23-latin-regular.woff2') format('woff2'); } +@font-face { + font-display: swap; + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + src: url('../fonts/rubik-v28-latin-regular.woff2') format('woff2'); +} + +@font-face { + font-display: swap; + font-family: 'Encode Sans Expanded'; + font-style: normal; + font-weight: 400; + src: url('../fonts/encode-sans-expanded-v11-latin-regular.woff2') format('woff2'); +} * { - font-family: "Source Code Pro", Verdana, Geneva, Tahoma, sans-serif; + font-family: "Encode Sans Expanded", "Rubik", Verdana, Geneva, Tahoma, sans-serif; padding: 0; - text-align: center; + /* text-align: center; */ } h1 { color: rgb(0, 255, 0); font-size: 2.5rem; + text-align: center; } h2 { @@ -23,14 +39,18 @@ h2 { } li, -h2 { +h3, h4, h5, h6 { color: white; } +h3 { + font-size: 1.5rem; +} + body, html { margin: auto; - background-color: black; + background-color: rgb(10, 10, 10); margin: 0; padding: 0; } @@ -51,21 +71,24 @@ a { } .textBlock { - color: rgb(240, 240, 240); + color: rgb(255, 255, 255); white-space: pre-wrap; - background-color: rgb(10, 10, 10); + background-color: rgb(20, 20, 20); border: 2px lightgray solid; padding: 0 10px; - + font-style: italic; + font-family: 'Source Code Pro', sans-serif; + text-align: center; } .post { color: rgb(240, 240, 240); - background-color: rgb(10, 10, 10); + background-color: rgb(5, 5, 5); border: 2px gray solid; padding: 10px; padding-top: 0; margin: 25px 10px; + text-align: center; } a:hover { @@ -73,11 +96,12 @@ a:hover { transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1); } -p { +p, li { color: white; font-size: 1.2rem; padding: 0; margin: 10px; + line-height: 2rem; } img { @@ -91,4 +115,10 @@ hr { opacity: 0.25; border-width: 2px; margin: 15px 10%; +} + +ol, ul { + display: block; + width: 80%; + margin: auto; } \ No newline at end of file