'use client'; import React from 'react'; import { Panel } from '@/ui/Panel'; import { Glow } from '@/ui/Glow'; import { Box } from '@/ui/Box'; import { Container } from '@/ui/Container'; import { Heading } from '@/ui/Heading'; import { Section } from '@/ui/Section'; interface HomeFeatureSectionProps { heading: string; description: React.ReactNode; mockup: React.ReactNode; layout: 'text-left' | 'text-right'; accentColor?: 'primary' | 'aqua' | 'amber'; } /** * HomeFeatureSection - A semantic section highlighting a feature. * Refactored to use semantic HTML and Tailwind. */ export function HomeFeatureSection({ heading, description, mockup, layout, accentColor = 'primary', }: HomeFeatureSectionProps) { const accentBorderColor = { primary: 'primary-accent/40', aqua: 'telemetry-aqua/40', amber: 'warning-amber/40', }[accentColor]; const accentBgColor = { primary: 'primary-accent', aqua: 'telemetry-aqua', amber: 'warning-amber', }[accentColor]; const glowColor = ({ primary: 'primary', aqua: 'aqua', amber: 'amber', }[accentColor] || 'primary') as 'primary' | 'aqua' | 'amber' | 'purple'; return (
{/* Text Content */} {heading} {description} {/* Mockup Panel */} {mockup} {/* Decorative corner accents */}
); }