feat(koi): stupid.fish landing

This commit is contained in:
alina 🌸 2024-04-15 11:58:54 +03:00
parent a023a7da5c
commit 7e22dfd20b
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
5 changed files with 66 additions and 2 deletions

View file

@ -15,6 +15,7 @@
./services/ss-client.nix
./services/coredns.nix
./services/nginx.nix
./services/landing
./containers/uxplay.nix
./containers/torrent.nix

Binary file not shown.

View file

@ -0,0 +1,51 @@
<!DOCTYPE html>
<html>
<head>
<title>stupid.fish</title>
<style>
body {
background-color: #000;
color: #fff;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
overflow: hidden;
width: 100vw;
height: 100vh;
padding: 0;
margin: 0;
}
video {
border: 4px #000 solid;
outline: 2px #FFF solid;
}
h1 {
font-family: 'Times New Roman', Times, serif;
font-size: 2.5rem;
font-weight: 400;
font-style: normal;
margin-top: 8px;
margin-bottom: 32px;
text-align: center;
}
@media (max-width: 540px) {
video {
width: 80%;
}
h1 {
font-size: 2rem;
}
}
</style>
</head>
<body>
<video autoplay muted loop src="alina.mp4"></video>
<h1>stupid.fish technologies</h1>
</body>
</html>

View file

@ -0,0 +1,11 @@
{ abs, pkgs, ... } @ inputs:
let
trivial = import (abs "lib/trivial.nix") inputs;
in {
services.nginx.virtualHosts."stupid.fish" = {
forceSSL = true;
useACMEHost = "stupid.fish";
root = trivial.storeDirectory ./assets;
};
}

View file

@ -9,8 +9,9 @@
src = dir;
builder = pkgs.writeShellScript "builder.sh" ''
${pkgs.coreutils}/bin/mkdir -p $out/${dirName}
${pkgs.coreutils}/bin/cp -rf $src/* $out/${dirName}
${pkgs.coreutils}/bin/cp -rf $src/.* $out/${dirName}
for i in $(${pkgs.coreutils}/bin/ls -A $src); do
${pkgs.coreutils}/bin/cp -rf $src/$i $out/${dirName}
done
'';
system = pkgs.system;
};