init
This commit is contained in:
26
app/(articles)/announcements/[articleId]/layout.tsx
Normal file
26
app/(articles)/announcements/[articleId]/layout.tsx
Normal 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;
|
17
app/(articles)/announcements/[articleId]/page.tsx
Normal file
17
app/(articles)/announcements/[articleId]/page.tsx
Normal 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>
|
||||
);
|
||||
}
|
7
app/(articles)/research-progress/[articleId]/page.tsx
Normal file
7
app/(articles)/research-progress/[articleId]/page.tsx
Normal file
@ -0,0 +1,7 @@
|
||||
import React from "react";
|
||||
|
||||
const ResearchProgress = () => {
|
||||
return <div></div>;
|
||||
};
|
||||
|
||||
export default ResearchProgress;
|
Reference in New Issue
Block a user