From e113f64857a16d661c973f0c35f9604f5b4ec24a Mon Sep 17 00:00:00 2001 From: hongjli <3117313295@qq.com> Date: 星期二, 08 四月 2025 14:12:31 +0800 Subject: [PATCH] 新建注册页面 --- src/components/layout/ClientLayoutContent.tsx | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/layout/ClientLayoutContent.tsx b/src/components/layout/ClientLayoutContent.tsx index 03d308b..ff207d0 100644 --- a/src/components/layout/ClientLayoutContent.tsx +++ b/src/components/layout/ClientLayoutContent.tsx @@ -13,6 +13,7 @@ const [hasError, setHasError] = useState(false); const pathname = usePathname(); const isLoginPage = pathname === '/login'; + const isRegisterPage = pathname === '/register'; const isHomePage = pathname === '/'; const isAIScenePage = pathname.startsWith('/ai-scene'); @@ -58,13 +59,14 @@ // 瀹㈡埛绔覆鏌撳悗鏄剧ず瀹屾暣鍐呭 try { return ( - <div className="animate-fadeIn"> + <div className="animate-fadeIn" style={{ animationDuration: '300ms' }}> <div className="flex flex-col min-h-screen"> - {!isLoginPage && <Navbar />} - <main className={`flex-1 ${isHomePage || isAIScenePage ? '' : 'bg-gradient-to-b from-[var(--ai-surface)] to-white'} pt-0 mt-0`}> + {!isLoginPage && !isRegisterPage && <Navbar />} + <main className={`flex-1 ${isHomePage || isAIScenePage ? '' : 'bg-gradient-to-b from-[var(--ai-surface)] to-white'} pt-0 mt-0`} + style={{ willChange: 'transform, opacity' }}> {children} </main> - {!isLoginPage && ( + {!isLoginPage && !isRegisterPage && ( <footer className="relative z-20 bg-gradient-to-br from-[#0A1033] via-[#1E2B63] to-[#131C41] text-white py-10 overflow-hidden"> {/* 绉戞妧鎰熷姩鎬佽儗鏅厓绱� */} <div className="absolute inset-0 overflow-hidden pointer-events-none"> -- Gitblit v1.9.3