|
@@ -135,45 +135,19 @@ export const MainLayout = () => {
|
|
|
|
|
|
|
|
{/* 主内容区域 */}
|
|
{/* 主内容区域 */}
|
|
|
<div className="flex-1 flex flex-col min-w-0">
|
|
<div className="flex-1 flex flex-col min-w-0">
|
|
|
- {/* 顶部导航 */}
|
|
|
|
|
- {/* <header className="bg-card border-b border-border sticky top-0 z-40">
|
|
|
|
|
- <div className="flex items-center justify-between h-16 px-4">
|
|
|
|
|
- <div className="flex items-center">
|
|
|
|
|
- <button
|
|
|
|
|
- onClick={() => setSidebarOpen(true)}
|
|
|
|
|
- className="lg:hidden p-2 rounded-md hover:bg-muted mr-2"
|
|
|
|
|
- >
|
|
|
|
|
- <Menu className="w-5 h-5" />
|
|
|
|
|
- </button>
|
|
|
|
|
- <h1 className="text-xl font-semibold text-foreground">股票训练系统</h1>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div className="flex items-center space-x-4">
|
|
|
|
|
- {user ? null : (
|
|
|
|
|
- <div className="flex space-x-2">
|
|
|
|
|
- <button
|
|
|
|
|
- onClick={() => navigate('/mobile/login')}
|
|
|
|
|
- className="px-3 py-1.5 rounded-md text-sm bg-primary text-primary-foreground hover:bg-primary/90"
|
|
|
|
|
- >
|
|
|
|
|
- 登录
|
|
|
|
|
- </button>
|
|
|
|
|
- <button
|
|
|
|
|
- onClick={() => navigate('/mobile/register')}
|
|
|
|
|
- className="px-3 py-1.5 rounded-md text-sm bg-secondary text-secondary-foreground hover:bg-secondary/80"
|
|
|
|
|
- >
|
|
|
|
|
- 注册
|
|
|
|
|
- </button>
|
|
|
|
|
- </div>
|
|
|
|
|
- )}
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </header> */}
|
|
|
|
|
-
|
|
|
|
|
{/* 内容区域 */}
|
|
{/* 内容区域 */}
|
|
|
<main className="flex-1">
|
|
<main className="flex-1">
|
|
|
<Outlet />
|
|
<Outlet />
|
|
|
</main>
|
|
</main>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
|
|
+ {/* 浮动菜单按钮 - 移动端 */}
|
|
|
|
|
+ <button
|
|
|
|
|
+ onClick={() => setSidebarOpen(true)}
|
|
|
|
|
+ className="lg:hidden fixed top-6 right-6 z-50 w-10 h-10 rounded-full bg-primary text-primary-foreground flex items-center justify-center shadow-lg hover:bg-primary/90 transition-colors"
|
|
|
|
|
+ >
|
|
|
|
|
+ <Menu className="w-5 h-5" />
|
|
|
|
|
+ </button>
|
|
|
</div>
|
|
</div>
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|