From 0f75bf3443996f287b9a8a70abb0b3ac8031def8 Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Sun, 12 May 2024 08:33:19 +0100 Subject: Styling overhaul --- website/src/components/BlogFeed.astro | 28 ++++++++++++---------------- website/src/components/Me.astro | 26 +++++++++++++++++--------- website/src/components/Navbar.astro | 13 +++++++++++++ website/src/layouts/BlogPost.astro | 18 ++++++++++-------- website/src/layouts/Page.astro | 6 +++++- website/src/pages/blog/index.astro | 2 ++ website/src/pages/index.astro | 2 +- 7 files changed, 60 insertions(+), 35 deletions(-) create mode 100644 website/src/components/Navbar.astro (limited to 'website/src') diff --git a/website/src/components/BlogFeed.astro b/website/src/components/BlogFeed.astro index b6f9d55..c507d69 100644 --- a/website/src/components/BlogFeed.astro +++ b/website/src/components/BlogFeed.astro @@ -54,23 +54,19 @@ const canonicalBlogUrl = new URL('blog', Astro.site) This blog is written by Joe Carstairs

-

+

- - \ No newline at end of file + { distinctYears.map(year => ( +

{year}

+ + )) } + diff --git a/website/src/components/Me.astro b/website/src/components/Me.astro index c9af587..1a2140b 100644 --- a/website/src/components/Me.astro +++ b/website/src/components/Me.astro @@ -4,13 +4,19 @@
-
+

+ Joe Carstairs +

+ + +
+

Hi! šŸ‘‹ My name is Joe Carstairs. I’m a @@ -33,11 +39,13 @@

- Or get me on - Facebook, - Mastodon, - LinkedIn, - or GitHub. + + Or get me on + Facebook, + Mastodon, + LinkedIn, + or GitHub. +

-
\ No newline at end of file + diff --git a/website/src/components/Navbar.astro b/website/src/components/Navbar.astro new file mode 100644 index 0000000..bae661b --- /dev/null +++ b/website/src/components/Navbar.astro @@ -0,0 +1,13 @@ +--- +--- + + diff --git a/website/src/layouts/BlogPost.astro b/website/src/layouts/BlogPost.astro index b709356..8639caa 100644 --- a/website/src/layouts/BlogPost.astro +++ b/website/src/layouts/BlogPost.astro @@ -2,6 +2,7 @@ import type { CollectionEntry } from 'astro:content'; import BaseHead from '../components/BaseHead.astro'; import FormattedDate from '../components/FormattedDate.astro'; +import Navbar from '../components/Navbar.astro'; type Props = CollectionEntry<'blog'>['data']; @@ -22,11 +23,12 @@ const updatedDateStr = updatedDate ? +
-

{title}

+
+

{title}

+

+

-

- -

+
-
+
diff --git a/website/src/layouts/Page.astro b/website/src/layouts/Page.astro index 4e5f3bb..d41e58c 100644 --- a/website/src/layouts/Page.astro +++ b/website/src/layouts/Page.astro @@ -1,5 +1,6 @@ --- import BaseHead from "../components/BaseHead.astro"; +import Navbar from "../components/Navbar.astro"; const { title, description } = Astro.props; --- @@ -11,7 +12,10 @@ const { title, description } = Astro.props; - + +
+ +
diff --git a/website/src/pages/blog/index.astro b/website/src/pages/blog/index.astro index 0c617bd..61a1a46 100644 --- a/website/src/pages/blog/index.astro +++ b/website/src/pages/blog/index.astro @@ -2,6 +2,7 @@ import BaseHead from '../../components/BaseHead.astro'; import { SITE_TITLE, SITE_DESCRIPTION } from '../../consts'; import BlogFeed from '../../components/BlogFeed.astro'; +import Navbar from '../../components/Navbar.astro'; --- @@ -10,6 +11,7 @@ import BlogFeed from '../../components/BlogFeed.astro'; +
diff --git a/website/src/pages/index.astro b/website/src/pages/index.astro index 74cf934..4e9d87b 100644 --- a/website/src/pages/index.astro +++ b/website/src/pages/index.astro @@ -8,4 +8,4 @@ import Page from '../layouts/Page.astro'; - \ No newline at end of file + -- cgit v1.2.3