From 1c5a2f997643c41b2714da082f673d55758417fb Mon Sep 17 00:00:00 2001 From: mohanadft Date: Mon, 14 Sep 2026 16:09:18 +0300 Subject: [PATCH] feat: restyle homepage to match membership's design system and fix sitewide font loading - Load Outfit font weights sitewide via Layout.astro (previously only /membership loaded the actual font file, so most pages silently fell back to the system sans stack despite Tailwind's fontFamily.sans already being set to Outfit). - Restyle the homepage (index.astro) to match /membership's plain-mode visual language: unified brand green (#157A3E), sage-tinted section bands, cream- bordered cards with a green top accent, pill-shaped CTAs, and the animated flag-stripe divider motif. - Extract the flag-stripe divider into a shared FlagStripe.astro component, used by both /membership and the homepage instead of duplicating the CSS. - Update Footer.astro's link structure to mirror the navbar's categories/links exactly, and widen the shared page container. Co-Authored-By: Claude Sonnet 5 --- src/components/Container.astro | 2 +- src/components/FlagStripe.astro | 43 ++++ src/components/Footer.astro | 39 ++- .../membership/MembershipMain.astro | 42 +--- src/layouts/Layout.astro | 9 + src/pages/index.astro | 235 +++++++++--------- src/pages/membership.astro | 10 - 7 files changed, 194 insertions(+), 186 deletions(-) create mode 100644 src/components/FlagStripe.astro diff --git a/src/components/Container.astro b/src/components/Container.astro index 910aa894..7b8a88f4 100644 --- a/src/components/Container.astro +++ b/src/components/Container.astro @@ -1,3 +1,3 @@ -
+
diff --git a/src/components/FlagStripe.astro b/src/components/FlagStripe.astro new file mode 100644 index 00000000..93f30f51 --- /dev/null +++ b/src/components/FlagStripe.astro @@ -0,0 +1,43 @@ +--- +// Animated Palestinian-flag-color divider, used as a recurring section +// separator on /membership and the homepage. +--- + + + + diff --git a/src/components/Footer.astro b/src/components/Footer.astro index f725b699..3d2abfa9 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -2,15 +2,14 @@ import Container from "./Container.astro"; import Socials from "./Socials.astro"; -// Footer navigation matching the new navbar structure +// Mirrors the navbar's categories/links exactly (src/components/NavBar.svelte navigation map) const footerNavigation: Record = { About: { href: "/about", links: [ ["Our Organization", "/about"], - // ["Mission & Vision", "/coming-soon"], ["Team", "/team"], - ["Media", "/media"], + ["FAQ", "/faq"], ["Contact Us", "/contact"], ], }, @@ -26,31 +25,29 @@ const footerNavigation: Record +
@@ -111,7 +108,7 @@ const footerNavigation: Record ( Privacy Policy Terms of Service Legal & Financial
diff --git a/src/components/membership/MembershipMain.astro b/src/components/membership/MembershipMain.astro index 05dbef40..af93ff06 100644 --- a/src/components/membership/MembershipMain.astro +++ b/src/components/membership/MembershipMain.astro @@ -1,5 +1,6 @@ --- import JoinFlow from "./JoinFlow"; +import FlagStripe from "../FlagStripe.astro"; import { getTestimonials } from "../../data/testimonials"; interface Props { @@ -206,7 +207,7 @@ const cx = designSystem
- +
@@ -308,7 +309,7 @@ const cx = designSystem } - +
@@ -429,43 +430,6 @@ const cx = designSystem - -