feat(website): move to gensokyo-zone/website

This commit is contained in:
Kat Inskip 2024-01-27 22:27:21 -08:00
parent 5b1523c21f
commit 452033d672
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
7 changed files with 34 additions and 102 deletions

26
flake.lock generated
View file

@ -198,7 +198,8 @@
"std": "std",
"std-fl": "std-fl",
"systemd2mqtt": "systemd2mqtt",
"tree": "tree"
"tree": "tree",
"website": "website"
}
},
"rust": {
@ -339,6 +340,29 @@
"repo": "tree",
"type": "github"
}
},
"website": {
"inputs": {
"flakelib": [
"flakelib"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1706423113,
"narHash": "sha256-1i8FO7L+MpDlgfx3wTW7NkojdHGFEE3qy/s1n+wjGlU=",
"owner": "gensokyo-zone",
"repo": "website",
"rev": "88d31fa2f9d622f0076481e5949ce7e07723043e",
"type": "github"
},
"original": {
"owner": "gensokyo-zone",
"repo": "website",
"type": "github"
}
}
},
"root": "root",

View file

@ -51,6 +51,13 @@
flakelib.follows = "flakelib";
};
};
website = {
url = "github:gensokyo-zone/website";
inputs = {
nixpkgs.follows = "nixpkgs";
flakelib.follows = "flakelib";
};
};
};
nixConfig = {
extra-substituters = [

View file

@ -1,6 +1,7 @@
{
config,
lib,
inputs,
pkgs,
...
}: let
@ -8,7 +9,7 @@
in {
services.nginx.virtualHosts.${config.networking.domain} = {
locations."/" = {
root = pkgs.gensokyoZone;
root = inputs.website.packages.${pkgs.system}.gensokyoZone;
};
};
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 MiB

View file

@ -1,37 +0,0 @@
{ writeTextFile, linkFarm }:
let
mewp = writeTextFile {
name = "index.html";
text = ''
<html>
<head>
<title>Gensokyo</title>
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
<h1>Gensokyo</h1>
<img src="cute.png"/>
<nav>
<ul>
<li>
<a href="https://home.gensokyo.zone">Home Assistant</a>
</li>
<li>
<a href="https://z2m.gensokyo.zone">Zigbee2MQTT</a>
</li>
<li>
<a href="https://id.gensokyo.zone">Kanidm</a>
</li>
</ul>
</nav>
</body>
</html>
'';
};
in
linkFarm "index" [
{ name = "index.html"; path = mewp; }
{ name = "main.css"; path = ./main.css; }
{ name = "cute.png"; path = ./cute.png; }
]

View file

@ -1,23 +0,0 @@
{ writeTextFile, linkFarm }:
let
mewp = writeTextFile {
name = "index.html";
text = ''
<html>
<head>
<title>Gensokyo</title>
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
<img src="cute.png"/>
</body>
</html>
'';
};
in
linkFarm "index" [
{ name = "index.html"; path = mewp; }
{ name = "main.css"; path = ./main.css; }
{ name = "cute.png"; path = ./cute.png; }
]

View file

@ -1,40 +0,0 @@
html {
max-width: 70ch;
padding: 3em 1em;
margin: auto;
line-height: 1.75;
font-size: 1.25em;
min-height: 100%;
padding: 0;
}
h1,h2,h3,h4,h5,h6 {
margin: 3em 0 1em;
}
p,ul,ol {
margin-bottom: 2em;
color: #1d1d1d;
font-family: sans-serif;
}
img {
max-height: 33vh;
min-height: 500px;
margin: 1em auto;
display: block;
}
h1 {
text-align: center;
}
nav ul {
list-style-type: none;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
margin: 0;
padding: 0;
}
nav ul li {
text-align: center;
margin: 0;
padding: 0;
}