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
})
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>
<link rel="stylesheet" href="./style.css">
<style>
* {
text-align: center;
}
</style>
</head>
<body>
<h2><a href="https://violets-purgatory.dev">Home</a></h2>

View file

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

Binary file not shown.

View file

@ -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 {
@ -92,3 +116,9 @@ hr {
border-width: 2px;
margin: 15px 10%;
}
ol, ul {
display: block;
width: 80%;
margin: auto;
}