"use client"; import { useEffect, useRef } from "react"; import { usePathname } from "next/navigation"; import Link from "next/link"; import gsap from "gsap"; export default function NotFound() { const root = useRef(null); const pathname = usePathname(); useEffect(() => { const reduce = window.matchMedia("(prefers-reduced-motion: reduce)").matches; if (reduce) return; const ctx = gsap.context(() => { const digits = gsap.utils.toArray("[data-digit]"); gsap.set("[data-fade]", { autoAlpha: 0, y: 14 }); gsap .timeline({ defaults: { ease: "power3.out" } }) .from(digits, { yPercent: -130, rotate: -14, autoAlpha: 0, duration: 0.7, ease: "back.out(1.6)", stagger: 0.12, }) .to("[data-fade]", { autoAlpha: 1, y: 0, duration: 0.5, stagger: 0.09 }, "-=0.15") .add(() => { gsap.to(digits, { y: (i: number) => (i % 2 ? 7 : -7), duration: 2.4, ease: "sine.inOut", repeat: -1, yoyo: true, stagger: { each: 0.15, from: "center" }, }); }); }, root); return () => ctx.revert(); }, []); return (
4 0 4

fatal: le chemin «  {pathname}  » n'existe pas dans ce dépôt

← Retour à l'accueil Voir les projets
); }