From 0a00baeefb231db6e6908d921b272acd5079c2fb Mon Sep 17 00:00:00 2001 From: IwanIDev Date: Fri, 27 Mar 2026 15:19:33 +0000 Subject: refactor: move home page header into a seperate component --- astro.config.mjs | 3 +++ src/components/HomePageHeader.astro | 11 +++++++++++ src/pages/index.astro | 15 ++------------- 3 files changed, 16 insertions(+), 13 deletions(-) create mode 100644 src/components/HomePageHeader.astro diff --git a/astro.config.mjs b/astro.config.mjs index 2d50471..444c212 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -8,6 +8,9 @@ import react from "@astrojs/react" export default defineConfig({ vite: { plugins: [tailwindcss()], + optimizeDeps: { + exclude: ['astro/virtual-modules/prefetch.js'] + } }, integrations: [react()], prefetch: true, diff --git a/src/components/HomePageHeader.astro b/src/components/HomePageHeader.astro new file mode 100644 index 0000000..b03c189 --- /dev/null +++ b/src/components/HomePageHeader.astro @@ -0,0 +1,11 @@ +--- +--- + +
+

Iwan Ingman

+

+ I'm a Computer Science student at Cardiff University, with a focus + on Software Development. +

+
+ diff --git a/src/pages/index.astro b/src/pages/index.astro index e3afff5..af26414 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -2,24 +2,13 @@ import Layout from "@/layouts/main.astro" import BlogPosts from "@/components/BlogPosts.astro" import OpenRing from "@/components/OpenRing.astro" +import HomePageHeader from "@/components/HomePageHeader.astro" ---
- -
-

Iwan Ingman

-

- I'm a Computer Science student at Cardiff University, with a focus - on Software Development. -

-
- - - + - -
-- cgit