From 402ab0fbbb386021558b44ab20fcd42e60ff910b Mon Sep 17 00:00:00 2001 From: Eduard Iten Date: Wed, 1 Apr 2026 08:19:09 +0200 Subject: [PATCH] =?UTF-8?q?Testseite=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Footer.astro | 31 ++++++++++- src/components/Header.astro | 21 ++++++++ src/components/PatternCode.astro | 50 ++++++++++++++++++ src/components/PatternPCB.astro | 21 ++++++++ src/components/PatternSystem.astro | 47 +++++++++++++++++ src/components/Section.astro | 64 ++++++++++++++++++++++ src/layouts/MainLayout.astro | 4 +- src/layouts/PageLayout.astro | 4 +- src/pages/index-test.astro | 85 ++++++++++++++++++++++++++++++ src/pages/index.astro | 40 +++++++------- src/styles/global.css | 46 +--------------- 11 files changed, 345 insertions(+), 68 deletions(-) create mode 100644 src/components/PatternCode.astro create mode 100644 src/components/PatternPCB.astro create mode 100644 src/components/PatternSystem.astro create mode 100644 src/components/Section.astro create mode 100644 src/pages/index-test.astro diff --git a/src/components/Footer.astro b/src/components/Footer.astro index ace4558..ee158ad 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -20,4 +20,33 @@ const displayYear = currentYear > startYear ? `${startYear}–${currentYear}` : - \ No newline at end of file + + + \ No newline at end of file diff --git a/src/components/Header.astro b/src/components/Header.astro index 99162e6..98fd808 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -34,3 +34,24 @@ const currentPath = pathname.slice(1); --> + + diff --git a/src/components/PatternCode.astro b/src/components/PatternCode.astro new file mode 100644 index 0000000..d107f9a --- /dev/null +++ b/src/components/PatternCode.astro @@ -0,0 +1,50 @@ +--- +// src/components/CodePattern.astro +interface Props { + fillColor?: string; +} +const { fillColor = "text-white" } = Astro.props; + +const codeLines = [ + "/* Zephyr RTOS Thread Init */", + "K_THREAD_DEFINE(my_tid, STACKSIZE,", + " my_entry_point, NULL, NULL, NULL,", + " MY_PRIORITY, 0, K_NO_WAIT);", + "void main(void) {", + " printk(\"Booting iten.pro...\\n\");", + "}" +]; +--- + + + + + + {codeLines.map((line, index) => ( + {line} + ))} + + + + + + \ No newline at end of file diff --git a/src/components/PatternPCB.astro b/src/components/PatternPCB.astro new file mode 100644 index 0000000..6b98d00 --- /dev/null +++ b/src/components/PatternPCB.astro @@ -0,0 +1,21 @@ +--- +// src/components/PCBPattern.astro +interface Props { + fillColor?: string; +} +const { fillColor = "text-white" } = Astro.props; +--- + + + + diff --git a/src/components/PatternSystem.astro b/src/components/PatternSystem.astro new file mode 100644 index 0000000..8e4fb1d --- /dev/null +++ b/src/components/PatternSystem.astro @@ -0,0 +1,47 @@ +--- +// src/components/PatternSystem.astro +interface Props { + fillColor?: string; +} +const { fillColor = "text-white" } = Astro.props; +--- + + + + + + + + + + + SEN + + + + + MCU + + + + + + + + MEM + + + + + + RF/LoRa + + + + + \ No newline at end of file diff --git a/src/components/Section.astro b/src/components/Section.astro new file mode 100644 index 0000000..fdbb5bb --- /dev/null +++ b/src/components/Section.astro @@ -0,0 +1,64 @@ +--- +// src/components/Section.astro +interface Props { + title: string; + subtitle?: string; + themeColor?: string; + highlightColor?: string; + id?: string; +} + +const { + title, + subtitle, + themeColor, + highlightColor, + id, +} = Astro.props; + +// Extrahiere den reinen Farbnamen für die CSS-Variable des Listen-Randes +// Aus "bg-fuchsia-800" wird "fuchsia-800" +const borderColorName = themeColor.replace("bg-", ""); +--- + +
+
+
+
+ +
+
+ +
+

+ {title} +

+ { + subtitle && ( +

+ {subtitle} +

+ ) + } +
+
+ +
+
+ +
+
+
+ + \ No newline at end of file diff --git a/src/layouts/MainLayout.astro b/src/layouts/MainLayout.astro index 91d0f29..33bb0c6 100644 --- a/src/layouts/MainLayout.astro +++ b/src/layouts/MainLayout.astro @@ -26,8 +26,8 @@ const {
-
-
+
+