From 43899dbeba24633d8a42da030c7219d14a23c7a0 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Sat, 14 Sep 2024 00:04:03 +0200 Subject: [PATCH] add config links if available --- site/default.nix | 1 + site/index.css | 24 +++++++++++++++++++++++- site/index.nix | 23 ++++++++++++++++++----- site/nix.svg | 38 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 80 insertions(+), 6 deletions(-) create mode 100644 site/nix.svg diff --git a/site/default.nix b/site/default.nix index 9638a08..9282428 100644 --- a/site/default.nix +++ b/site/default.nix @@ -36,6 +36,7 @@ in mkNteDerivation { extraFiles = [ { source = "./index.css"; destination = "/"; } { source = "./nix-webring.svg"; destination = "/"; } + { source = "./nix.svg"; destination = "/"; } { source = "${jetbrains-mono}/share/fonts/truetype/JetBrainsMono-Regular.ttf"; destination = "/"; } { source = writeText "webring.json" (builtins.toJSON webringMembers); diff --git a/site/index.css b/site/index.css index 26394ea..405c53d 100644 --- a/site/index.css +++ b/site/index.css @@ -21,6 +21,11 @@ body { margin: 1em auto 1em; } +p { + margin-top: 0.5em; + margin-bottom: 0.5em; +} + a:link { color: #7EB6E1; } @@ -41,10 +46,16 @@ pre:has(code) code { ul { list-style-position: inside; + margin-top: 0.5em; + margin-bottom: 0.5em; } li { - margin-left: 2em; + margin-left: 1.5em; +} + +li:not(:last-child) { + margin-bottom: 0.5em; } #logo-and-name-and-shit { @@ -52,3 +63,14 @@ li { flex-direction: column; align-items: center; } + +.webring-member { + display: inline-flex; + flex-direction: row; + align-items: center; +} + +.config-image { + margin-left: 0.25em; + max-height: 1.25em; +} diff --git a/site/index.nix b/site/index.nix index 7b015df..5efc2b8 100644 --- a/site/index.nix +++ b/site/index.nix @@ -3,7 +3,13 @@ pkgs, webringMembers, ... -}: { +}: let + inherit (pkgs) lib; + + inherit (lib.attrsets) hasAttr; + inherit (lib.lists) map; + inherit (lib.strings) concatStrings optionalString; +in { template = "passthrough"; format = "html"; @@ -29,9 +35,16 @@ ${h2 "webring members"} @@ -55,10 +68,10 @@ and make a PR to one of the repos adding yourself to the webring.nix file:

-            { name = "name"; domain = "mysite.tld"; }
+     { name = "name"; domain = "mysite.tld"; config = "gitforge.tld/name/nixos"; }
           

- feel free to also link your nixos configuration in the PR! + linking your nixos config is entirely optional! (you'll be way cooler though)

${h2 "support"} diff --git a/site/nix.svg b/site/nix.svg new file mode 100644 index 0000000..bed9e50 --- /dev/null +++ b/site/nix.svg @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + \ No newline at end of file