+
\ No newline at end of file
diff --git a/src/components/HardwarePage.svelte b/src/components/HardwarePage.svelte
index 61a19f8..0ca0edb 100644
--- a/src/components/HardwarePage.svelte
+++ b/src/components/HardwarePage.svelte
@@ -1,23 +1,44 @@
-
-
{selectedHardware}
-
+
+
{m.hardware()}
+
+
+
+
+
+
+
+ {#each selectedHardware.data.hardware as item}
+
{item}
+ {/each}
+
+
+ {#if (selectedHardware.data.accessories)}
+
+
+ {#each selectedHardware.data.accessories as item}
+
{item}
+ {/each}
+
+
+ {/if}
diff --git a/src/components/Select.svelte b/src/components/Select.svelte
index 3e5a89b..87dc6df 100644
--- a/src/components/Select.svelte
+++ b/src/components/Select.svelte
@@ -1,15 +1,22 @@
diff --git a/src/content/config.ts b/src/content/config.ts
index 7a88edc..6c7a863 100644
--- a/src/content/config.ts
+++ b/src/content/config.ts
@@ -18,6 +18,7 @@ const projectCollection = defineCollection({
const hardwareCollection = defineCollection({
type: "data",
schema: z.object({
+ title: z.string(),
accessories: z.optional(z.array(z.string())),
hardware: z.array(z.string())
})
diff --git a/src/content/hardware/desktop.yaml b/src/content/hardware/desktop.yaml
index 2fc13b1..5102765 100644
--- a/src/content/hardware/desktop.yaml
+++ b/src/content/hardware/desktop.yaml
@@ -1,4 +1,23 @@
+title: Desktop
accessories:
- - a # Screens, keyboards, mice, etc.
+ - Gaming chair | Arozzi Mezzo V2 Gaming chair Fabric Black/Red # https://www.komplett.no/product/1079732?noredirect=true
+ - Headset | Logitech PRO X LIGHTSPEED Wireless Gaming Headset # https://www.komplett.no/product/1162749?noredirect=true
+ - Keyboard | Logitech G710
+ - Monitor 1 | AOC 27" LED FreeSync G2790PX # https://www.komplett.no/product/975642?noredirect=true
+ - Monitor 2 | Asus 28" 4K LED PB287Q # https://www.komplett.no/product/815114?noredirect=true
+ - Mouse | Logitech G502 HERO Gaming Mouse
+ - Mousepad | Svive Styx ESGR Gaming Mousepad XXL # https://www.komplett.no/product/985884?noredirect=true
+ - Speakers | Creative T6 Series II # https://www.komplett.no/product/808450?noredirect=true
hardware:
- - b # Graphics cards, CPUs, etc.
\ No newline at end of file
+ - Case | Fractal Design Define R5 (Black) # https://www.fractal-design.com/products/cases/define/define-r5/black/
+ - CPU | Intel Core i5-10600K CPU # https://www.komplett.no/product/1155669?noredirect=true
+ - CPU cooler | Noctua ...
+ - Fans | 4x Fractal Design R3 140mm Silent fan # https://www.komplett.no/product/836971?noredirect=true
+ - GPU | Palit GeForce RTX 2070 SUPER JetStream # https://www.komplett.no/product/1134511?noredirect=true
+ - HDD | Seagate Barracuda 3TB 3.5" # https://www.komplett.no/product/653074?noredirect=true
+ - Motherboard | Gigabyte H470 HD3 # https://www.komplett.no/product/1161192?noredirect=true
+ - Network card | TP-Link Archer TX3000E # https://www.komplett.no/product/1146481?noredirect=true
+ - Ram | 2x Corsair Vengeance LPX DDR4 3200MHz 16GB (black) # https://www.komplett.no/product/893831?noredirect=true
+ - SSD | Samsung 960 PRO 512GB M.2 PCIe SSD # https://www.komplett.no/product/903118?noredirect=true
+ - SSD | Corsair Force Series MP510 960GB M.2 NVMe SSD 960GB # https://www.komplett.no/product/1153863?noredirect=true
+ - PSU | Corsair CX750M, 750W PSU # https://www.komplett.no/product/773377?noredirect=true
diff --git a/src/content/hardware/homeServer.yaml b/src/content/hardware/homeServer.yaml
index d327196..2bf26c8 100644
--- a/src/content/hardware/homeServer.yaml
+++ b/src/content/hardware/homeServer.yaml
@@ -1,2 +1,3 @@
+title: Home Server
hardware:
- b # Graphics cards, CPUs, etc.
\ No newline at end of file
diff --git a/src/content/hardware/raspberryPi.yaml b/src/content/hardware/raspberryPi.yaml
index 2fc13b1..3d05ffa 100644
--- a/src/content/hardware/raspberryPi.yaml
+++ b/src/content/hardware/raspberryPi.yaml
@@ -1,3 +1,4 @@
+title: Raspberry Pi 4
accessories:
- a # Screens, keyboards, mice, etc.
hardware:
diff --git a/src/pages/en/hardware.astro b/src/pages/en/hardware.astro
index dc49ed2..74dc711 100644
--- a/src/pages/en/hardware.astro
+++ b/src/pages/en/hardware.astro
@@ -1,10 +1,10 @@
---
-import Layout from "../../layouts/Layout.astro"
-import HardwarePage from "../../components/HardwarePage.svelte"
-import "../../styles/global.css"
+import Layout from "@/layouts/Layout.astro"
+import HardwarePage from "@/components/HardwarePage.svelte"
+import "@/styles/global.css"
---
Hardware
-
+
\ No newline at end of file
diff --git a/src/pages/hardware.astro b/src/pages/hardware.astro
index 646ed47..7211704 100644
--- a/src/pages/hardware.astro
+++ b/src/pages/hardware.astro
@@ -1,10 +1,12 @@
---
-import Layout from "../layouts/Layout.astro"
-import HardwarePage from "../components/HardwarePage.svelte"
-import "../styles/global.css"
+import Layout from "@/layouts/Layout.astro"
+import HardwarePage from "@/components/HardwarePage.svelte"
+import "@/styles/global.css"
+import { getCollection } from "astro:content"
+
+const hardware = await getCollection("hardware")
---
-