From d2bb939dc8cfcb77bdc5a5a4f76b3f21c3dfd72a Mon Sep 17 00:00:00 2001 From: becarta Date: Thu, 19 Jun 2025 00:41:41 +0200 Subject: [PATCH] Refactor multiple pages to enhance structure and styling: update About, Contact, Events, Home, Members, Orphanage pages with improved meta descriptions, layout changes, and consistent use of global styles. Replace BaseLayout with Header and Footer components for better modularity and maintainability. --- src/pages/about.astro | 27 +- src/pages/contact.astro | 488 ++++++++++++++++++++++++++++- src/pages/events.astro | 19 +- src/pages/home.astro | 20 +- src/pages/members.astro | 420 ++++++++++++++++++++++++- src/pages/orphanage.astro | 630 +++++++++++++++++++++++++++++++++++++- src/styles/main.css | 8 + 7 files changed, 1538 insertions(+), 74 deletions(-) diff --git a/src/pages/about.astro b/src/pages/about.astro index c463465..22459b9 100644 --- a/src/pages/about.astro +++ b/src/pages/about.astro @@ -9,10 +9,7 @@ import Footer from '../components/Footer.astro'; About - Omoluabi Association - - - - + + + \ No newline at end of file diff --git a/src/pages/events.astro b/src/pages/events.astro index 3e0cfd9..fedd6e7 100644 --- a/src/pages/events.astro +++ b/src/pages/events.astro @@ -19,10 +19,7 @@ const pastEvents = sortedEvents.filter((event: any) => new Date(event.frontmatte Events - Omoluabi Association - - - - + @@ -424,7 +425,7 @@ const pastEvents = sortedEvents.filter((event: any) => new Date(event.frontmatte
-

+

Want to Stay Updated?

diff --git a/src/pages/home.astro b/src/pages/home.astro index 4eb58ed..c028901 100644 --- a/src/pages/home.astro +++ b/src/pages/home.astro @@ -13,24 +13,8 @@ import EventsSection from '../components/EventsSection.astro'; Omoluabi Association - - - - - + +

diff --git a/src/pages/members.astro b/src/pages/members.astro index fc409d2..70d0827 100644 --- a/src/pages/members.astro +++ b/src/pages/members.astro @@ -1,22 +1,410 @@ --- -import BaseLayout from '../layouts/BaseLayout.astro'; +import Header from '../components/Header.astro'; +import Footer from '../components/Footer.astro'; +import '../styles/main.css'; + const membersData = await Astro.glob('../../content/members/members-sample.md'); const intro = membersData[0]?.frontmatter.intro || ''; const members = membersData[0]?.frontmatter.members || []; --- - -

Meet Our Members

-
-

Membership Benefits/Welfare Packages

-
{intro}
-
-
- {members.map(member => ( -
- {member.name} -

{member.name}

-

{member.role}

+ + + + + + + + Members - Omoluabi Association + + + +
+ +
+ +
+
+

Meet Our Members

+

Dedicated individuals working together to promote Nigerian heritage and community welfare

- ))} -
- \ No newline at end of file +
+ + +
+
+
+

Membership Benefits & Welfare Packages

+
+ {intro.split('\n').map((line: string, index: number) => { + if (line.trim()) { + return

{line.trim()}

; + } + return null; + })} +
+
+
+
+ + +
+
+

Our Leadership Team

+
+ {members.map((member: any) => ( +
+
+ {member.name} +
+
{member.role}
+
+
+
+

{member.name}

+

{member.role}

+
+
+ ))} +
+
+
+ + +
+
+
+

Join Our Community

+

Become a member and enjoy exclusive benefits while contributing to our mission of promoting Nigerian heritage and community welfare.

+ +
+
+
+ + +