From fb19e55139d17010fb6684c9cc9819856eb3cbda Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 1 Nov 2024 00:52:40 +1300 Subject: [PATCH] Added lab page --- src/components/ArrowCard.astro | 21 +++----------- src/components/Header.astro | 6 ++++ src/components/LinkCard.astro | 28 ++++++++++++++++++ src/pages/lab.astro | 52 ++++++---------------------------- 4 files changed, 47 insertions(+), 60 deletions(-) create mode 100644 src/components/LinkCard.astro diff --git a/src/components/ArrowCard.astro b/src/components/ArrowCard.astro index b7087cd..2519229 100644 --- a/src/components/ArrowCard.astro +++ b/src/components/ArrowCard.astro @@ -1,5 +1,6 @@ --- import type { CollectionEntry } from "astro:content"; +import LinkCard from "./LinkCard.astro"; type Props = { entry: CollectionEntry<"blog"> | CollectionEntry<"projects">; @@ -8,20 +9,6 @@ type Props = { const { entry } = Astro.props; --- - -
-
- {entry.data.title} -
-
- {entry.data.description} -
-
- - - - -
+ + + diff --git a/src/components/Header.astro b/src/components/Header.astro index 62d195f..91443e2 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -28,6 +28,12 @@ import { SITE } from "@consts"; projects + + {`/`} + + + lab + diff --git a/src/components/LinkCard.astro b/src/components/LinkCard.astro new file mode 100644 index 0000000..31cec98 --- /dev/null +++ b/src/components/LinkCard.astro @@ -0,0 +1,28 @@ +--- +type Props = { + heading: string; + subheading: string; + href: string; + target?: string; +} + +const { heading, subheading, href, target="" } = Astro.props; +--- + + +
+
+ {heading} +
+
+ {subheading} +
+
+ + + + +
diff --git a/src/pages/lab.astro b/src/pages/lab.astro index 09d4d7b..38198e0 100644 --- a/src/pages/lab.astro +++ b/src/pages/lab.astro @@ -2,56 +2,22 @@ import Container from "@components/Container.astro"; import PageLayout from "@layouts/PageLayout.astro"; import { HOME } from "@consts"; +import LinkCard from "@components/LinkCard.astro"; --- -

+

Lab

-
-
+
+ + + + + + -
- -
-
-
- Jellyfin -
- https://jellyfin.rausch.nz -
-

Jellyfin can only be accessed on the internal network or via Unifi Identity VPN

-
- -
-
-
- Home Assistant -
- https://home.rausch.nz -
-
- -
-
-
- Gitea -
- https://git.rausch.nz -
-
- -
-
-
- Vaultwarden -
- https://vault.rausch.nz -
-
- -