From 45e3a2afbc7c4d4baa8b1881a7129c41f5978589 Mon Sep 17 00:00:00 2001 From: Alejandro Laguna Date: Sun, 24 Aug 2025 22:43:47 +0200 Subject: [PATCH] feat: work in progress page --- src/components/WorkInProgress.astro | 46 +++++++++++++++++++++++++++++ src/pages/404.astro | 2 +- src/pages/library/[...slug].astro | 20 +++++++++++++ src/pages/library/index.astro | 39 ++++++++++++++++++++++++ src/pages/notes/[...slug].astro | 20 +++++++++++++ src/pages/notes/index.astro | 39 ++++++++++++++++++++++++ src/pages/workshop/index.astro | 9 ++++-- 7 files changed, 172 insertions(+), 3 deletions(-) create mode 100644 src/components/WorkInProgress.astro create mode 100644 src/pages/library/[...slug].astro create mode 100644 src/pages/library/index.astro create mode 100644 src/pages/notes/[...slug].astro create mode 100644 src/pages/notes/index.astro diff --git a/src/components/WorkInProgress.astro b/src/components/WorkInProgress.astro new file mode 100644 index 0000000..f280bb2 --- /dev/null +++ b/src/components/WorkInProgress.astro @@ -0,0 +1,46 @@ +--- +import "../styles/global.css" +import Layout from "../layouts/Layout.astro" +import NavigationCard from '../components/NavigationCard.astro'; +import { ArrowLeft, Construction } from 'lucide-astro'; + +const navItems = [ + { + href: "/", + icon: ArrowLeft, + heading: "Home", + content: "Go back" + }, +]; +--- + + +
+
+ +

+ Work in Progress +

+
+

+ This page is currently under construction. I'm working hard to bring you something amazing, but it's not quite ready yet. +

+

+ Check back soon for updates, or feel free to explore other parts of the site while you wait. +

+
+ +
+ +
+ {navItems.map(item => ( + + ))} +
+
+
diff --git a/src/pages/404.astro b/src/pages/404.astro index 3a1db09..76f0b37 100644 --- a/src/pages/404.astro +++ b/src/pages/404.astro @@ -16,7 +16,7 @@ const navItems = [

- Seems like you tried to find something that doesn't exist yet. + 404. Seems like you tried to find something that doesn't exist yet.

I don't like to remove anything from here, but it can happen from time to time. Or maybe you mistyped something. In any case, my apologies. Feel free to go back to the very beginning if you want. diff --git a/src/pages/library/[...slug].astro b/src/pages/library/[...slug].astro new file mode 100644 index 0000000..d21ee27 --- /dev/null +++ b/src/pages/library/[...slug].astro @@ -0,0 +1,20 @@ +--- +import { type CollectionEntry, getCollection, render } from 'astro:content'; +import PostLayout from '../../layouts/PostLayout.astro'; + +export async function getStaticPaths() { + const posts = await getCollection('workshop'); + return posts.map((post) => ({ + params: { slug: post.id }, + props: post, + })); +} +type Props = CollectionEntry<'workshop'>; + +const post = Astro.props; +const { Content } = await render(post); +--- + + + + diff --git a/src/pages/library/index.astro b/src/pages/library/index.astro new file mode 100644 index 0000000..7496d8e --- /dev/null +++ b/src/pages/library/index.astro @@ -0,0 +1,39 @@ + +--- +import WorkInProgress from "../../components/WorkInProgress.astro" +--- + + diff --git a/src/pages/notes/[...slug].astro b/src/pages/notes/[...slug].astro new file mode 100644 index 0000000..d21ee27 --- /dev/null +++ b/src/pages/notes/[...slug].astro @@ -0,0 +1,20 @@ +--- +import { type CollectionEntry, getCollection, render } from 'astro:content'; +import PostLayout from '../../layouts/PostLayout.astro'; + +export async function getStaticPaths() { + const posts = await getCollection('workshop'); + return posts.map((post) => ({ + params: { slug: post.id }, + props: post, + })); +} +type Props = CollectionEntry<'workshop'>; + +const post = Astro.props; +const { Content } = await render(post); +--- + + + + diff --git a/src/pages/notes/index.astro b/src/pages/notes/index.astro new file mode 100644 index 0000000..7496d8e --- /dev/null +++ b/src/pages/notes/index.astro @@ -0,0 +1,39 @@ + +--- +import WorkInProgress from "../../components/WorkInProgress.astro" +--- + + diff --git a/src/pages/workshop/index.astro b/src/pages/workshop/index.astro index eda8bc3..7496d8e 100644 --- a/src/pages/workshop/index.astro +++ b/src/pages/workshop/index.astro @@ -1,4 +1,4 @@ ---- + +--- +import WorkInProgress from "../../components/WorkInProgress.astro" +--- + +