From 89a1d62208b32f976750c822cdcb904192b57ec7 Mon Sep 17 00:00:00 2001 From: Thuan Bui <9248622+10h30@users.noreply.github.com> Date: Fri, 2 Jan 2026 12:30:54 +0700 Subject: [PATCH] Refactor pages to use BaseLayout component for consistent structure --- src/layouts/BaseLayout.astro | 25 ++++++++ src/pages/about.astro | 116 +++++++++++++++-------------------- src/pages/blog.astro | 35 +++-------- src/pages/index.astro | 27 ++------ 4 files changed, 90 insertions(+), 113 deletions(-) create mode 100644 src/layouts/BaseLayout.astro diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro new file mode 100644 index 0000000..cbda02d --- /dev/null +++ b/src/layouts/BaseLayout.astro @@ -0,0 +1,25 @@ +--- +import Header from "../components/Header.astro"; +import Footer from "../components/Footer.astro"; +import "../styles/global.css"; +const { pageTitle } = Astro.props; +--- + + +
+ + + + +- I am working through Astro's introductory tutorial. This is the second - page on my website, and it's the first one I built myself! -
- -- This site will update as I complete more of the tutorial, so keep checking - back and see how my journey is going! -
-Here are a few facts about me:
-My skills are:
-I am happy to be learning Astro!
} - - {finished &&I finished this tutorial!
} ++ I am working through Astro's introductory tutorial. This is the second page + on my website, and it's the first one I built myself! +
++ This site will update as I complete more of the tutorial, so keep checking + back and see how my journey is going! +
+Here are a few facts about me:
+My goal is to finish in 3 days.
- ) : ( -My goal is not 3 days.
+ identity.hobbies.length >= 2 && ( +My skills are:
+I am happy to be learning Astro!
} + + {finished &&I finished this tutorial!
} + + { + goal === 3 ? ( +My goal is to finish in 3 days.
+ ) : ( +My goal is not 3 days.
+ ) + } + +This is where I will post about my journey learning Astro.
- - - - - +This is where I will post about my journey learning Astro.
+ +