This commit is contained in:
quantulr
2023-11-01 17:27:06 +08:00
parent 7e465da9d2
commit 1a22404f19
87 changed files with 1604 additions and 196 deletions

View File

@ -1,19 +1,19 @@
import { ReactNode } from "react";
import ArticleLayout from "@/app/components/ArticleLayout";
import Breadcrumb from "@/app/components/Breadcrumb";
import { BreadcrumbItem } from "@/app/components/Breadcrumb";
import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb";
const breadcrumb: BreadcrumbItem[] = [
{ title: "首页", href: "/" },
{ title: "公告通知", href: "/announcements/pages/1" },
];
const Layout = ({ children }: { children: ReactNode }) => {
return (
<ArticleLayout navigations={[]} leftNavTitle={"公告通知"}>
<div className={"flex flex-col h-full"}>
<Breadcrumb
navigations={[
{ title: "首页", href: "/" },
{ title: "公告通知", href: "/announcements/pages/1" },
]}
/>
<div className={"bg-white px-5 py-4 flex-1 mt-2"}>{children}</div>
</div>
<ArticleWithBreadcrumb breadcrumb={breadcrumb}>
{children}
</ArticleWithBreadcrumb>
</ArticleLayout>
);
};