From 9c1a30a36e276fb1c8f5f1c3f7d93becad4fd699 Mon Sep 17 00:00:00 2001 From: Niko Date: Thu, 3 Apr 2025 22:24:23 +0200 Subject: [PATCH 01/10] Search for mobile and mobile menu styles. --- src/components/BaseHead.astro | 2 +- src/components/header/header-actions.astro | 216 ++++++++------------- src/components/header/header.astro | 2 +- src/components/search/Search.astro | 197 +++++++++++++++++++ src/components/ui/Button.astro | 30 ++- src/layouts/HomePageLayout.astro | 2 + src/pages/index.astro | 1 + src/pages/test_components.astro | 5 + 8 files changed, 314 insertions(+), 141 deletions(-) create mode 100644 src/components/search/Search.astro diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro index 372114db3..2d1c47def 100644 --- a/src/components/BaseHead.astro +++ b/src/components/BaseHead.astro @@ -61,5 +61,5 @@ const { title, description, image = "/social-card.png" } = Astro.props; diff --git a/src/components/header/header-actions.astro b/src/components/header/header-actions.astro index 0138c1dfa..f7f1d3286 100644 --- a/src/components/header/header-actions.astro +++ b/src/components/header/header-actions.astro @@ -1,8 +1,7 @@ --- -import ButtonLink from "../button-link/button-link.astro"; import Button from "@ui/Button.astro"; import HeaderButton from "./header-button.astro"; -import Search from "astro-pagefind/components/Search"; +import Icon from "@ui/Icon.astro"; export interface Props { mobile?: boolean; @@ -11,148 +10,103 @@ export interface Props { const { mobile = false }: Props = Astro.props; const IS_LIVE = false; + + + // --- -
- +
+
{ - !mobile ? ( + !mobile ? <> - - {IS_LIVE && } + + + + {IS_LIVE && } - ) : null + : null } +
- - diff --git a/src/components/header/header.astro b/src/components/header/header.astro index 2f4d0d4a4..b695598b2 100644 --- a/src/components/header/header.astro +++ b/src/components/header/header.astro @@ -27,7 +27,7 @@ const links = JSON.parse(await fs.readFile("./src/data/links.json", "utf-8"));