修复了页面缺失的问题,且补齐了其他页面内容,修复CSS问题

This commit is contained in:
2026-07-11 19:20:17 +08:00
parent ba3e995147
commit 6d7bef91ac
17 changed files with 1544 additions and 29 deletions
+22
View File
@@ -0,0 +1,22 @@
"use client";
import { usePathname } from "next/navigation";
import { AnimatePresence, motion } from "motion/react";
export function PageTransition({ children }: { children: React.ReactNode }) {
const pathname = usePathname();
return (
<AnimatePresence mode="wait">
<motion.div
key={pathname}
initial={{ opacity: 0, x: 40 }}
animate={{ opacity: 1, x: 0 }}
exit={{ opacity: 0, x: -40 }}
transition={{ duration: 0.25, ease: "easeInOut" }}
>
{children}
</motion.div>
</AnimatePresence>
);
}