Files
g-butandClaude Opus 4.5 4600019eb3 refactor(bots): config-driven bot pages architecture
Replace individual static bot pages with a single dynamic [slug]/page.tsx
that renders from centralized configuration. This makes adding new bots
a matter of editing config files only - no new page files needed.

Architecture changes:
- Add lib/config/bot-pages.ts as SSOT for all bot page content
- Add components/shared/sections/ with generic section components
- Add app/bots/[slug]/page.tsx as single dynamic page
- Remove 100+ files from individual bot directories

New section components:
- DisclaimerSection, FeaturesSection, HowItWorksSection
- BenefitsSection, TestimonialsSection, VisionSection
- TechnologySection, CTASection, DemoSectionWrapper

To add a new bot now:
1. Add entry to lib/config/bot-pages.ts (sections + content)
2. Add hero config to data/botHeroConfigs.ts
3. Add demo config to lib/demo/botDemoConfigs.ts
4. Add basic info to data/bots.ts
Done - no new page.tsx files needed!

Files deleted: ~100+ (bot-specific pages/components)
Files added: 11 (config + generic sections)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 18:57:33 +01:00

23 lines
656 B
TypeScript

'use client';
import type { DisclaimerContent } from '@/lib/config/bot-pages';
interface DisclaimerSectionProps {
content: DisclaimerContent;
}
export function DisclaimerSection({ content }: DisclaimerSectionProps) {
return (
<div className="rounded-xl bg-amber-50 border border-amber-200 p-6">
<div className="flex flex-col gap-4">
{content.items.map((item, index) => (
<div key={index} className="flex items-start gap-3">
<span className="text-xl flex-shrink-0">{item.icon}</span>
<p className="text-amber-800 text-sm">{item.text}</p>
</div>
))}
</div>
</div>
);
}