From 1a753e1a766117905d08489fd7e973d1c797b139 Mon Sep 17 00:00:00 2001
From: Oliver Bryan <65399431+hex248@users.noreply.github.com>
Date: Mon, 8 Sep 2025 12:09:20 +0100
Subject: [PATCH] super basic pagination
---
src/components/Header.astro | 10 ++++++++++
src/components/NavLink.astro | 9 +++++++++
src/layouts/Layout.astro | 20 ++++++++++++++++++++
src/pages/about.astro | 7 +++++++
src/pages/index.astro | 19 +++++--------------
5 files changed, 51 insertions(+), 14 deletions(-)
create mode 100644 src/components/Header.astro
create mode 100644 src/components/NavLink.astro
create mode 100644 src/layouts/Layout.astro
create mode 100644 src/pages/about.astro
diff --git a/src/components/Header.astro b/src/components/Header.astro
new file mode 100644
index 00000000..c7ab4c98
--- /dev/null
+++ b/src/components/Header.astro
@@ -0,0 +1,10 @@
+---
+import NavLink from "./NavLink.astro";
+
+const { currentPage } = Astro.props;
+---
+
+
diff --git a/src/components/NavLink.astro b/src/components/NavLink.astro
new file mode 100644
index 00000000..5f3bb83f
--- /dev/null
+++ b/src/components/NavLink.astro
@@ -0,0 +1,9 @@
+---
+const { currentPage, title, href } = Astro.props;
+---
+
+{title}
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro
new file mode 100644
index 00000000..9dfc4b6a
--- /dev/null
+++ b/src/layouts/Layout.astro
@@ -0,0 +1,20 @@
+---
+import "../styles/global.css";
+import Header from "../components/Header.astro";
+const { currentPage } = Astro.props;
+---
+
+
+
+
+
+
+ ob - {currentPage}
+
+
+
+
+
+
+
+
diff --git a/src/pages/about.astro b/src/pages/about.astro
new file mode 100644
index 00000000..a591c435
--- /dev/null
+++ b/src/pages/about.astro
@@ -0,0 +1,7 @@
+---
+import Layout from "../layouts/Layout.astro";
+---
+
+
+ about page
+
\ No newline at end of file
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 2d141073..f974355b 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -1,16 +1,7 @@
---
+import Layout from "../layouts/Layout.astro";
+---
----
-
-
-
-
-
-
-
- Astro
-
-
- Astro
-
-
+
+ home page
+
\ No newline at end of file