From b228f3cd8da9f882e586dbebea40059f3e0e3d89 Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Mon, 26 Jun 2023 01:14:35 +0200 Subject: [PATCH] update footer improve landing bg --- web/src/components/Layout/Footer.astro | 58 +++++++++++++++++++++----- web/src/sections/Landing.astro | 2 +- web/src/sections/bg.ts | 4 +- 3 files changed, 50 insertions(+), 14 deletions(-) diff --git a/web/src/components/Layout/Footer.astro b/web/src/components/Layout/Footer.astro index 649c781..f7f9522 100644 --- a/web/src/components/Layout/Footer.astro +++ b/web/src/components/Layout/Footer.astro @@ -1,13 +1,25 @@ --- import Section from "../Section.astro"; -type NavigationItem = { - path: string; - label: string; -}; +enum NavigationItemType { + Link, + Text, +} + +type NavigationItem = + | { + path: string; + label: string; + type: NavigationItemType.Link; + } + | { + type: NavigationItemType.Text; + content: string; + }; type NavigationGroup = { title: string; + class?: string; items: Array; }; @@ -17,36 +29,60 @@ const tree: Array = [ items: [ { path: "/", + type: NavigationItemType.Link, label: "Landing", }, { path: "https://github.com/tempblade/creator", + type: NavigationItemType.Link, label: "GitHub", }, { path: "https://tempblade.com", + type: NavigationItemType.Link, label: "tempblade", }, ], }, { title: "Legal", - items: [{ path: "/legal/imprint", label: "Imprint" }], + items: [ + { + path: "/legal/imprint", + label: "Imprint", + type: NavigationItemType.Link, + }, + ], + }, + { + title: "", + class: "ml-auto mr-0 self-end", + items: [ + { + type: NavigationItemType.Text, + content: "Made with ❤️ in Rottweil", + }, + ], }, ]; ---