From 5627e7eded65cc9cdd05f6ca63a3cdd60d6aa1e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20Mart=C3=ADnez?= Date: Tue, 12 Mar 2024 22:42:20 +0100 Subject: [PATCH 1/6] [WIP] --- src/components/Header.astro | 58 +++++++++++++++++++++++++++++++++++ src/components/HeroLogo.astro | 4 +-- src/layouts/Layout.astro | 2 ++ 3 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 src/components/Header.astro diff --git a/src/components/Header.astro b/src/components/Header.astro new file mode 100644 index 000000000..f202eda4d --- /dev/null +++ b/src/components/Header.astro @@ -0,0 +1,58 @@ +--- +import HeroLogo from "@/components/HeroLogo.astro" + +const pages = [ + { name: "El Evento", href: "/" }, + { name: "Combates", href: "/combates" }, + { name: "Pronósticos", href: "/pronosticos" }, + { name: "Entradas", href: "/entradas" }, +] +--- + +
+ +
+
+
+ +
+
+
+
+ + diff --git a/src/components/HeroLogo.astro b/src/components/HeroLogo.astro index 8cda961d3..50d5f7d68 100644 --- a/src/components/HeroLogo.astro +++ b/src/components/HeroLogo.astro @@ -21,6 +21,6 @@ > - - + {Astro.props.noEffect && } + diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 91587be26..745999146 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -2,6 +2,7 @@ import { ViewTransitions } from "astro:transitions" import ButtonUp from "@/components/ButtonUp.astro" +import Header from "@/components/Header.astro" import KonamiCode from "@/components/KonamiCode.astro" import LightsBackground from "@/components/LightsBackground.astro" import NoiseBackground from "@/components/NoiseBackground.astro" @@ -31,6 +32,7 @@ const { title, description, preloadImgLCP } = Astro.props +
Date: Wed, 13 Mar 2024 16:46:42 +0100 Subject: [PATCH 2/6] [WIP] --- src/components/HamburgerButton.astro | 32 ++++++++++++++++++++++++++++ src/components/Header.astro | 22 +++++++++++-------- 2 files changed, 45 insertions(+), 9 deletions(-) create mode 100644 src/components/HamburgerButton.astro diff --git a/src/components/HamburgerButton.astro b/src/components/HamburgerButton.astro new file mode 100644 index 000000000..8922ef470 --- /dev/null +++ b/src/components/HamburgerButton.astro @@ -0,0 +1,32 @@ +--- +const genericHamburgerLine = `h-0.5 w-4 my-0.5 bg-gray-300 transition ease transform duration-300` +--- + + + + + + diff --git a/src/components/Header.astro b/src/components/Header.astro index f202eda4d..7c4a655fd 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -3,28 +3,32 @@ import HeroLogo from "@/components/HeroLogo.astro" const pages = [ { name: "El Evento", href: "/" }, - { name: "Combates", href: "/combates" }, - { name: "Pronósticos", href: "/pronosticos" }, - { name: "Entradas", href: "/entradas" }, + { name: "Combates", href: "/combates", disabled: true }, + { name: "Pronósticos", href: "/pronosticos", disabled: true }, + { name: "Entradas", href: "/entradas", disabled: true }, ] ---
-