This commit is contained in:
quantulr
2023-10-27 17:29:50 +08:00
parent dd9ae31b30
commit 73bc779168
31 changed files with 591 additions and 165 deletions

View File

@ -0,0 +1,26 @@
import { ReactNode } from "react";
import circle from "@/app/assets/circle.png";
import Image from "next/image";
import LeftNav from "@/app/components/LeftNav";
import ArticleLayout from "@/app/components/ArticleLayout";
const navLinks = [
{ title: "人才概况", href: "/" },
{ title: "人才概况", href: "/3" },
{ title: "人才概况", href: "/4" },
{ title: "人才概况", href: "/5" },
];
const Layout = ({
children,
params,
}: {
children: ReactNode;
params: {
articleId: string;
};
}) => {
return <ArticleLayout>{children}</ArticleLayout>;
};
export default Layout;

View File

@ -0,0 +1,17 @@
import { articleDetail } from "@/app/api/articles";
import ArticleContent from "@/app/components/ArticleContent";
export default async function Article({
params,
}: {
params: {
articleId: string;
};
}) {
const data = await articleDetail({ id: params.articleId });
return (
<div className={"ml-2.5"}>
<ArticleContent article={data} />
</div>
);
}