From fbc60211c6257ec57f233cedfb4c921732503a3b Mon Sep 17 00:00:00 2001 From: Denis Ergin Date: Mon, 6 Jan 2025 10:12:16 +0100 Subject: [PATCH] feat(layout): add footer with impressum section --- src/components/atoms/Link.astro | 48 +++--------------------- src/components/atoms/MenuLink.astro | 57 +++++++++++++++++++++++++++++ src/components/footer.astro | 19 ++++++++++ src/components/nav.astro | 2 +- src/layouts/Layout.astro | 5 +++ src/pages/impressum.astro | 24 ++++++++++++ 6 files changed, 112 insertions(+), 43 deletions(-) create mode 100644 src/components/atoms/MenuLink.astro create mode 100644 src/components/footer.astro create mode 100644 src/pages/impressum.astro diff --git a/src/components/atoms/Link.astro b/src/components/atoms/Link.astro index 1312ff4..871d9d0 100644 --- a/src/components/atoms/Link.astro +++ b/src/components/atoms/Link.astro @@ -12,46 +12,10 @@ const currentPath = new URL(Astro.url).pathname.split('/')[1]; \ No newline at end of file diff --git a/src/components/atoms/MenuLink.astro b/src/components/atoms/MenuLink.astro new file mode 100644 index 0000000..1312ff4 --- /dev/null +++ b/src/components/atoms/MenuLink.astro @@ -0,0 +1,57 @@ +--- +interface Props { + to: string +} + +const { to } = Astro.props; +const currentPath = new URL(Astro.url).pathname.split('/')[1]; +--- + + + + + + \ No newline at end of file diff --git a/src/components/footer.astro b/src/components/footer.astro new file mode 100644 index 0000000..c31a16a --- /dev/null +++ b/src/components/footer.astro @@ -0,0 +1,19 @@ +--- +import Link from "./atoms/Link.astro" +--- + + + + \ No newline at end of file diff --git a/src/components/nav.astro b/src/components/nav.astro index 756b112..ad06721 100644 --- a/src/components/nav.astro +++ b/src/components/nav.astro @@ -1,7 +1,7 @@ --- import { Icon } from 'astro-icon/components'; import Button from './atoms/Button.astro'; -import Link from './atoms/Link.astro'; +import Link from './atoms/MenuLink.astro'; ---