diff --git a/src/layouts/CenteredContent.astro b/src/layouts/CenteredContent.astro new file mode 100644 index 0000000..95b864b --- /dev/null +++ b/src/layouts/CenteredContent.astro @@ -0,0 +1,18 @@ +--- +import BaseLayout from '../layouts/BaseLayout.astro'; + +interface Props { + title: string; + description: string; +} + +const { title, description } = Astro.props as Props; +--- + + +
+ +
+
diff --git a/src/pages/404.astro b/src/pages/404.astro index 47052ce..d7393e8 100644 --- a/src/pages/404.astro +++ b/src/pages/404.astro @@ -1,16 +1,12 @@ --- -import Layout from '../layouts/Layout.astro'; +import CenteredContent from '../layouts/CenteredContent.astro'; const tagline = 'Browse past versions of thousands of Spotify playlists saved over time'; --- - -
- - This page doesn't exist (yet) - -
-
+ + + This page doesn't exist (yet) + + diff --git a/src/pages/about.astro b/src/pages/about.astro index 9fe6ad2..5bc756b 100644 --- a/src/pages/about.astro +++ b/src/pages/about.astro @@ -1,44 +1,40 @@ --- -import Layout from '../layouts/Layout.astro'; +import CenteredContent from '../layouts/CenteredContent.astro'; const currentYear = new Date().getFullYear(); --- - -
-

- Spotify Playlist Archive -

-

- © 2019-{currentYear} Mack Ward, Maciej Pędzich. Released under MIT License. -

-

- Developed using - these packages. Hosted on - Netlify. -

-

- Source code: - playlist archive - | - this website. -

- This project is not associated with Spotify AB in any way! + Spotify Playlist Archive + +

+ © 2019-{currentYear} Mack Ward, Maciej Pędzich. Released under MIT License. +

+

+ Developed using + these packages. Hosted on + Netlify. +

+

+ Source code: + playlist archive -

-
+ | + this website. +

+

+ This project is not associated with Spotify AB in any way! +

+ diff --git a/src/pages/index.astro b/src/pages/index.astro index 2322c0b..66daa49 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,22 +1,17 @@ --- -import Layout from '../layouts/Layout.astro'; - +import CenteredContent from '../layouts/CenteredContent.astro'; import PlaylistSearchInput from '../components/vue/PlaylistSearchInput.vue'; const tagline = 'Browse past versions of thousands of Spotify playlists saved over time'; --- - -
-

- Spotify Playlist Archive -

-
-

{tagline}

- -
+ +

+ Spotify Playlist Archive +

+
+

{tagline}

+
- +