From a80f3a3cc74d353d48d377ee407a74f4a4f7eb0f Mon Sep 17 00:00:00 2001 From: ChrQR Date: Sat, 27 Apr 2024 12:55:00 +0200 Subject: [PATCH] darkmode selector layout and content add --- src/lib/ThemeSwitch.svelte | 4 ++-- src/routes/+layout.svelte | 5 +++-- src/routes/homelab/+page.svelte | 38 +++++++++++++++++++-------------- 3 files changed, 27 insertions(+), 20 deletions(-) diff --git a/src/lib/ThemeSwitch.svelte b/src/lib/ThemeSwitch.svelte index ff07689..4ce1a4e 100644 --- a/src/lib/ThemeSwitch.svelte +++ b/src/lib/ThemeSwitch.svelte @@ -34,11 +34,11 @@ } #theme-toggle + label { - @apply inline-block cursor-pointer h-8 w-8 absolute top-6 right-24 rounded-full duration-300 content-['']; + @apply inline-block cursor-pointer h-6 w-6 fixed top-4 right-4 rounded-full duration-300 content-['']; } #theme-toggle:not(:checked) + label { - @apply bg-black; + @apply bg-yellow-200; } #theme-toggle:checked + label { diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index d61abfb..a8c0d7c 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -47,15 +47,16 @@ {/if} {/each} - + {#key selected} {/key} - +
diff --git a/src/routes/homelab/+page.svelte b/src/routes/homelab/+page.svelte index f26da6b..7e3c90c 100644 --- a/src/routes/homelab/+page.svelte +++ b/src/routes/homelab/+page.svelte @@ -10,11 +10,11 @@

What is a homelab?

-

+ +

This question was answered very well by the reddit users webtroter and TreAwayDeuce 6 years ago.

-

Origin and Hardware

My interest in “Homelabbing” arose long before I was familiar with the term Homelab. I have @@ -60,14 +60,20 @@ more space, so I built the new server in a 2U rack case, which also leaves lots of room for storage upgrades. I used consumer grade hardware to keep idle power low:

-
    -
  • MSI Pro-690-P (Lots of IOMMU groups)
  • -
  • Intel i3-12100f (Low power idle)
  • +
      +
    • MSI Pro-690-P
    • +

      Lots of IOMMU groups

      +
    • Intel i3-12100f
    • +

      Low power idle

    • 32GB Corsair Vengeance DDR4 3200
    • -
    • 1tb Samsung Evo 970 (Host boot and VM disks)
    • -
    • 512gb Samsung Evo 970 (NAS cache)
    • -
    • 2 x 10TB Seagate Ironwolf (RAID1)
    • -
    • Geforce 1650ti 4gb (for transcoding)
    • +
    • 1tb Samsung Evo 970
    • +

      Host boot and VM disks

      +
    • 512gb Samsung Evo 970
    • +

      NAS cache

      +
    • 2 x 10TB Seagate Ironwolf
    • +

      RAID1

      +
    • Geforce 1650ti 4gb
    • +

      for transcoding

    @@ -95,19 +101,19 @@

    Currently I am hosting the following services:

    • Traefik
    • -

      +

      Reverse Proxy to direct and secure external traffic to external services. Traefik also handles ssl certificates from letsencrypt, as all of my external an internal domains have ssl encryption.

    • Traefik-bouncer
    • -

      +

      Monitors traefik, and bans incoming connection from known threat actors and a set of predefined rules. Also bans for multiple failed login attempts, and monitors logs of all exposed services.

    • Portfolio web page
    • -

      +

      This is my portfolio page, which will soon be available at rannes.dev. I'm using svelte/sveltekit. It is currently not exposed to the internet as I am still building it. @@ -116,14 +122,14 @@

    • Prometheus
    • Grafana
    • Authelia
    • -

      IAM layer with 2FA.

      +

      IAM layer with 2FA.

    • Media Stack
    • -

      Jellyfin, Radarr, Sonarr, Prowlarr, Blazarr, Gluetun, Jellyseerr.

      +

      Jellyfin, Radarr, Sonarr, Prowlarr, Blazarr, Gluetun, Jellyseerr.

    • Syncthing
    • Gitea
    • -

      self-hosted git repository

      +

      self-hosted git repository

    • Gitea Runners
    • -

      Runners for Continuous deployment.

      +

      Runners for Continuous deployment.

    • Kuma Uptime
    • Portainer