From 920862b82f56ab6fe81d9e0e7380451a3dd28ba8 Mon Sep 17 00:00:00 2001 From: Jake Hamilton Date: Sat, 26 Oct 2024 14:13:12 -0700 Subject: [PATCH] feat(root page): prettify and add new home page content --- src/lib/Highlight.svelte | 9 +- src/lib/assets/arrow-from-left-to-down.svg | 65 +++++++++++ src/lib/assets/arrow-from-up-to-down.svg | 65 +++++++++++ src/lib/assets/box.svg | 45 +++++++ src/lib/components/FlowerDivider.svelte | 2 +- src/lib/components/PackageTile.svelte | 12 ++ src/routes/+layout.svelte | 7 +- src/routes/+page.svelte | 129 ++++++++++++++++----- src/routes/demo1/vm.nix | 10 +- 9 files changed, 298 insertions(+), 46 deletions(-) create mode 100644 src/lib/assets/arrow-from-left-to-down.svg create mode 100644 src/lib/assets/arrow-from-up-to-down.svg create mode 100644 src/lib/assets/box.svg create mode 100644 src/lib/components/PackageTile.svelte diff --git a/src/lib/Highlight.svelte b/src/lib/Highlight.svelte index e17aff9..2fa4337 100644 --- a/src/lib/Highlight.svelte +++ b/src/lib/Highlight.svelte @@ -9,13 +9,13 @@ alt } = $props(); - let renderedCode = $derived(slice ? code.replace(/#[^]*?#<\/hidden>/, "") - : code.replace(/#(|<\/hidden>)/g,"")); - + let renderedCode = $derived(slice ? code.replace(/\/\*[^]*?<\/hidden>\*\//, "") + : code.replace(/\/\*(|<\/hidden>)\*\//g,"")); +

{alt}

-
+
@@ -27,4 +27,3 @@ ({slice ? "show" : "hide"} full)
- diff --git a/src/lib/assets/arrow-from-left-to-down.svg b/src/lib/assets/arrow-from-left-to-down.svg new file mode 100644 index 0000000..10fac36 --- /dev/null +++ b/src/lib/assets/arrow-from-left-to-down.svg @@ -0,0 +1,65 @@ + + + + + + + + + + + diff --git a/src/lib/assets/arrow-from-up-to-down.svg b/src/lib/assets/arrow-from-up-to-down.svg new file mode 100644 index 0000000..b6b6eb7 --- /dev/null +++ b/src/lib/assets/arrow-from-up-to-down.svg @@ -0,0 +1,65 @@ + + + + + + + + + + + diff --git a/src/lib/assets/box.svg b/src/lib/assets/box.svg new file mode 100644 index 0000000..45a3ce3 --- /dev/null +++ b/src/lib/assets/box.svg @@ -0,0 +1,45 @@ + + + + + + + + + + diff --git a/src/lib/components/FlowerDivider.svelte b/src/lib/components/FlowerDivider.svelte index 572b263..07d03da 100644 --- a/src/lib/components/FlowerDivider.svelte +++ b/src/lib/components/FlowerDivider.svelte @@ -3,7 +3,7 @@ import flowerGray from "$lib/assets/flower-gray.svg"; -
+
- + Gain certainty in your deployed system configuration by + replacing your opaque state with code. +
+
+ + + + Try FleurixOS + +
+
+
+
+ +
+
+
+
+ http://localhost:80 +
+
+
+
+
+
+
+ + +
+
+ + + +
+

+ {PKGS} — our package set +

+
+ A complete package set with {PKGS_COUNT} packages, built on top of 21 years of volunteer labor to reproducibly package software. +
+
+ + + + Use Petalpkgs + +
+
+ LLVM + GCC + NodeJS + Rust + Firefox + Aseprite + Discord + KDE + Python + Inkscape + Pipewire + Kitty + Element + Blender + Ruby + Chromium + Steam + Thunderbird + VS Code + Vim + GNOME Desktop + Emacs + Lutris + Lix
@@ -84,7 +149,7 @@

- A reimagining of the NixOS community + Our vision for floral.systems

diff --git a/src/routes/demo1/vm.nix b/src/routes/demo1/vm.nix index b320c5a..72e56d4 100644 --- a/src/routes/demo1/vm.nix +++ b/src/routes/demo1/vm.nix @@ -8,7 +8,7 @@ with import { }; nixos pkgs.writeText "password" "correcthorsebatterystaple"; }; - networking.firewall.allowedTCPPorts = [ 80 ];# + networking.firewall.allowedTCPPorts = [ 80 ];/**/ users.users.root.openssh.authorizedKeys.keys = [ "…your key here…" @@ -18,8 +18,8 @@ with import { }; nixos settings.PermitRootLogin = "yes"; }; # run with: - # nix-build vm.nix -A vm && (rm nixos.qcow2 ; QEMU_NET_OPTS='hostfwd=tcp::3000-:80' ./result/bin/run-nixos-vm) - # xdg-open http://localhost:3000 - -# + # nix-build vm.nix -A vm && \ + # (rm nixos.qcow2 ; QEMU_NET_OPTS='hostfwd=tcp::3000-:80' ./result/bin/run-nixos-vm) + # + # xdg-open http://localhost:3000/**/ }