From 58f7ca2d5c3abaada62c6456797aacfe060c060b Mon Sep 17 00:00:00 2001 From: Johannes Gasser Date: Sat, 9 May 2026 08:05:09 +0200 Subject: [PATCH] mobile optimization --- package-lock.json | 10 ++ package.json | 1 + src/components/AnchorNav.astro | 117 ++++++++++++---- src/layouts/BaseLayout.astro | 6 +- src/pages/about.astro | 122 ----------------- src/pages/contact.astro | 241 --------------------------------- src/pages/index.astro | 24 ++-- src/styles/global.css | 7 +- 8 files changed, 115 insertions(+), 413 deletions(-) delete mode 100644 src/pages/about.astro delete mode 100644 src/pages/contact.astro diff --git a/package-lock.json b/package-lock.json index 897ee26..c351e12 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "@astrojs/check": "^0.9.9", "@astrojs/react": "^5.0.4", + "@lucide/astro": "^1.14.0", "@portabletext/to-html": "^5.0.2", "@sanity/astro": "^3.4.0", "@sanity/client": "^7.22.0", @@ -4052,6 +4053,15 @@ "@lezer/common": "^1.0.0" } }, + "node_modules/@lucide/astro": { + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/@lucide/astro/-/astro-1.14.0.tgz", + "integrity": "sha512-RaCwEeeTQT0TOvoCu6cS0XMrjK56qrSzPVIUv1ycwqCUbfu9TjDmh7svJ/677kGhLje1IT2vxXg5nD53ta1jcg==", + "license": "ISC", + "peerDependencies": { + "astro": "^4 || ^5 || ^6" + } + }, "node_modules/@marijn/find-cluster-break": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@marijn/find-cluster-break/-/find-cluster-break-1.0.2.tgz", diff --git a/package.json b/package.json index eb387f3..9393fcf 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "dependencies": { "@astrojs/check": "^0.9.9", "@astrojs/react": "^5.0.4", + "@lucide/astro": "^1.14.0", "@portabletext/to-html": "^5.0.2", "@sanity/astro": "^3.4.0", "@sanity/client": "^7.22.0", diff --git a/src/components/AnchorNav.astro b/src/components/AnchorNav.astro index ef82fd2..b1b6334 100644 --- a/src/components/AnchorNav.astro +++ b/src/components/AnchorNav.astro @@ -1,5 +1,4 @@ --- -// Navigation items for the theater homepage sections const navItems = [ { id: 'projekt', label_de: 'Das Projekt', label_en: 'The Project' }, { id: 'team', label_de: 'Wer steckt dahinter', label_en: 'Who\'s Behind It' }, @@ -12,14 +11,62 @@ const navItems = [ ]; --- -