Content Service
Component Detail
Service Layer
low complexity
backend
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Provides structured page content for the landing page, separating data from presentation. Fetches hero text, benefit descriptions, social proof items, and CTA copy from a headless CMS or structured JSON files, enabling non-developer content updates and future A/B testing or multi-language support.
content-service
Responsibilities
- Fetch and serve structured landing page content at build time for SSG
- Support content versioning for A/B testing variations
- Provide fallback content if CMS is unavailable
- Validate content structure against expected schema
Interfaces
getHeroContent(): Promise<HeroContent>
getBenefits(): Promise<Benefit[]>
getSocialProof(): Promise<SocialProofItem[]>
getCTAContent(): Promise<CTAContent>
getPageMetadata(): Promise<PageMetadata>
getContentBySection(sectionId: string): Promise<SectionContent>