From 84458dbc5663968069e045e090786d493d255822 Mon Sep 17 00:00:00 2001
From: hongjli <3117313295@qq.com>
Date: 星期三, 16 四月 2025 09:57:41 +0800
Subject: [PATCH] 添加备案信息
---
src/components/layout/ClientLayoutContent.tsx | 27 +++++++++++++++++++++------
1 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/src/components/layout/ClientLayoutContent.tsx b/src/components/layout/ClientLayoutContent.tsx
index 03d308b..687d36a 100644
--- a/src/components/layout/ClientLayoutContent.tsx
+++ b/src/components/layout/ClientLayoutContent.tsx
@@ -12,13 +12,17 @@
const [isClient, setIsClient] = useState(false);
const [hasError, setHasError] = useState(false);
const pathname = usePathname();
- const isLoginPage = pathname === '/login';
- const isHomePage = pathname === '/';
- const isAIScenePage = pathname.startsWith('/ai-scene');
useEffect(() => {
setIsClient(true);
}, []);
+
+ // 鍒ゆ柇褰撳墠椤甸潰
+ const isLoginPage = pathname === '/login';
+ const isRegisterPage = pathname === '/register';
+ const isHomePage = pathname === '/';
+ const isAIScenePage = pathname === '/ai-scene';
+ const isAISceneChatPage = pathname.startsWith('/ai-scene/chat');
// 娣诲姞閿欒鎹曡幏
useEffect(() => {
@@ -60,11 +64,11 @@
return (
<div className="animate-fadeIn">
<div className="flex flex-col min-h-screen">
- {!isLoginPage && <Navbar />}
+ {!isLoginPage && !isRegisterPage && <Navbar />}
<main className={`flex-1 ${isHomePage || isAIScenePage ? '' : 'bg-gradient-to-b from-[var(--ai-surface)] to-white'} pt-0 mt-0`}>
{children}
</main>
- {!isLoginPage && (
+ {!isLoginPage && !isRegisterPage && !isAISceneChatPage && (
<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">
@@ -180,7 +184,18 @@
<span className="inline-block w-2 h-2 bg-[#FF6A88] rounded-full ml-3 animate-pulse" style={{animationDelay: '0.6s'}}></span>
</div>
- <p className="text-sm text-gray-400">漏 2024 甯峰箘鍚涙垚. All rights reserved.</p>
+ <div className="text-sm text-gray-400 flex items-center justify-center gap-2">
+ <span>漏 2025 甯峰箘鍚涙垚. All rights reserved.</span>
+ <span className="text-gray-500">|</span>
+ <a
+ href="http://beian.miit.gov.cn/"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="hover:text-[#6ADBFF] transition-colors"
+ >
+ 娌狪CP澶�2025121910鍙�
+ </a>
+ </div>
</div>
</div>
</footer>
--
Gitblit v1.9.3