From ec72e14237d11ff8894f038fca742687ed946606 Mon Sep 17 00:00:00 2001 From: Blboun3 <62328614+Blboun3@users.noreply.github.com> Date: Sat, 23 Mar 2024 08:57:56 +0100 Subject: [PATCH] following tutorial --- src/components/Footer.astro | 8 +++ src/components/Hamburger.astro | 7 ++ src/components/Navigation.astro | 10 +++ src/components/Social.astro | 4 ++ src/layouts/Layout.astro | 42 +++-------- src/pages/blog.astro | 4 ++ src/pages/index.astro | 124 +------------------------------- src/pages/posts/post-1.md | 27 +++++++ 8 files changed, 74 insertions(+), 152 deletions(-) create mode 100644 src/components/Footer.astro create mode 100644 src/components/Hamburger.astro create mode 100644 src/components/Navigation.astro create mode 100644 src/components/Social.astro create mode 100644 src/pages/blog.astro create mode 100644 src/pages/posts/post-1.md diff --git a/src/components/Footer.astro b/src/components/Footer.astro new file mode 100644 index 0000000..7887c28 --- /dev/null +++ b/src/components/Footer.astro @@ -0,0 +1,8 @@ +--- +import Social from './Social.astro'; +--- + + \ No newline at end of file diff --git a/src/components/Hamburger.astro b/src/components/Hamburger.astro new file mode 100644 index 0000000..1423acf --- /dev/null +++ b/src/components/Hamburger.astro @@ -0,0 +1,7 @@ +--- +--- +
+ + + +
\ No newline at end of file diff --git a/src/components/Navigation.astro b/src/components/Navigation.astro new file mode 100644 index 0000000..87a5510 --- /dev/null +++ b/src/components/Navigation.astro @@ -0,0 +1,10 @@ +--- + +--- + + \ No newline at end of file diff --git a/src/components/Social.astro b/src/components/Social.astro new file mode 100644 index 0000000..22086a7 --- /dev/null +++ b/src/components/Social.astro @@ -0,0 +1,4 @@ +--- +const { platform, tld, username } = Astro.props; +--- +{platform} \ No newline at end of file diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 7b552be..a8171b9 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,13 +1,18 @@ --- +import Navigation from '../components/Navigation.astro'; +import Footer from '../components/Footer.astro'; +import Hamburger from '../components/Hamburger.astro'; + interface Props { title: string; + lang: string; } -const { title } = Astro.props; +const { title, lang } = Astro.props; --- - + @@ -17,35 +22,10 @@ const { title } = Astro.props; {title} + + +