feat(frontend): P0 导航架构重构 — 6 业务域 + 角色化排序 + 新路由
- 投资人 Sidebar: 5 扁平分组 → 6 业务域(今日/组合/工作/增长/洞察/报告) - 角色化导航: GP→组合优先, 投后负责人→今日优先, 投资经理→今日+组合 - 新增路由: /today /compare /threads /threads/[id] /workspace - Admin: 单页标签 → 6 管理域 Sidebar(租户/用户/审计/数据源/安全/设置) - 创始人: 3 底部导航 → 6 域(今日/经营/月报/Copilot/通知/我的) - 新增 navConfig.ts 统一管理导航配置
This commit is contained in:
@@ -1,14 +1,23 @@
|
||||
/** 创始人端布局 — C 端温暖风格:顶部 Header + indigo 主色。 */
|
||||
/** 创始人端布局 — C 端温暖风格:顶部 Header + indigo 主色 + 6 域底部导航。 */
|
||||
|
||||
import { Home, FileText, Sparkle } from "lucide-react";
|
||||
import { CalendarClock, Gauge, FileText, Sparkle, Bell, UserCircle } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
|
||||
/** 创始人端 6 域导航。 */
|
||||
const navItems = [
|
||||
{ href: "/founder", label: "概览", icon: Home },
|
||||
{ href: "/founder", label: "今日", icon: CalendarClock },
|
||||
{ href: "/founder/operations", label: "经营", icon: Gauge },
|
||||
{ href: "/founder/reports", label: "月报", icon: FileText },
|
||||
{ href: "/founder/copilot", label: "AI 副驾驶", icon: Sparkle },
|
||||
{ href: "/founder/copilot", label: "Copilot", icon: Sparkle },
|
||||
{ href: "/founder/notifications", label: "通知", icon: Bell },
|
||||
{ href: "/founder/profile", label: "我的", icon: UserCircle },
|
||||
];
|
||||
|
||||
/**
|
||||
* 创始人端布局组件。
|
||||
*
|
||||
* 顶部 sticky Header + 底部 6 域导航栏,移动优先设计。
|
||||
*/
|
||||
export default function FounderLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<div className="min-h-screen bg-gradient-to-b from-indigo-50 to-white">
|
||||
@@ -21,8 +30,8 @@ export default function FounderLayout({ children }: { children: React.ReactNode
|
||||
{/* 内容区 */}
|
||||
<main className="container mx-auto max-w-7xl px-4 py-6 pb-20 md:pb-6">{children}</main>
|
||||
|
||||
{/* 移动端底部导航 */}
|
||||
<nav className="fixed bottom-0 left-0 right-0 flex h-14 border-t bg-white md:hidden">
|
||||
{/* 底部 6 域导航 */}
|
||||
<nav className="fixed bottom-0 left-0 right-0 flex h-14 border-t bg-white">
|
||||
{navItems.map((item) => (
|
||||
<Link
|
||||
key={item.href}
|
||||
|
||||
Reference in New Issue
Block a user