import { useEffect, useState } from "react"; import { Link } from "react-router-dom"; import { useLang } from "../i18n"; import { asset } from "../lib/asset"; export default function Hero() { const { t } = useLang(); const [mounted, setMounted] = useState(false); useEffect(() => setMounted(true), []); const reveal = (delay: number, extra = "") => ({ style: { transitionDelay: `${delay}ms` }, className: `transition-all duration-700 ease-out ${ mounted ? "motion-safe:opacity-100 motion-safe:translate-y-0" : "motion-safe:opacity-0 motion-safe:translate-y-4" } ${extra}`, }); return (
{/* 科技风光晕 */}
); }