No crashing, better theme

This commit is contained in:
bingus_violet 2024-03-23 14:43:33 -05:00
parent 5dbe2d155c
commit 92150b9b94
6 changed files with 54 additions and 11 deletions

View file

@ -96,3 +96,11 @@ app.get('/post/:post*', (req, res) => {
return return
}) })
process.on('uncaughtException', (err, origin) => {
fs.writeSync(
process.stderr.fd,
`Caught exception: ${err}\n` +
`Exception origin: ${origin}`,
);
});

View file

@ -6,6 +6,11 @@
<title>Violet's Limbo</title> <title>Violet's Limbo</title>
<link rel="stylesheet" href="./style.css"> <link rel="stylesheet" href="./style.css">
<style>
* {
text-align: center;
}
</style>
</head> </head>
<body> <body>
<h2><a href="https://violets-purgatory.dev">Home</a></h2> <h2><a href="https://violets-purgatory.dev">Home</a></h2>

View file

@ -8,7 +8,7 @@
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
</head> </head>
<body> <body>
<h2><a href="/">Home</a></h2> <h2 style="text-align: center;"><a href="/">Home</a></h2>
<h1 class="title">{POST_TITLE}</h1> <h1 class="title">{POST_TITLE}</h1>
<main> <main>
<hr> <hr>

Binary file not shown.

View file

@ -6,16 +6,32 @@
src: url('../fonts/source-code-pro-v23-latin-regular.woff2') format('woff2'); 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; padding: 0;
text-align: center; /* text-align: center; */
} }
h1 { h1 {
color: rgb(0, 255, 0); color: rgb(0, 255, 0);
font-size: 2.5rem; font-size: 2.5rem;
text-align: center;
} }
h2 { h2 {
@ -23,14 +39,18 @@ h2 {
} }
li, li,
h2 { h3, h4, h5, h6 {
color: white; color: white;
} }
h3 {
font-size: 1.5rem;
}
body, body,
html { html {
margin: auto; margin: auto;
background-color: black; background-color: rgb(10, 10, 10);
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
@ -51,21 +71,24 @@ a {
} }
.textBlock { .textBlock {
color: rgb(240, 240, 240); color: rgb(255, 255, 255);
white-space: pre-wrap; white-space: pre-wrap;
background-color: rgb(10, 10, 10); background-color: rgb(20, 20, 20);
border: 2px lightgray solid; border: 2px lightgray solid;
padding: 0 10px; padding: 0 10px;
font-style: italic;
font-family: 'Source Code Pro', sans-serif;
text-align: center;
} }
.post { .post {
color: rgb(240, 240, 240); color: rgb(240, 240, 240);
background-color: rgb(10, 10, 10); background-color: rgb(5, 5, 5);
border: 2px gray solid; border: 2px gray solid;
padding: 10px; padding: 10px;
padding-top: 0; padding-top: 0;
margin: 25px 10px; margin: 25px 10px;
text-align: center;
} }
a:hover { a:hover {
@ -73,11 +96,12 @@ a:hover {
transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1); transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
} }
p { p, li {
color: white; color: white;
font-size: 1.2rem; font-size: 1.2rem;
padding: 0; padding: 0;
margin: 10px; margin: 10px;
line-height: 2rem;
} }
img { img {
@ -92,3 +116,9 @@ hr {
border-width: 2px; border-width: 2px;
margin: 15px 10%; margin: 15px 10%;
} }
ol, ul {
display: block;
width: 80%;
margin: auto;
}