'use client' import Image from 'next/image' import { useLang } from '@/context/LangContext' const featurePillIcons = [ , , , ] const PILL_KEYS = [ { titleKey: 'pillRemindersTitle', descKey: 'pillRemindersDesc' }, { titleKey: 'pillDiagTitle', descKey: 'pillDiagDesc' }, { titleKey: 'pillLocationTitle', descKey: 'pillLocationDesc' }, ] as const const PILL_TEXT = { de: [ { title: 'Smarte Erinnerungen', desc: 'Vergiss nie mehr das Gießen – personalisiert für jede Pflanze.' }, { title: 'Diagnose & Hilfe', desc: 'KI erkennt Krankheiten und Schädlinge sofort.' }, { title: 'Standort-Tipps', desc: 'Pflegehinweise basierend auf deinem Klima und Licht.' }, ], en: [ { title: 'Smart Reminders', desc: 'Never forget watering again – personalized for every plant.' }, { title: 'Diagnosis & Help', desc: 'AI detects diseases and pests instantly.' }, { title: 'Location Tips', desc: 'Care advice based on your climate and light conditions.' }, ], es: [ { title: 'Recordatorios inteligentes', desc: 'Nunca olvides regar – personalizado para cada planta.' }, { title: 'Diagnóstico y ayuda', desc: 'La IA detecta enfermedades y plagas al instante.' }, { title: 'Consejos por ubicación', desc: 'Consejos basados en tu clima y condiciones de luz.' }, ], } const CARD_TEXT = { de: { chip1: 'KI Scan', h3a: 'Scan it.', pa: 'Richte die Kamera auf jede Pflanze – GreenLens erkennt sie in Sekundenbruchteilen und liefert alle Infos.', chip2: 'Tracking', h3b: 'Track it.', pb: 'Gießplan, Lichtbedarf und Wachstum – alles in einer Timeline.', chip3: 'Sammlung', h3c: 'Grow it.', pc: 'Baue deine digitale Pflanzenbibliothek auf – mit Fotos und Notizen.', altA: 'Person scannt eine Pflanze mit der GreenLens App', altB: 'Pflanzen auf einem Regal mit Pflegeplänen', altC: 'Pflanzensammlung im Urban Jungle Stil', }, en: { chip1: 'AI Scan', h3a: 'Scan it.', pa: 'Point your camera at any plant – GreenLens identifies it in milliseconds and delivers all the info.', chip2: 'Tracking', h3b: 'Track it.', pb: 'Watering schedule, light needs and growth – all in one timeline.', chip3: 'Collection', h3c: 'Grow it.', pc: 'Build your digital plant library – with photos and notes.', altA: 'Person scanning a plant with the GreenLens app', altB: 'Plants on a shelf with care plans', altC: 'Plant collection in urban jungle style', }, es: { chip1: 'Escaneo IA', h3a: 'Escanéala.', pa: 'Apunta la cámara a cualquier planta – GreenLens la identifica en milisegundos y entrega toda la información.', chip2: 'Seguimiento', h3b: 'Monitoréala.', pb: 'Plan de riego, necesidades de luz y crecimiento – todo en una línea de tiempo.', chip3: 'Colección', h3c: 'Hazla crecer.', pc: 'Construye tu biblioteca digital de plantas – con fotos y notas.', altA: 'Persona escaneando una planta con la app GreenLens', altB: 'Plantas en un estante con planes de cuidado', altC: 'Colección de plantas estilo jungla urbana', }, } export default function Features() { const { lang, t } = useLang() const cards = CARD_TEXT[lang] const pills = PILL_TEXT[lang] return (
{/* Header */}

{t.features.tag}

{t.features.h2a}
{t.features.h2b}

{t.features.desc}

{/* Bento grid */}
{/* Left – large card: Scan it */}
{cards.altA}
{cards.chip1}

{cards.h3a}

{cards.pa}

{/* Right – two stacked cards */}
{cards.altB}
{cards.chip2}

{cards.h3b}

{cards.pb}

{cards.altC}
{cards.chip3}

{cards.h3c}

{cards.pc}

{/* Feature pills */}
{pills.map((f, i) => (
{featurePillIcons[i]}

{f.title}

{f.desc}

))}
) }