How alancuenca/business-starter works
Purpose and Runtime
FixIt Pro is a static-first Astro 5 marketing theme for local trade and renovation businesses. Astro renders HTML pages and content-collection routes; deployment targets any static host. Node.js 18+ and pnpm are the development/build runtime. Core setup is in astro.config.mjs, package.json, and src/site.config.ts.
Page and Layout Entry Points
Astro file-based routes define the public site: landing, company/contact pages, and service/project indexes and detail routes. src/layouts/BaseLayout.astro supplies the shared document shell. Primary entries are src/pages/index.astro, src/pages/services/[...slug].astro, and src/pages/projects/[...slug].astro; collection index pages provide browse/list views.
Central Business Configuration and SEO
src/site.config.ts is the authoritative business identity source (name, contact and address data). The base layout and pages compose SEO metadata and structured data through src/components/seo/SEOHead.astro and src/components/seo/LocalBusinessSchema.astro. Detail service routes additionally generate service-oriented SEO/schema from collection content. This separates tenant branding and search metadata from page presentation.
Content Collections as CMS Boundary
Astro content collections provide the primary content boundary and static-route input. Schemas/validation live in src/content/config.ts; authored service and project Markdown drive their corresponding routes, while JSON reviews feed testimonial content. Representative inputs are src/content/services/emergency-plumbing.md, src/content/projects/modern-kitchen-transformation.md, and src/content/reviews/sarah-chen.json. Images reside under src/assets/images and are intended for Astro asset optimization.
Presentation Composition
Reusable marketing sections assemble collection and configuration data into pages: src/components/sections/Hero.astro, src/components/sections/ServiceGrid.astro, and src/components/sections/ProjectShowcase.astro. Shared chrome and conversion surfaces are in src/components/custom/StickyHeader.astro, src/components/custom/Footer.astro, and src/components/custom/ContactForm.astro. The design-system boundary is the local Starwind component set, such as src/components/starwind/button/Button.astro and src/components/starwind/card/Card.astro, styled globally by src/styles/starwind.css.
Interaction and Lead Flow
The site is intentionally HTML-first with only localized browser behavior. The sticky header exposes navigation and phone CTAs; the contact flow uses src/components/custom/ContactForm.astro for native validation, multi-step progression, and sessionStorage persistence. Project details use src/components/custom/BeforeAfterSlider.astro for client-side image comparison. No backend, CRM, email provider, or form-submission service is represented in the repository, so lead submission handling is an external integration boundary.
Build, Quality, and Deployment Boundaries
Astro produces the dist/ static artifact, compatible with Netlify, Vercel, Cloudflare Pages, or generic static hosting. Playwright is the browser-level quality boundary, configured by playwright.config.ts and focused on conversion and route correctness in tests/e2e/contact-form.spec.ts and tests/e2e/services-urls.spec.ts. Workspace/package resolution is managed through pnpm-workspace.yaml and pnpm-lock.yaml.
Main entry points: BaseLayout.astro Shared document shell · Hero.astro Marketing sections · index.astro Public routes · config.ts Collection schemas
Components 21
Content and branding
- Business configuration · Authoritative business identity, contact, and address data.
src/site.config.ts - Collection schemas · Validates service, project, and review content.
src/content/config.ts - Service Markdown
src/content/services/emergency-plumbing.md - Project Markdown
src/content/projects/modern-kitchen-transformation.md - Review JSON
src/content/reviews/sarah-chen.json - Image assets · Images are optimized during Astro builds.
src/assets/images
Astro site
- Public routes · Landing, company, contact, and collection browse pages.
src/pages/index.astro - Service detail routes
src/pages/services/[...slug].astro - Project detail routes
src/pages/projects/[...slug].astro - Shared document shell
src/layouts/BaseLayout.astro - SEO metadata
src/components/seo/SEOHead.astro - Local business schema
src/components/seo/LocalBusinessSchema.astro
Presentation and interactions
- Marketing sections · Hero, service grid, and project showcase compose page content.
src/components/sections/Hero.astro - Header and footer · Navigation and conversion CTAs.
src/components/custom/StickyHeader.astro - Contact lead flow · Native validation, multi-step state, and sessionStorage persistence.
src/components/custom/ContactForm.astro - Before/after comparison
src/components/custom/BeforeAfterSlider.astro - Starwind design system
src/components/starwind/button/Button.astro
Build and quality
- Astro static build · Node.js and pnpm build the site into static output.
astro.config.mjs - Static hosting · Any compatible static host serves the generated site.
- Browser quality checks · Covers contact conversion and service-route correctness.
tests/e2e/contact-form.spec.ts
Other components
- Lead submission integration · No submission provider is implemented in the repository.
Connections 27
- Collection schemas → Service Markdown: validates
- Collection schemas → Project Markdown: validates
- Collection schemas → Review JSON: validates
- Service Markdown → Service detail routes: generates routes
- Project Markdown → Project detail routes: generates routes
- Public routes → Shared document shell: uses
- Service detail routes → Shared document shell: uses
- Project detail routes → Shared document shell: uses
- Business configuration → SEO metadata: supplies identity
- Business configuration → Local business schema: supplies business data
- Shared document shell → SEO metadata: renders
- Shared document shell → Local business schema: renders
- Public routes → Marketing sections: composes
- Service Markdown → Marketing sections: supplies content
- Project Markdown → Marketing sections: supplies content
- Review JSON → Marketing sections: supplies testimonials
- Shared document shell → Header and footer: includes
- Public routes → Contact lead flow: embeds
- Contact lead flow → Lead submission integration: submits to
- Project detail routes → Before/after comparison: embeds
- Image assets → Marketing sections: renders optimized images
- Starwind design system → Marketing sections: styles
- Starwind design system → Header and footer: styles
- Astro static build → Public routes: builds
- Astro static build → Static hosting: publishes dist
- Browser quality checks → Public routes: verifies routes
- Browser quality checks → Contact lead flow: verifies conversion