Files
16gagent/.benchmark/petcare/fullstack/apps/web/app/layout.tsx
T
2026-06-06 10:40:48 +08:00

31 lines
1.4 KiB
TypeScript

import type { Metadata } from "next";
import "./globals.css";
import { Sidebar } from "@/components/layout/Sidebar";
import { BottomNav } from "@/components/layout/BottomNav";
export const metadata: Metadata = {
title: "PetCare",
description: "一款帮助宠物主人管理宠物健康、日常活动和成长记录的移动应用。",
};
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="zh-CN">
<body className="bg-gray-50 min-h-screen">
<div className="flex">
{/* Desktop Sidebar */}
<Sidebar items={[{"name":"首页","href":"/home","icon":"🏠"},{"name":"宠物档案","href":"/pets","icon":"📋"},{"name":"健康日程","href":"/schedules","icon":"📅"},{"name":"日常记录","href":"/records","icon":"✏️"},{"name":"成长相册","href":"/albums","icon":"📸"}] } projectName="PetCare" />
{/* Main Content */}
<main className="flex-1 lg:pl-64 pb-20 lg:pb-0">
<div className="max-w-2xl mx-auto px-4 py-6">
{children}
</div>
</main>
</div>
{/* Mobile Bottom Nav */}
<BottomNav items={[{"name":"首页","href":"/home","icon":"🏠"},{"name":"宠物档案","href":"/pets","icon":"📋"},{"name":"健康日程","href":"/schedules","icon":"📅"},{"name":"日常记录","href":"/records","icon":"✏️"}] } />
</body>
</html>
);
}