From e769979948d63302f1c334be3103224f6a731ca3 Mon Sep 17 00:00:00 2001 From: elh Date: Mon, 17 Jun 2024 16:28:26 -0400 Subject: [PATCH] nav bar svelte --- src/components/Nav-bar.astro | 13 ++++++++++++- src/components/footer.astro | 7 +++++++ src/components/navbutton.svelte | 19 +++++++++++++++++++ src/layouts/Sitelayout.astro | 7 +++++-- src/pages/about.astro | 7 +++++++ src/pages/blog.astro | 7 +++++++ src/styles/global.css | 21 ++++++++++++++++----- 7 files changed, 73 insertions(+), 8 deletions(-) create mode 100644 src/components/footer.astro create mode 100644 src/components/navbutton.svelte create mode 100644 src/pages/about.astro create mode 100644 src/pages/blog.astro diff --git a/src/components/Nav-bar.astro b/src/components/Nav-bar.astro index 88b961a..8cbbf96 100644 --- a/src/components/Nav-bar.astro +++ b/src/components/Nav-bar.astro @@ -1,8 +1,19 @@ --- +import Button from "../components/navbutton.svelte" +const pageTitle= Astro.props --- + + + + + \ No newline at end of file diff --git a/src/components/footer.astro b/src/components/footer.astro new file mode 100644 index 0000000..9e1b122 --- /dev/null +++ b/src/components/footer.astro @@ -0,0 +1,7 @@ +--- +--- + \ No newline at end of file diff --git a/src/components/navbutton.svelte b/src/components/navbutton.svelte new file mode 100644 index 0000000..f018bab --- /dev/null +++ b/src/components/navbutton.svelte @@ -0,0 +1,19 @@ + + + + \ No newline at end of file diff --git a/src/layouts/Sitelayout.astro b/src/layouts/Sitelayout.astro index 8926653..9ae0ab7 100644 --- a/src/layouts/Sitelayout.astro +++ b/src/layouts/Sitelayout.astro @@ -1,7 +1,8 @@ --- import Header from "../components/header.astro"; +import Footer from "../components/footer.astro" import '../styles/global.css'; -const { pageTitle} = Astro.props +const {pageTitle} = Astro.props --- @@ -13,7 +14,9 @@ const { pageTitle} = Astro.props
-

{pageTitle}

+