feat(koi): stupid.fish landing
This commit is contained in:
parent
a023a7da5c
commit
7e22dfd20b
5 changed files with 66 additions and 2 deletions
|
@ -15,6 +15,7 @@
|
|||
./services/ss-client.nix
|
||||
./services/coredns.nix
|
||||
./services/nginx.nix
|
||||
./services/landing
|
||||
|
||||
./containers/uxplay.nix
|
||||
./containers/torrent.nix
|
||||
|
|
BIN
hosts/koi/services/landing/assets/alina.mp4
Normal file
BIN
hosts/koi/services/landing/assets/alina.mp4
Normal file
Binary file not shown.
51
hosts/koi/services/landing/assets/index.html
Normal file
51
hosts/koi/services/landing/assets/index.html
Normal 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>
|
11
hosts/koi/services/landing/default.nix
Normal file
11
hosts/koi/services/landing/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue