import React from "react"; import type { AboutData } from "../types"; interface AboutSectionProps { data: AboutData; variant?: "dark" | "light"; titleOverride?: string; contentOverride?: string; } export function AboutSection({ data, variant = "dark", titleOverride, contentOverride, }: AboutSectionProps) { const isLight = variant === "light"; const sectionClasses = isLight ? "py-16 md:py-20 bg-[#f6f8fc]" : "py-10 md:py-14 border-t border-[rgba(255,255,255,0.02)]"; const titleClasses = isLight ? "text-3xl md:text-[34px] mb-6 font-semibold text-[#0f1f39]" : "text-lg md:text-xl mb-4 md:mb-[18px] text-white"; const paragraphClasses = isLight ? "text-base leading-relaxed text-[#4b5565] md:text-lg" : "text-huilong-muted leading-relaxed"; const cardClasses = isLight ? "bg-white border border-[#dfe4ee] text-left shadow-[0_16px_32px_rgba(15,31,57,0.06)]" : "bg-huilong-card border border-[rgba(255,255,255,0.03)]"; const cardTitleClasses = isLight ? "text-[#0f1f39]" : "text-white"; const cardContentClasses = isLight ? "text-sm text-[#4b5565] leading-relaxed" : "text-huilong-muted text-sm"; const title = titleOverride ?? data.title; const content = contentOverride ?? data.content; return (

{title}

{content}

{data.cards.map((card, idx) => (

{card.title}

{card.content}

))}
); }