renge/onlypain.icu: Init

This is just a joke, please don’t take it seriously.
pull/64/head
Simon Bruder 2022-03-30 19:33:06 +02:00
parent e9414e91ee
commit 909d7864e7
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
7 changed files with 108 additions and 0 deletions

View File

@ -17,6 +17,7 @@
./services/matrix
./services/murmur.nix
./services/nitter.nix
./services/onlypain.icu
./services/prometheus.nix
./services/sbruder.xyz
];

View File

@ -0,0 +1,21 @@
{ pkgs, ... }:
{
services.nginx.virtualHosts = {
"onlypain.icu" = {
forceSSL = true;
enableACME = true;
root = ./.;
locations = {
"/imprint/".alias = "${pkgs.sbruder.imprint}/";
};
};
"www.onlypain.icu" = {
forceSSL = true;
enableACME = true;
globalRedirect = "onlypain.icu";
};
};
}

View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<title>OnlyPain Deutsch-Abitur</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="style.css" rel="stylesheet">
</head>
<body>
<main>
<img id="logo" src="logo.svg">
<div id="countdown"><noscript>Der Countdown und die Weiterleitung benötigen JavaScript :(</noscript></div>
</main>
<footer>
<ul>
<li><a href="/imprint/">Impressum</a></li>
<li>Diese Website steht in keiner Verbindung zu OnlyFans, dem Bayerischen Staatsministerium für Unterricht und Kultus und/oder Pearson.</li>
</ul>
</footer>
<script src="script.js"></script>
</body>
</html>

BIN
machines/renge/services/onlypain.icu/logo.svg (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,14 @@
document.addEventListener("DOMContentLoaded", () => {
let countdown = 5
let el = document.querySelector("#countdown")
const loop = () => {
if (countdown == 0) {
document.location = "https://www.pearson.de/abiturpruefung-bayern-2022-deutsch-9783849052010"
}
el.innerHTML = countdown--
}
loop()
setInterval(loop, 1000)
})

View File

@ -0,0 +1,46 @@
body {
font-family: Roboto, sans-serif;
}
main {
position: absolute;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
#logo {
width: 80vw;
}
#countdown {
margin-top: 1em;
font-size: 24px;
font-style: bold;
text-align: center;
}
footer {
position: absolute;
bottom: 0px;
left: 0px;
right: 0px;
}
footer ul {
list-style: none;
text-align: center;
}
footer ul li {
display: inline;
}
footer ul li:not(:first-child)::before {
content: "· "
}

View File

@ -182,6 +182,7 @@ in
qalculate-gtk # flexible calculator
remmina # remote desktop client
scrcpy # stream/control android phones over adb
v4l-utils # video4linux configuration
wev # wayland event monitor
wl-clipboard # not really gui, but cli tool to manage wayland clipboard
xfce.thunar # graphical file manager