'use client'; import { useState, useEffect } from 'react'; import { useLanguage } from '@/contexts/LanguageContext'; export default function HeroTitle() { const { t } = useLanguage(); const [mounted, setMounted] = useState(false); useEffect(() => { console.log('HeroTitle mounted'); const timer = setTimeout(() => { console.log('HeroTitle animation starting'); setMounted(true); }, 400); return () => clearTimeout(timer); }, []); return (
{/* .frame-22 - 标题容器 */}
{/* .yield-bearing-asset */}
{t('hero.title1')}
{/* .on-chain */}
{t('hero.title2')}
{/* Description text */}
{t('hero.description')}
); }