import React from 'react'; import { motion } from 'framer-motion'; import { useTranslation } from 'react-i18next'; const HeroSection = () => { const { t } = useTranslation(); return (
{t('landing.hero_title_p1', 'Plans break.')}
{t('landing.hero_title_p2', 'TaskFlow adapts.')}
{t('landing.hero_desc', "The first visual goal constructor designed for focus. Move from linear lists to adaptive graphs that handle life's \"If/Then\" moments.")} psychology {t('landing.hero_badge', 'ADHD-friendly. Resilience-driven.')}
{/* Hero Visual: Mockup */} {/* SVG Connections */} {/* Nodes */} {[ { label: t('landing.node_a', 'Task A'), pos: 'left-12 top-[210px]', rot: -2, delay: 0.2 }, { label: t('landing.node_b', 'Task B'), pos: 'left-[340px] top-[210px]', rot: 1, delay: 0.4 }, { label: t('landing.node_failed', 'Failed?'), pos: 'left-[580px] top-[180px]', rot: 45, diamond: true, delay: 0.6 }, { label: t('landing.node_c', 'Task C'), pos: 'right-12 top-[120px]', rot: 2, delay: 0.8, color: '#45a84a' }, { label: t('landing.node_d', 'Task D'), pos: 'right-12 top-[300px]', rot: -1, delay: 1.0, color: '#ba1a1a' } ].map((node, i) => ( {node.diamond ? (
{node.label}
) : (
{node.label}
)} ))}
); }; export default HeroSection;