"use client"; import { useTranslations } from 'next-intl'; import { motion } from 'framer-motion'; import { Waves, Leaf, Music } from 'lucide-react'; import Image from 'next/image'; const features = [ { icon: Waves, titleKey: 'card1_title', descKey: 'card1_desc', color: 'text-aqua', bg: 'bg-aqua/10' }, { icon: Leaf, titleKey: 'card2_title', descKey: 'card2_desc', color: 'text-amber', bg: 'bg-amber/10' }, { icon: Music, titleKey: 'card3_title', descKey: 'card3_desc', color: 'text-coral', bg: 'bg-coral/10' }, ]; export default function About({ dbAbout }: { dbAbout?: any }) { const t = useTranslations('About'); const titleVal = dbAbout?.title || t('title'); const descVal = dbAbout?.description || t('description'); const imgUrl = dbAbout?.image || "https://picsum.photos/800/1100?random=2"; const featuresList = [ { icon: Waves, title: dbAbout?.card1Title || t('card1_title'), desc: dbAbout?.card1Desc || t('card1_desc'), color: 'text-aqua', bg: 'bg-aqua/10' }, { icon: Leaf, title: dbAbout?.card2Title || t('card2_title'), desc: dbAbout?.card2Desc || t('card2_desc'), color: 'text-amber', bg: 'bg-amber/10' }, { icon: Music, title: dbAbout?.card3Title || t('card3_title'), desc: dbAbout?.card3Desc || t('card3_desc'), color: 'text-coral', bg: 'bg-coral/10' }, ]; return (
{/* Left content */}
— Beach & More

{titleVal}

{descVal}

{featuresList.map(({ icon: Icon, title, desc, color, bg }, i) => (

{title}

{desc}

))}
{/* Right image */} {/* Glow ring */}
Kozmos atmosferi
); }