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 {
-
-
+
+