'use client' import Image from 'next/image' import { useLang } from '@/context/LangContext' const STEPS = { de: [ { num: '01', title: 'Pflanze fotografieren', desc: 'Öffne die App, richte die Kamera auf deine Pflanze und tippe auf Scan. Das war\'s schon.' }, { num: '02', title: 'KI analysiert das Foto', desc: 'Du erhältst zügig einen Artvorschlag und die wichtigsten Eckdaten zur Pflanze.' }, { num: '03', title: 'Pflegeplan erhalten', desc: 'GreenLens erstellt automatisch einen personalisierten Pflegeplan passend zu deiner Pflanze und deinem Standort.' }, { num: '04', title: 'Wachstum verfolgen', desc: 'Dokumentiere Fotos, tracke das Gießen und lass dich an wichtige Pflegetermine erinnern.' }, ], en: [ { num: '01', title: 'Photograph your plant', desc: 'Open the app, point the camera at your plant and tap Scan. That\'s it.' }, { num: '02', title: 'AI analyzes the photo', desc: 'You quickly receive a suggested match and the key details about the plant.' }, { num: '03', title: 'Receive care plan', desc: 'GreenLens automatically creates a personalized care plan for your plant and location.' }, { num: '04', title: 'Track growth', desc: 'Document photos, track watering and get reminded of important care dates.' }, ], es: [ { num: '01', title: 'Fotografía tu planta', desc: 'Abre la app, apunta la cámara a tu planta y toca Escanear. Eso es todo.' }, { num: '02', title: 'La IA analiza la foto', desc: 'Recibes rápidamente una coincidencia sugerida y los datos principales de la planta.' }, { num: '03', title: 'Recibe el plan de cuidado', desc: 'GreenLens crea automáticamente un plan de cuidado personalizado para tu planta y ubicación.' }, { num: '04', title: 'Seguimiento del crecimiento', desc: 'Documenta fotos, registra el riego y recibe recordatorios de citas de cuidado importantes.' }, ], } const TAG = { de: 'So funktioniert es', en: 'How it works', es: 'Cómo funciona' } const H2 = { de: ['Einfacher', 'als du', 'denkst.'], en: ['Simpler', 'than you', 'think.'], es: ['Más fácil', 'de lo que', 'crees.'], } const ALT = { de: 'GreenLens App in Verwendung – Pflanze wird gescannt', en: 'GreenLens app in use – scanning a plant', es: 'App GreenLens en uso – escaneando una planta', } export default function HowItWorks() { const { lang } = useLang() const steps = STEPS[lang] const h2 = H2[lang] return (

{TAG[lang]}

{h2[0]}
{h2[1]}
{h2[2]}

{steps.map((s, i) => (
{s.num}

{s.title}

{s.desc}

))}
{ALT[lang]}
) }