From 2b7650847169a2cc49e500155de1f1e92c0c6d15 Mon Sep 17 00:00:00 2001
From: Ayo
Date: Tue, 7 Feb 2023 11:17:41 +0100
Subject: [PATCH] Fun Side Projects card
---
src/components/Posts.astro | 20 +++++++
src/layouts/Post.astro | 0
src/pages/index.astro | 25 ++++----
src/pages/now/and-then/09-20-2022.astro | 74 ++++++++++++++++++++++++
src/pages/{now.astro => now/index.astro} | 12 +++-
src/pages/showcase/index.astro | 11 +++-
6 files changed, 125 insertions(+), 17 deletions(-)
create mode 100644 src/components/Posts.astro
create mode 100644 src/layouts/Post.astro
create mode 100644 src/pages/now/and-then/09-20-2022.astro
rename src/pages/{now.astro => now/index.astro} (84%)
diff --git a/src/components/Posts.astro b/src/components/Posts.astro
new file mode 100644
index 0000000..5408607
--- /dev/null
+++ b/src/components/Posts.astro
@@ -0,0 +1,20 @@
+---
+import Card from "./Card.astro";
+import type { AstroInstance } from "astro";
+
+export interface Props {
+ posts: AstroInstance[];
+ title: string;
+}
+const { title, posts } = Astro.props;
+const postUrls: string[] = posts.map((post) => post.url || "");
+---
+
+{title}
+{
+ postUrls
+ .filter((url) => url !== "")
+ .map((url) => (
+
+ ))
+}
diff --git a/src/layouts/Post.astro b/src/layouts/Post.astro
new file mode 100644
index 0000000..e69de29
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 2954999..2e7330c 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -24,28 +24,29 @@ import Footer from "../components/Footer.astro";
diff --git a/src/pages/now/and-then/09-20-2022.astro b/src/pages/now/and-then/09-20-2022.astro
new file mode 100644
index 0000000..e2c3a6f
--- /dev/null
+++ b/src/pages/now/and-then/09-20-2022.astro
@@ -0,0 +1,74 @@
+---
+import Layout from "../../../layouts/Layout.astro";
+import Footer from "../../../components/Footer.astro";
+import Back from "../../../components/Back.astro";
+---
+
+
+
+
+ Sep. 20, 2022
+
+ This year (2022) I have moved to The Netherlands with my family;
+ specifically to the northern area of Amsterdam.
+
+
+ For work, I'm busy being a consultant, doing mostly frontend development.
+
+
+ If I'm not working, I am playing games on Xbox with my kid, Kahel, or most
+ probably trying to annoy my wife, Jen, with silly jokes.
+
+
+ I have also found a renewed joy in exploring opensource projects in my
+ spare time.
+
+
+
+
+
+
diff --git a/src/pages/now.astro b/src/pages/now/index.astro
similarity index 84%
rename from src/pages/now.astro
rename to src/pages/now/index.astro
index 2adafc1..462a209 100644
--- a/src/pages/now.astro
+++ b/src/pages/now/index.astro
@@ -1,7 +1,10 @@
---
-import Layout from "../layouts/Layout.astro";
-import Footer from "../components/Footer.astro";
-import Back from "../components/Back.astro";
+import Layout from "../../layouts/Layout.astro";
+import Footer from "../../components/Footer.astro";
+import Back from "../../components/Back.astro";
+import Posts from "../../components/Posts.astro";
+
+const posts = await Astro.glob("./and-then/*.astro");
---
@@ -24,6 +27,9 @@ import Back from "../components/Back.astro";
I have also found a renewed joy in exploring opensource projects in my
spare time.
+
+
+
About now pages
diff --git a/src/pages/showcase/index.astro b/src/pages/showcase/index.astro
index 438fc7c..ebf59ec 100644
--- a/src/pages/showcase/index.astro
+++ b/src/pages/showcase/index.astro
@@ -5,11 +5,18 @@ import Card from "../../components/Card.astro";
import Back from "../../components/Back.astro";
---
-
+
- UI Components
+ Fun Side Projects