--- import Layout from '../layouts/Layout.astro'; import Navbar from '../components/Navbar.astro'; import Footer from '../components/Footer.astro'; import HeroSection from '../components/sections/HeroSection.astro'; import BentoGrid from '../components/sections/BentoGrid.astro'; import ContactSection from '../components/sections/ContactSection.astro'; import FallbackSection from '../components/sections/FallbackSection.astro'; import { loadWaasConfigs } from '../utils/configLoader'; import { THEME_PRESETS } from '../utils/themePresets'; const { siteConfig, themeConfig, smtpConfig } = loadWaasConfigs(Astro.request.headers.get('user-agent') ?? ''); const activePreset = THEME_PRESETS[themeConfig.activePreset] || THEME_PRESETS.corporateDark; const colors = activePreset.colors; const sectionComponents: Record = { hero: HeroSection, bento: BentoGrid, services: BentoGrid, contact: ContactSection }; ---
{siteConfig.sectionsOrder.map((sectionKey) => { if (sectionKey === 'hero') { return ; } if (sectionKey === 'bento' || sectionKey === 'services') { return ; } if (sectionKey === 'contact') { return ; } return ; })}