From 23b649053204f2c3c3da9b1aad9203fa607657d5 Mon Sep 17 00:00:00 2001 From: Eduard Iten Date: Tue, 31 Mar 2026 14:05:52 +0200 Subject: [PATCH 1/4] Sticky footer --- src/layouts/MainLayout.astro | 6 +++--- src/layouts/PageLayout.astro | 1 - src/styles/global.css | 7 ++++++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/layouts/MainLayout.astro b/src/layouts/MainLayout.astro index bc016a5..91d0f29 100644 --- a/src/layouts/MainLayout.astro +++ b/src/layouts/MainLayout.astro @@ -2,7 +2,7 @@ // src/layouts/MainLayout.astro import Header from "../components/Header.astro"; import Footer from "../components/Footer.astro"; -import '../styles/global.css'; +import "../styles/global.css"; interface Props { title?: string; @@ -26,8 +26,8 @@ const {
-
- +
+
diff --git a/src/layouts/PageLayout.astro b/src/layouts/PageLayout.astro index e02b571..6e0cf0a 100644 --- a/src/layouts/PageLayout.astro +++ b/src/layouts/PageLayout.astro @@ -1,6 +1,5 @@ --- import MainLayout from './MainLayout.astro'; -import '../styles/global.css'; const { frontmatter } = Astro.props; --- diff --git a/src/styles/global.css b/src/styles/global.css index 87dd1ac..e96d675 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -36,9 +36,14 @@ } .main-footer { - @apply w-full bg-linear-to-b from-white to-header-bg py-2 mt-auto shadow-top; + @apply fixed bottom-0 left-0 w-full z-50 py-2 shadow-top bg-linear-to-b from-white to-header-bg; + } + /* .main-footer { + @apply w-full bg-linear-to-b from-white to-header-bg py-2 mt-auto shadow-top; + } */ + .footer-container { @apply container mx-auto px-6 flex flex-col md:flex-row justify-between items-center gap-4; } -- 2.39.5 From b08ce97042a26c2145203680db11c960e6dfd219 Mon Sep 17 00:00:00 2001 From: Eduard Iten Date: Tue, 31 Mar 2026 14:07:21 +0200 Subject: [PATCH 2/4] Fixed header link --- src/components/Header.astro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Header.astro b/src/components/Header.astro index 142bab6..e18c8c2 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -1,5 +1,6 @@ --- import Logo from './Logo.astro'; +import getPath from '../utils/paths'; const pathname = new URL(Astro.request.url).pathname; const currentPath = pathname.slice(1); @@ -7,7 +8,7 @@ const currentPath = pathname.slice(1);
- + -
-
\ No newline at end of file + +
-- 2.39.5 From 402ab0fbbb386021558b44ab20fcd42e60ff910b Mon Sep 17 00:00:00 2001 From: Eduard Iten Date: Wed, 1 Apr 2026 08:19:09 +0200 Subject: [PATCH 4/4] =?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 {
-
-
+
+