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
This commit is contained in:
@@ -1,17 +1,17 @@
|
|||||||
---
|
---
|
||||||
import { getEntry } from 'astro:content';
|
import { getEntry } from 'astro:content';
|
||||||
import BaseLayout from '../layouts/BaseLayout.astro';
|
import BaseLayout from '../../layouts/BaseLayout.astro';
|
||||||
import HomeBenefits from './home/HomeBenefits.astro';
|
import HomeBenefits from '../home/HomeBenefits.astro';
|
||||||
import HomeDirector from './home/HomeDirector.astro';
|
import HomeDirector from '../home/HomeDirector.astro';
|
||||||
import HomeEsa from './home/HomeEsa.astro';
|
import HomeEsa from '../home/HomeEsa.astro';
|
||||||
import HomeFinancialHelp from './home/HomeFinancialHelp.astro';
|
import HomeFinancialHelp from '../home/HomeFinancialHelp.astro';
|
||||||
import HomeHero from './home/HomeHero.astro';
|
import HomeHero from '../home/HomeHero.astro';
|
||||||
import HomeInsurance from './home/HomeInsurance.astro';
|
import HomeInsurance from '../home/HomeInsurance.astro';
|
||||||
import HomeProcess from './home/HomeProcess.astro';
|
import HomeProcess from '../home/HomeProcess.astro';
|
||||||
import HomeServicesIntro from './home/HomeServicesIntro.astro';
|
import HomeServicesIntro from '../home/HomeServicesIntro.astro';
|
||||||
import HomeSkills from './home/HomeSkills.astro';
|
import HomeSkills from '../home/HomeSkills.astro';
|
||||||
import HomeTestimonials from './home/HomeTestimonials.astro';
|
import HomeTestimonials from '../home/HomeTestimonials.astro';
|
||||||
import type { HomePageContent, HomeSection } from '../types/home-sections';
|
import type { HomePageContent, HomeSection } from '../../types/home-sections';
|
||||||
|
|
||||||
interface Props { lang?: string }
|
interface Props { lang?: string }
|
||||||
const { lang = 'en' } = Astro.props;
|
const { lang = 'en' } = Astro.props;
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
import Button from './Button.astro';
|
import Button from '../Button.astro';
|
||||||
---
|
---
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
import BaseLayout from './BaseLayout.astro';
|
import BaseLayout from './BaseLayout.astro';
|
||||||
import FormShell from '../components/FormShell.astro';
|
import FormShell from '../components/FormShell.astro';
|
||||||
import TeamPage from '../components/TeamPage.astro';
|
import TeamPage from '../components/pages/TeamPage.astro';
|
||||||
import AboutPage from '../components/AboutPage.astro';
|
import AboutPage from '../components/pages/AboutPage.astro';
|
||||||
import ServicesPage from '../components/ServicesPage.astro';
|
import ServicesPage from '../components/pages/ServicesPage.astro';
|
||||||
import CareersPage from '../components/CareersPage.astro';
|
import CareersPage from '../components/pages/CareersPage.astro';
|
||||||
import FaqPage from '../components/FaqPage.astro';
|
import FaqPage from '../components/pages/FaqPage.astro';
|
||||||
import PageHero from '../components/PageHero.astro';
|
import PageHero from '../components/PageHero.astro';
|
||||||
import { pageHeroImages } from '../data/page-visuals';
|
import { pageHeroImages } from '../data/page-visuals';
|
||||||
const { entry } = Astro.props;
|
const { entry } = Astro.props;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
import HomePage from '../../components/HomePage.astro';
|
import HomePage from '../../components/pages/HomePage.astro';
|
||||||
---
|
---
|
||||||
<HomePage lang="es" />
|
<HomePage lang="es" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
import HomePage from '../components/HomePage.astro';
|
import HomePage from '../components/pages/HomePage.astro';
|
||||||
---
|
---
|
||||||
<HomePage lang="en" />
|
<HomePage lang="en" />
|
||||||
|
|||||||
Reference in New Issue
Block a user