renge/onlypain.icu: Init
This is just a joke, please don’t take it seriously.
This commit is contained in:
parent
e9414e91ee
commit
909d7864e7
|
@ -17,6 +17,7 @@
|
|||
./services/matrix
|
||||
./services/murmur.nix
|
||||
./services/nitter.nix
|
||||
./services/onlypain.icu
|
||||
./services/prometheus.nix
|
||||
./services/sbruder.xyz
|
||||
];
|
||||
|
|
21
machines/renge/services/onlypain.icu/default.nix
Normal file
21
machines/renge/services/onlypain.icu/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
22
machines/renge/services/onlypain.icu/index.html
Normal file
22
machines/renge/services/onlypain.icu/index.html
Normal 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
BIN
machines/renge/services/onlypain.icu/logo.svg
(Stored with Git LFS)
Normal file
Binary file not shown.
14
machines/renge/services/onlypain.icu/script.js
Normal file
14
machines/renge/services/onlypain.icu/script.js
Normal 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)
|
||||
})
|
46
machines/renge/services/onlypain.icu/style.css
Normal file
46
machines/renge/services/onlypain.icu/style.css
Normal 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: "· "
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue