From 9398321facce084b0e0046cd429a8f1c4fcf7c4e Mon Sep 17 00:00:00 2001 From: Jeffrey Hales Date: Fri, 19 Jun 2026 21:03:27 -0700 Subject: [PATCH] refactor(components): separate page shells from reusable components Additional info: - move page-specific shells into src/components/pages/ - keep reusable building blocks and home sections in their existing component folders - update PageLayout and the home route imports to the new page-shell paths - preserve current page behavior while making the component tree easier to navigate --- .../components/{ => pages}/AboutPage.astro | 0 .../components/{ => pages}/CareersPage.astro | 0 www/src/components/{ => pages}/FaqPage.astro | 0 www/src/components/{ => pages}/HomePage.astro | 24 +++++++++---------- .../components/{ => pages}/ServicesPage.astro | 2 +- www/src/components/{ => pages}/TeamPage.astro | 0 www/src/layouts/PageLayout.astro | 10 ++++---- www/src/pages/es/index.astro | 2 +- www/src/pages/index.astro | 2 +- 9 files changed, 20 insertions(+), 20 deletions(-) rename www/src/components/{ => pages}/AboutPage.astro (100%) rename www/src/components/{ => pages}/CareersPage.astro (100%) rename www/src/components/{ => pages}/FaqPage.astro (100%) rename www/src/components/{ => pages}/HomePage.astro (74%) rename www/src/components/{ => pages}/ServicesPage.astro (99%) rename www/src/components/{ => pages}/TeamPage.astro (100%) diff --git a/www/src/components/AboutPage.astro b/www/src/components/pages/AboutPage.astro similarity index 100% rename from www/src/components/AboutPage.astro rename to www/src/components/pages/AboutPage.astro diff --git a/www/src/components/CareersPage.astro b/www/src/components/pages/CareersPage.astro similarity index 100% rename from www/src/components/CareersPage.astro rename to www/src/components/pages/CareersPage.astro diff --git a/www/src/components/FaqPage.astro b/www/src/components/pages/FaqPage.astro similarity index 100% rename from www/src/components/FaqPage.astro rename to www/src/components/pages/FaqPage.astro diff --git a/www/src/components/HomePage.astro b/www/src/components/pages/HomePage.astro similarity index 74% rename from www/src/components/HomePage.astro rename to www/src/components/pages/HomePage.astro index dc21479..be54c4f 100644 --- a/www/src/components/HomePage.astro +++ b/www/src/components/pages/HomePage.astro @@ -1,17 +1,17 @@ --- import { getEntry } from 'astro:content'; -import BaseLayout from '../layouts/BaseLayout.astro'; -import HomeBenefits from './home/HomeBenefits.astro'; -import HomeDirector from './home/HomeDirector.astro'; -import HomeEsa from './home/HomeEsa.astro'; -import HomeFinancialHelp from './home/HomeFinancialHelp.astro'; -import HomeHero from './home/HomeHero.astro'; -import HomeInsurance from './home/HomeInsurance.astro'; -import HomeProcess from './home/HomeProcess.astro'; -import HomeServicesIntro from './home/HomeServicesIntro.astro'; -import HomeSkills from './home/HomeSkills.astro'; -import HomeTestimonials from './home/HomeTestimonials.astro'; -import type { HomePageContent, HomeSection } from '../types/home-sections'; +import BaseLayout from '../../layouts/BaseLayout.astro'; +import HomeBenefits from '../home/HomeBenefits.astro'; +import HomeDirector from '../home/HomeDirector.astro'; +import HomeEsa from '../home/HomeEsa.astro'; +import HomeFinancialHelp from '../home/HomeFinancialHelp.astro'; +import HomeHero from '../home/HomeHero.astro'; +import HomeInsurance from '../home/HomeInsurance.astro'; +import HomeProcess from '../home/HomeProcess.astro'; +import HomeServicesIntro from '../home/HomeServicesIntro.astro'; +import HomeSkills from '../home/HomeSkills.astro'; +import HomeTestimonials from '../home/HomeTestimonials.astro'; +import type { HomePageContent, HomeSection } from '../../types/home-sections'; interface Props { lang?: string } const { lang = 'en' } = Astro.props; diff --git a/www/src/components/ServicesPage.astro b/www/src/components/pages/ServicesPage.astro similarity index 99% rename from www/src/components/ServicesPage.astro rename to www/src/components/pages/ServicesPage.astro index 4aefac6..496d8aa 100644 --- a/www/src/components/ServicesPage.astro +++ b/www/src/components/pages/ServicesPage.astro @@ -1,5 +1,5 @@ --- -import Button from './Button.astro'; +import Button from '../Button.astro'; ---