diff --git a/.env.production.local b/.env.production.local new file mode 100644 index 0000000..d9f669d --- /dev/null +++ b/.env.production.local @@ -0,0 +1,2 @@ +NEXT_PUBLIC_ADMIN_BASE_URL=/admin-api +NEXT_PUBLIC_FRONT_BASE_URL=/front-api diff --git a/.gitignore b/.gitignore index fd3dbb5..99a16cc 100644 --- a/.gitignore +++ b/.gitignore @@ -26,7 +26,7 @@ yarn-debug.log* yarn-error.log* # local env files -.env*.local +.env.development.local # vercel .vercel diff --git a/app/(articles)/academic-exchange/academic-events/[articleId]/layout.tsx b/app/(articles)/academic-exchange/academic-events/[articleId]/layout.tsx new file mode 100644 index 0000000..c53bc9a --- /dev/null +++ b/app/(articles)/academic-exchange/academic-events/[articleId]/layout.tsx @@ -0,0 +1,19 @@ +import { ReactNode } from "react"; +import ArticleLayout from "@/app/components/ArticleLayout"; + +const Layout = ({ + children, +}: { + children: ReactNode; + params: { + articleId: string; + }; +}) => { + return ( + + {children} + + ); +}; + +export default Layout; diff --git a/app/(articles)/academic-exchange/academic-events/[articleId]/page.tsx b/app/(articles)/academic-exchange/academic-events/[articleId]/page.tsx new file mode 100644 index 0000000..256f544 --- /dev/null +++ b/app/(articles)/academic-exchange/academic-events/[articleId]/page.tsx @@ -0,0 +1,23 @@ +import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb"; +import ArticleRender from "@/app/components/ArticleRender"; +import { articleDetail } from "@/app/api/articles"; + +const Page = async ({ + params, +}: { + params: { + articleId: string; + }; +}) => { + const { articleId } = params; + const data = await articleDetail({ id: articleId }); + return ( + <> + + + + + ); +}; + +export default Page; diff --git a/app/(articles)/academic-exchange/academic-events/pages/[pageIndex]/config.ts b/app/(articles)/academic-exchange/academic-events/pages/[pageIndex]/config.ts new file mode 100644 index 0000000..b8341e1 --- /dev/null +++ b/app/(articles)/academic-exchange/academic-events/pages/[pageIndex]/config.ts @@ -0,0 +1,6 @@ +export const navigations = [ + { + title: "学术活动", + href: "/academic-exchange/academic-events/pages/1", + }, +]; diff --git a/app/(articles)/academic-exchange/academic-events/pages/[pageIndex]/layout.tsx b/app/(articles)/academic-exchange/academic-events/pages/[pageIndex]/layout.tsx new file mode 100644 index 0000000..6bccbd2 --- /dev/null +++ b/app/(articles)/academic-exchange/academic-events/pages/[pageIndex]/layout.tsx @@ -0,0 +1,28 @@ +import { ReactNode } from "react"; +import ArticleLayout from "@/app/components/ArticleLayout"; +import { BreadcrumbItem } from "@/app/components/Breadcrumb"; +import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb"; +import { navigations } from "@/app/(articles)/academic-exchange/academic-events/pages/[pageIndex]/config"; + +const breadcrumb: BreadcrumbItem[] = [ + { title: "首页", href: "/" }, + { + title: "学术交流", + href: "/academic-exchange/academic-events/pages/1", + }, + { + title: "学术活动", + href: "/academic-exchange/academic-events/pages/1", + }, +]; +const Layout = ({ children }: { children: ReactNode }) => { + return ( + + + {children} + + + ); +}; + +export default Layout; diff --git a/app/(articles)/academic-exchange/academic-events/pages/[pageIndex]/page.tsx b/app/(articles)/academic-exchange/academic-events/pages/[pageIndex]/page.tsx new file mode 100644 index 0000000..75c2d64 --- /dev/null +++ b/app/(articles)/academic-exchange/academic-events/pages/[pageIndex]/page.tsx @@ -0,0 +1,18 @@ +import ArticleList from "@/app/components/ArticleList"; + +const Page = ({ + params, +}: { + params: { + pageIndex: string; + }; +}) => { + const { pageIndex } = params; + return ( + <> + + + ); +}; + +export default Page; diff --git a/app/(articles)/announcements/[articleId]/layout.tsx b/app/(articles)/announcements/[articleId]/layout.tsx index d8efd89..c53bc9a 100644 --- a/app/(articles)/announcements/[articleId]/layout.tsx +++ b/app/(articles)/announcements/[articleId]/layout.tsx @@ -1,6 +1,5 @@ import { ReactNode } from "react"; import ArticleLayout from "@/app/components/ArticleLayout"; -import Breadcrumb from "@/app/components/Breadcrumb"; const Layout = ({ children, @@ -12,10 +11,7 @@ const Layout = ({ }) => { return ( -
- -
{children}
-
+ {children}
); }; diff --git a/app/(articles)/announcements/[articleId]/page.tsx b/app/(articles)/announcements/[articleId]/page.tsx index 24a679b..e5bf816 100644 --- a/app/(articles)/announcements/[articleId]/page.tsx +++ b/app/(articles)/announcements/[articleId]/page.tsx @@ -1,5 +1,6 @@ import { articleDetail } from "@/app/api/articles"; -import ArticleContent from "@/app/components/ArticleContent"; +import ArticleRender from "@/app/components/ArticleRender"; +import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb"; export default async function Article({ params, @@ -9,5 +10,15 @@ export default async function Article({ }; }) { const data = await articleDetail({ id: params.articleId }); - return ; + return ( + + + + ); } diff --git a/app/(articles)/announcements/pages/[pageIndex]/layout.tsx b/app/(articles)/announcements/pages/[pageIndex]/layout.tsx index e440bff..659c3c0 100644 --- a/app/(articles)/announcements/pages/[pageIndex]/layout.tsx +++ b/app/(articles)/announcements/pages/[pageIndex]/layout.tsx @@ -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 ( -
- -
{children}
-
+ + {children} +
); }; diff --git a/app/(articles)/announcements/pages/[pageIndex]/page.tsx b/app/(articles)/announcements/pages/[pageIndex]/page.tsx index 82a2506..b73c803 100644 --- a/app/(articles)/announcements/pages/[pageIndex]/page.tsx +++ b/app/(articles)/announcements/pages/[pageIndex]/page.tsx @@ -1,8 +1,4 @@ -import { listArticles } from "@/app/api/articles"; -import { Fragment } from "react"; -import styles from "./styles.module.scss"; -import Link from "next/link"; -import Pagination from "@/app/components/Pagination"; +import ArticleList from "@/app/components/ArticleList"; const Page = async ({ params, @@ -11,31 +7,10 @@ const Page = async ({ pageIndex: string; }; }) => { - const data = await listArticles({ - cid: "3", - pageNo: params.pageIndex, - pageSize: 20, - }); + const { pageIndex } = params; return (
-

公告通知

-
    - {data.lists.map((article, index) => ( -
  • - - {article.title} - -
  • - ))} -
- +
); }; diff --git a/app/(articles)/general-news/[articleId]/layout.tsx b/app/(articles)/general-news/[articleId]/layout.tsx new file mode 100644 index 0000000..c53bc9a --- /dev/null +++ b/app/(articles)/general-news/[articleId]/layout.tsx @@ -0,0 +1,19 @@ +import { ReactNode } from "react"; +import ArticleLayout from "@/app/components/ArticleLayout"; + +const Layout = ({ + children, +}: { + children: ReactNode; + params: { + articleId: string; + }; +}) => { + return ( + + {children} + + ); +}; + +export default Layout; diff --git a/app/(articles)/general-news/[articleId]/page.tsx b/app/(articles)/general-news/[articleId]/page.tsx new file mode 100644 index 0000000..2c2bf36 --- /dev/null +++ b/app/(articles)/general-news/[articleId]/page.tsx @@ -0,0 +1,24 @@ +import { articleDetail } from "@/app/api/articles"; +import ArticleRender from "@/app/components/ArticleRender"; +import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb"; + +export default async function Article({ + params, +}: { + params: { + articleId: string; + }; +}) { + const data = await articleDetail({ id: params.articleId }); + return ( + + + + ); +} diff --git a/app/(articles)/general-news/pages/[pageIndex]/layout.tsx b/app/(articles)/general-news/pages/[pageIndex]/layout.tsx new file mode 100644 index 0000000..6776561 --- /dev/null +++ b/app/(articles)/general-news/pages/[pageIndex]/layout.tsx @@ -0,0 +1,21 @@ +import { ReactNode } from "react"; +import ArticleLayout from "@/app/components/ArticleLayout"; +import { BreadcrumbItem } from "@/app/components/Breadcrumb"; +import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb"; + +const breadcrumb: BreadcrumbItem[] = [ + { title: "首页", href: "/" }, + { title: "综合新闻", href: "/general-news/pages/1" }, +]; + +const Layout = ({ children }: { children: ReactNode }) => { + return ( + + + {children} + + + ); +}; + +export default Layout; diff --git a/app/(articles)/general-news/pages/[pageIndex]/page.tsx b/app/(articles)/general-news/pages/[pageIndex]/page.tsx new file mode 100644 index 0000000..393dc74 --- /dev/null +++ b/app/(articles)/general-news/pages/[pageIndex]/page.tsx @@ -0,0 +1,23 @@ +import React from "react"; +import ArticleList from "@/app/components/ArticleList"; + +const Page = ({ + params, +}: { + params: { + pageIndex: string; + }; +}) => { + const { pageIndex } = params; + return ( + <> + + + ); +}; + +export default Page; diff --git a/app/(articles)/recruitment/[articleId]/layout.tsx b/app/(articles)/recruitment/[articleId]/layout.tsx new file mode 100644 index 0000000..40aab04 --- /dev/null +++ b/app/(articles)/recruitment/[articleId]/layout.tsx @@ -0,0 +1,19 @@ +import { ReactNode } from "react"; +import ArticleLayout from "@/app/components/ArticleLayout"; + +const Layout = ({ + children, +}: { + children: ReactNode; + params: { + articleId: string; + }; +}) => { + return ( + + {children} + + ); +}; + +export default Layout; diff --git a/app/(articles)/recruitment/[articleId]/page.tsx b/app/(articles)/recruitment/[articleId]/page.tsx new file mode 100644 index 0000000..f1bbbbf --- /dev/null +++ b/app/(articles)/recruitment/[articleId]/page.tsx @@ -0,0 +1,24 @@ +import { articleDetail } from "@/app/api/articles"; +import ArticleRender from "@/app/components/ArticleRender"; +import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb"; + +export default async function Article({ + params, +}: { + params: { + articleId: string; + }; +}) { + const data = await articleDetail({ id: params.articleId }); + return ( + + + + ); +} diff --git a/app/(articles)/recruitment/pages/[pageIndex]/layout.tsx b/app/(articles)/recruitment/pages/[pageIndex]/layout.tsx new file mode 100644 index 0000000..5c4bea6 --- /dev/null +++ b/app/(articles)/recruitment/pages/[pageIndex]/layout.tsx @@ -0,0 +1,20 @@ +import { ReactNode } from "react"; +import ArticleLayout from "@/app/components/ArticleLayout"; +import Breadcrumb, { BreadcrumbItem } from "@/app/components/Breadcrumb"; +import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb"; + +const breadcrumb: BreadcrumbItem[] = [ + { title: "首页", href: "/" }, + { title: "研究院招聘", href: "/recruitment/pages/1" }, +]; +const Layout = ({ children }: { children: ReactNode }) => { + return ( + + + {children} + + + ); +}; + +export default Layout; diff --git a/app/(articles)/recruitment/pages/[pageIndex]/page.tsx b/app/(articles)/recruitment/pages/[pageIndex]/page.tsx new file mode 100644 index 0000000..d9cdaf8 --- /dev/null +++ b/app/(articles)/recruitment/pages/[pageIndex]/page.tsx @@ -0,0 +1,22 @@ +import ArticleList from "@/app/components/ArticleList"; + +const Page = ({ + params, +}: { + params: { + pageIndex: string; + }; +}) => { + const { pageIndex } = params; + return ( + <> + + + ); +}; + +export default Page; diff --git a/app/(articles)/research-progress/[articleId]/layout.tsx b/app/(articles)/research-progress/[articleId]/layout.tsx new file mode 100644 index 0000000..c53bc9a --- /dev/null +++ b/app/(articles)/research-progress/[articleId]/layout.tsx @@ -0,0 +1,19 @@ +import { ReactNode } from "react"; +import ArticleLayout from "@/app/components/ArticleLayout"; + +const Layout = ({ + children, +}: { + children: ReactNode; + params: { + articleId: string; + }; +}) => { + return ( + + {children} + + ); +}; + +export default Layout; diff --git a/app/(articles)/research-progress/[articleId]/page.tsx b/app/(articles)/research-progress/[articleId]/page.tsx index 5d04e1a..52571fb 100644 --- a/app/(articles)/research-progress/[articleId]/page.tsx +++ b/app/(articles)/research-progress/[articleId]/page.tsx @@ -1,7 +1,24 @@ -import React from "react"; +import { articleDetail } from "@/app/api/articles"; +import ArticleRender from "@/app/components/ArticleRender"; +import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb"; -const ResearchProgress = () => { - return
; -}; - -export default ResearchProgress; +export default async function ResearchProgress({ + params, +}: { + params: { + articleId: string; + }; +}) { + const data = await articleDetail({ id: params.articleId }); + return ( + + + + ); +} diff --git a/app/(articles)/research-progress/pages/[pageIndex]/layout.tsx b/app/(articles)/research-progress/pages/[pageIndex]/layout.tsx new file mode 100644 index 0000000..7b283c4 --- /dev/null +++ b/app/(articles)/research-progress/pages/[pageIndex]/layout.tsx @@ -0,0 +1,20 @@ +import { ReactNode } from "react"; +import ArticleLayout from "@/app/components/ArticleLayout"; +import Breadcrumb, { BreadcrumbItem } from "@/app/components/Breadcrumb"; +import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb"; + +const breadcrumb: BreadcrumbItem[] = [ + { title: "首页", href: "/" }, + { title: "科研进展", href: "/research-progress/pages/1" }, +]; +const Layout = ({ children }: { children: ReactNode }) => { + return ( + + + {children} + + + ); +}; + +export default Layout; diff --git a/app/(articles)/research-progress/pages/[pageIndex]/page.tsx b/app/(articles)/research-progress/pages/[pageIndex]/page.tsx new file mode 100644 index 0000000..aa06f0a --- /dev/null +++ b/app/(articles)/research-progress/pages/[pageIndex]/page.tsx @@ -0,0 +1,18 @@ +import ArticleList from "@/app/components/ArticleList"; + +const Page = ({ + params, +}: { + params: { + pageIndex: string; + }; +}) => { + const { pageIndex } = params; + return ( + <> + + + ); +}; + +export default Page; diff --git a/app/(articles)/technological-achievements/[articleId]/layout.tsx b/app/(articles)/technological-achievements/[articleId]/layout.tsx new file mode 100644 index 0000000..c53bc9a --- /dev/null +++ b/app/(articles)/technological-achievements/[articleId]/layout.tsx @@ -0,0 +1,19 @@ +import { ReactNode } from "react"; +import ArticleLayout from "@/app/components/ArticleLayout"; + +const Layout = ({ + children, +}: { + children: ReactNode; + params: { + articleId: string; + }; +}) => { + return ( + + {children} + + ); +}; + +export default Layout; diff --git a/app/(articles)/technological-achievements/[articleId]/page.tsx b/app/(articles)/technological-achievements/[articleId]/page.tsx new file mode 100644 index 0000000..e164e4e --- /dev/null +++ b/app/(articles)/technological-achievements/[articleId]/page.tsx @@ -0,0 +1,24 @@ +import { articleDetail } from "@/app/api/articles"; +import ArticleRender from "@/app/components/ArticleRender"; +import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb"; + +export default async function Page({ + params, +}: { + params: { + articleId: string; + }; +}) { + const data = await articleDetail({ id: params.articleId }); + return ( + + + + ); +} diff --git a/app/(articles)/technological-achievements/pages/[pageIndex]/layout.tsx b/app/(articles)/technological-achievements/pages/[pageIndex]/layout.tsx new file mode 100644 index 0000000..f10ad01 --- /dev/null +++ b/app/(articles)/technological-achievements/pages/[pageIndex]/layout.tsx @@ -0,0 +1,20 @@ +import ArticleLayout from "@/app/components/ArticleLayout"; +import Breadcrumb, { BreadcrumbItem } from "@/app/components/Breadcrumb"; +import { ReactNode } from "react"; +import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb"; + +const breadcrumb: BreadcrumbItem[] = [ + { title: "首页", href: "/" }, + { title: "科技成果", href: "/technological-achievements/pages/1" }, +]; +const Layout = ({ children }: { children: ReactNode }) => { + return ( + + + {children} + + + ); +}; + +export default Layout; diff --git a/app/(articles)/technological-achievements/pages/[pageIndex]/page.tsx b/app/(articles)/technological-achievements/pages/[pageIndex]/page.tsx new file mode 100644 index 0000000..af405c7 --- /dev/null +++ b/app/(articles)/technological-achievements/pages/[pageIndex]/page.tsx @@ -0,0 +1,18 @@ +import ArticleList from "@/app/components/ArticleList"; + +const Page = ({ + params, +}: { + params: { + pageIndex: string; + }; +}) => { + const { pageIndex } = params; + return ( + <> + + + ); +}; + +export default Page; diff --git a/app/(introduce)/achievements-transformation/config.ts b/app/(introduce)/achievements-transformation/config.ts new file mode 100644 index 0000000..2d35ff3 --- /dev/null +++ b/app/(introduce)/achievements-transformation/config.ts @@ -0,0 +1,24 @@ +export const navigations = [ + { title: "政府政策", href: "/achievements-transformation/government-policy" }, + { + title: "投融资", + href: "/achievements-transformation/investment-and-financing", + }, + { title: "产业对接", href: "/achievements-transformation/industry-docking" }, + { + title: "科技评估", + href: "/achievements-transformation/technology-assessment", + }, + { + title: "情报服务", + href: "/achievements-transformation/intelligence-services", + }, + { + title: "科研项目申报", + href: "/achievements-transformation/scientific-research-project-declaration", + }, + { + title: "知识产权服务", + href: "/achievements-transformation/intellectual-property-services", + }, +]; diff --git a/app/(introduce)/achievements-transformation/government-policy/layout.tsx b/app/(introduce)/achievements-transformation/government-policy/layout.tsx new file mode 100644 index 0000000..0e4f39f --- /dev/null +++ b/app/(introduce)/achievements-transformation/government-policy/layout.tsx @@ -0,0 +1,21 @@ +import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb"; +import { ReactNode } from "react"; +import { BreadcrumbItem } from "@/app/components/Breadcrumb"; + +const breadcrumb: BreadcrumbItem[] = [ + { title: "首页", href: "/" }, + { + title: "成果转化服务", + href: "/achievements-transformation/government-policy", + }, + { title: "政府政策", href: "/achievements-transformation/government-policy" }, +]; +const Layout = ({ children }: { children: ReactNode }) => { + return ( + + {children} + + ); +}; + +export default Layout; diff --git a/app/(introduce)/achievements-transformation/government-policy/page.tsx b/app/(introduce)/achievements-transformation/government-policy/page.tsx new file mode 100644 index 0000000..1de31bd --- /dev/null +++ b/app/(introduce)/achievements-transformation/government-policy/page.tsx @@ -0,0 +1,19 @@ +import ArticleHeading from "@/app/components/ArticleHeading"; + +const Page = () => { + return ( + <> + +
    +
  1. 帮助企业对接政府普惠政策,争取一事一议政策
  2. +
  3. 帮助企业享受专项政策
  4. +
  5. 帮助企业争取落地政策
  6. +
  7. 帮助企业争取政府投资
  8. +
  9. 帮助企业争取市场及应用场景支持
  10. +
  11. 帮助企业跨区域争取政府支持
  12. +
+ + ); +}; + +export default Page; diff --git a/app/(introduce)/achievements-transformation/industry-docking/layout.tsx b/app/(introduce)/achievements-transformation/industry-docking/layout.tsx new file mode 100644 index 0000000..d7afb19 --- /dev/null +++ b/app/(introduce)/achievements-transformation/industry-docking/layout.tsx @@ -0,0 +1,21 @@ +import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb"; +import { ReactNode } from "react"; +import { BreadcrumbItem } from "@/app/components/Breadcrumb"; + +const breadcrumb: BreadcrumbItem[] = [ + { title: "首页", href: "/" }, + { + title: "成果转化服务", + href: "/achievements-transformation/government-policy", + }, + { title: "产业对接", href: "/achievements-transformation/industry-docking" }, +]; +const Layout = ({ children }: { children: ReactNode }) => { + return ( + + {children} + + ); +}; + +export default Layout; diff --git a/app/(introduce)/achievements-transformation/industry-docking/page.tsx b/app/(introduce)/achievements-transformation/industry-docking/page.tsx new file mode 100644 index 0000000..94de6d7 --- /dev/null +++ b/app/(introduce)/achievements-transformation/industry-docking/page.tsx @@ -0,0 +1,19 @@ +import ArticleHeading from "@/app/components/ArticleHeading"; + +const Page = () => { + return ( + <> + +
    +
  1. 对接政府资源
  2. +
  3. 对接行业资源
  4. +
  5. 对接中科院科技资源
  6. +
  7. 对接投融资资源
  8. +
  9. 对接产业链资源
  10. +
  11. 对接一带一路市场资源
  12. +
+ + ); +}; + +export default Page; diff --git a/app/(introduce)/achievements-transformation/intellectual-property-services/layout.tsx b/app/(introduce)/achievements-transformation/intellectual-property-services/layout.tsx new file mode 100644 index 0000000..e2aa51e --- /dev/null +++ b/app/(introduce)/achievements-transformation/intellectual-property-services/layout.tsx @@ -0,0 +1,24 @@ +import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb"; +import { ReactNode } from "react"; +import { BreadcrumbItem } from "@/app/components/Breadcrumb"; + +const breadcrumb: BreadcrumbItem[] = [ + { title: "首页", href: "/" }, + { + title: "成果转化服务", + href: "/achievements-transformation/government-policy", + }, + { + title: "知识产权服务", + href: "/achievements-transformation/scientific-research-project-declaration", + }, +]; +const Layout = ({ children }: { children: ReactNode }) => { + return ( + + {children} + + ); +}; + +export default Layout; diff --git a/app/(introduce)/achievements-transformation/intellectual-property-services/page.tsx b/app/(introduce)/achievements-transformation/intellectual-property-services/page.tsx new file mode 100644 index 0000000..81d2a01 --- /dev/null +++ b/app/(introduce)/achievements-transformation/intellectual-property-services/page.tsx @@ -0,0 +1,22 @@ +import ArticleHeading from "@/app/components/ArticleHeading"; + +const Page = () => { + return ( + <> + +

+ 知识产权服务内容: +

+
    +
  1. 知识产权申报
  2. +
  3. 知识产权运营
  4. +
  5. 知识产权交易
  6. +
  7. 知识产权贷款
  8. +
  9. 知识产权布局
  10. +
  11. 知识产权维护
  12. +
+ + ); +}; + +export default Page; diff --git a/app/(introduce)/achievements-transformation/intelligence-services/layout.tsx b/app/(introduce)/achievements-transformation/intelligence-services/layout.tsx new file mode 100644 index 0000000..b11a389 --- /dev/null +++ b/app/(introduce)/achievements-transformation/intelligence-services/layout.tsx @@ -0,0 +1,24 @@ +import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb"; +import { ReactNode } from "react"; +import { BreadcrumbItem } from "@/app/components/Breadcrumb"; + +const breadcrumb: BreadcrumbItem[] = [ + { title: "首页", href: "/" }, + { + title: "成果转化服务", + href: "/achievements-transformation/government-policy", + }, + { + title: "情报服务", + href: "/achievements-transformation/intelligence-services", + }, +]; +const Layout = ({ children }: { children: ReactNode }) => { + return ( + + {children} + + ); +}; + +export default Layout; diff --git a/app/(introduce)/achievements-transformation/intelligence-services/page.tsx b/app/(introduce)/achievements-transformation/intelligence-services/page.tsx new file mode 100644 index 0000000..5e2af32 --- /dev/null +++ b/app/(introduce)/achievements-transformation/intelligence-services/page.tsx @@ -0,0 +1,26 @@ +import ArticleHeading from "@/app/components/ArticleHeading"; + +const Page = () => { + return ( + <> + +
    +
  1. + 科技战略研究与决策咨询(战略情报)偏宏观。战略,规划,计划,布局,资源,政策。 +
  2. +
  3. + 学科数据挖掘与知识分析(学科情报)偏微观。前沿,方向,突破;学术影响力,科研竞争力。 +
  4. +
  5. + 区域与产业发展决策咨询(竞争情报)中微观。科技;经济,社会;技术,市场;财政,金融。 +
  6. +
  7. 帮助企业进行技术情报分析(含竞争对手)
  8. +
  9. 帮助企业进行专利布局
  10. +
  11. 帮助政府制定产业规划方案
  12. +
  13. 帮助企业对接技术需求,科技成果
  14. +
+ + ); +}; + +export default Page; diff --git a/app/(introduce)/achievements-transformation/investment-and-financing/layout.tsx b/app/(introduce)/achievements-transformation/investment-and-financing/layout.tsx new file mode 100644 index 0000000..f463b48 --- /dev/null +++ b/app/(introduce)/achievements-transformation/investment-and-financing/layout.tsx @@ -0,0 +1,24 @@ +import React, { ReactNode } from "react"; +import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb"; +import { BreadcrumbItem } from "@/app/components/Breadcrumb"; + +const breadcrumb: BreadcrumbItem[] = [ + { title: "首页", href: "/" }, + { + title: "成果转化服务", + href: "/achievements-transformation/government-policy", + }, + { + title: "投融资", + href: "/achievements-transformation/investment-and-financing", + }, +]; +const Layout = ({ children }: { children: ReactNode }) => { + return ( + + {children} + + ); +}; + +export default Layout; diff --git a/app/(introduce)/achievements-transformation/investment-and-financing/page.tsx b/app/(introduce)/achievements-transformation/investment-and-financing/page.tsx new file mode 100644 index 0000000..cec833d --- /dev/null +++ b/app/(introduce)/achievements-transformation/investment-and-financing/page.tsx @@ -0,0 +1,18 @@ +import ArticleHeading from "@/app/components/ArticleHeading"; + +const Page = () => { + return ( + <> + +
    +
  1. 帮助企业对接科技银行提供信用贷款
  2. +
  3. 帮助企业对接投融资机构
  4. +
  5. 帮助企业对接产业资本助力上市
  6. +
  7. 帮助企业对接券商上市辅导
  8. +
  9. 帮助企业对接政府产业引导基金,协助企业落地
  10. +
+ + ); +}; + +export default Page; diff --git a/app/(introduce)/achievements-transformation/layout.tsx b/app/(introduce)/achievements-transformation/layout.tsx new file mode 100644 index 0000000..42c50c4 --- /dev/null +++ b/app/(introduce)/achievements-transformation/layout.tsx @@ -0,0 +1,13 @@ +import ArticleLayout from "@/app/components/ArticleLayout"; +import { ReactNode } from "react"; +import { navigations } from "@/app/(introduce)/achievements-transformation/config"; + +const Layout = ({ children }: { children: ReactNode }) => { + return ( + + {children} + + ); +}; + +export default Layout; diff --git a/app/(introduce)/achievements-transformation/scientific-research-project-declaration/layout.tsx b/app/(introduce)/achievements-transformation/scientific-research-project-declaration/layout.tsx new file mode 100644 index 0000000..e1fcb47 --- /dev/null +++ b/app/(introduce)/achievements-transformation/scientific-research-project-declaration/layout.tsx @@ -0,0 +1,24 @@ +import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb"; +import { ReactNode } from "react"; +import { BreadcrumbItem } from "@/app/components/Breadcrumb"; + +const breadcrumb: BreadcrumbItem[] = [ + { title: "首页", href: "/" }, + { + title: "成果转化服务", + href: "/achievements-transformation/government-policy", + }, + { + title: "科研项目申报", + href: "/achievements-transformation/scientific-research-project-declaration", + }, +]; +const Layout = ({ children }: { children: ReactNode }) => { + return ( + + {children} + + ); +}; + +export default Layout; diff --git a/app/(introduce)/achievements-transformation/scientific-research-project-declaration/page.tsx b/app/(introduce)/achievements-transformation/scientific-research-project-declaration/page.tsx new file mode 100644 index 0000000..249c26a --- /dev/null +++ b/app/(introduce)/achievements-transformation/scientific-research-project-declaration/page.tsx @@ -0,0 +1,23 @@ +import ArticleHeading from "@/app/components/ArticleHeading"; + +const Page = () => { + return ( + <> + +
    +
  1. 帮助企业申报国家级、省、市、区科技研发项目
  2. +
  3. 联合企业申报国家级、省、市、区科研项目
  4. +
  5. + 联合企业申报科研平台(工程中心、重点实验室、研发中心、设计中心、技术中心) +
  6. +
  7. + 联合企业共建中国科学院重庆绿色智能技术研究院合肥分院研发中心或实验室 +
  8. +
  9. 帮助高层次人才或团队申报人才项目
  10. +
  11. 科研项目转化
  12. +
+ + ); +}; + +export default Page; diff --git a/app/(introduce)/achievements-transformation/technology-assessment/layout.tsx b/app/(introduce)/achievements-transformation/technology-assessment/layout.tsx new file mode 100644 index 0000000..a32da9d --- /dev/null +++ b/app/(introduce)/achievements-transformation/technology-assessment/layout.tsx @@ -0,0 +1,24 @@ +import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb"; +import { ReactNode } from "react"; +import { BreadcrumbItem } from "@/app/components/Breadcrumb"; + +const breadcrumb: BreadcrumbItem[] = [ + { title: "首页", href: "/" }, + { + title: "成果转化服务", + href: "/achievements-transformation/government-policy", + }, + { + title: "科技评估", + href: "/achievements-transformation/technology-assessment", + }, +]; +const Layout = ({ children }: { children: ReactNode }) => { + return ( + + {children} + + ); +}; + +export default Layout; diff --git a/app/(introduce)/achievements-transformation/technology-assessment/page.tsx b/app/(introduce)/achievements-transformation/technology-assessment/page.tsx new file mode 100644 index 0000000..18d4485 --- /dev/null +++ b/app/(introduce)/achievements-transformation/technology-assessment/page.tsx @@ -0,0 +1,17 @@ +import ArticleHeading from "@/app/components/ArticleHeading"; + +const Page = () => { + return ( + <> + +
    +
  1. 科技成果的技术水平,经济效益和价值的评估
  2. +
  3. 产业和地区的科技进步和绩效
  4. +
  5. 科技机构的综合实力和运营水平
  6. +
  7. 科技政策的研究和制定效果评价
  8. +
+ + ); +}; + +export default Page; diff --git a/app/(introduce)/contact-us/layout.tsx b/app/(introduce)/contact-us/layout.tsx new file mode 100644 index 0000000..0238e8a --- /dev/null +++ b/app/(introduce)/contact-us/layout.tsx @@ -0,0 +1,20 @@ +import ArticleLayout from "@/app/components/ArticleLayout"; +import React, { ReactNode } from "react"; +import Breadcrumb from "@/app/components/Breadcrumb"; + +const breadcrumb = [ + { href: "/", title: "首页" }, + { href: "/contact-us", title: "联系我们" }, +]; +const Layout = ({ children }: { children: ReactNode }) => { + return ( + +
+ +
{children}
+
+
+ ); +}; + +export default Layout; diff --git a/app/(introduce)/contact-us/page.tsx b/app/(introduce)/contact-us/page.tsx new file mode 100644 index 0000000..46da347 --- /dev/null +++ b/app/(introduce)/contact-us/page.tsx @@ -0,0 +1,24 @@ +const Page = () => { + return ( + <> +

+ 信息公开联系方式 +

+

+ 机构名称:中国科学院重庆绿色智能技术研究院合肥分院 +

+

+ 工作时间:8:30-18:00(节假日除外) +

+

+ 联系电话:18156053255 18156054143 +

+

+ 通信地址:安徽省合肥市高新区创新产业园D1 7楼 +

+

邮政编码:230022

+ + ); +}; + +export default Page; diff --git a/app/(introduce)/organization/(functional-departments)/func-dep/asset-finance/page.tsx b/app/(introduce)/organization/(functional-departments)/func-dep/asset-finance/page.tsx index e7c0be6..743b9f0 100644 --- a/app/(introduce)/organization/(functional-departments)/func-dep/asset-finance/page.tsx +++ b/app/(introduce)/organization/(functional-departments)/func-dep/asset-finance/page.tsx @@ -1,10 +1,10 @@ +import ArticleHeading from "@/app/components/ArticleHeading"; + const Page = () => { return ( <> -

- 资产财务处 -

-

+ +

负责院财务管理、国有资产管理等工作,主要职责为:

  1. diff --git a/app/(introduce)/organization/(functional-departments)/func-dep/general-office/page.tsx b/app/(introduce)/organization/(functional-departments)/func-dep/general-office/page.tsx index 576084e..a81def0 100644 --- a/app/(introduce)/organization/(functional-departments)/func-dep/general-office/page.tsx +++ b/app/(introduce)/organization/(functional-departments)/func-dep/general-office/page.tsx @@ -1,12 +1,10 @@ -import React from "react"; +import ArticleHeading from "@/app/components/ArticleHeading"; const Page = () => { return ( <> -

    - 综合办公室 -

    -

    + +

    负责院党建与创新文化建设、综合行政管理、科学传播与信息化建设等工作,主要职责为:

    1. @@ -34,7 +32,7 @@ const Page = () => {
    2. 承担院领导安排的其他工作。

    -

    +

    监察审计室挂靠综合办公室,承担院纪委日常工作(含科研道德委员会日常工作),负责院纪检、监察、审计等工作,协助党委做好党风廉政建设及反腐败工作。

    diff --git a/app/(introduce)/organization/(functional-departments)/func-dep/industry/page.tsx b/app/(introduce)/organization/(functional-departments)/func-dep/industry/page.tsx index 91e62d4..7828581 100644 --- a/app/(introduce)/organization/(functional-departments)/func-dep/industry/page.tsx +++ b/app/(introduce)/organization/(functional-departments)/func-dep/industry/page.tsx @@ -1,8 +1,10 @@ +import ArticleHeading from "@/app/components/ArticleHeading"; + const Page = () => { return ( <> -

    产业处

    -

    + +

    负责院科技成果转移转化与产业化工作,主要职责为:

    1. 负责产业化项目的申报和管理。
    2. diff --git a/app/(introduce)/organization/(functional-departments)/func-dep/personnel/page.tsx b/app/(introduce)/organization/(functional-departments)/func-dep/personnel/page.tsx index deb38bf..478f5c0 100644 --- a/app/(introduce)/organization/(functional-departments)/func-dep/personnel/page.tsx +++ b/app/(introduce)/organization/(functional-departments)/func-dep/personnel/page.tsx @@ -1,8 +1,10 @@ +import ArticleHeading from "@/app/components/ArticleHeading"; + const Page = () => { return ( <> -

      人事处

      -

      + +

      负责院人才队伍建设、人事管理等工作,主要职责为:

      1. 组织制定、修订院人力资源战略,编制人力资源发展规划。
      2. diff --git a/app/(introduce)/organization/(functional-departments)/func-dep/technology/page.tsx b/app/(introduce)/organization/(functional-departments)/func-dep/technology/page.tsx index 414ae11..4bfb4f0 100644 --- a/app/(introduce)/organization/(functional-departments)/func-dep/technology/page.tsx +++ b/app/(introduce)/organization/(functional-departments)/func-dep/technology/page.tsx @@ -1,8 +1,10 @@ +import ArticleHeading from "@/app/components/ArticleHeading"; + const Page = () => { return ( <> -

        科技处

        -

        + +

        负责院科技发展规划、学科体系建设、重大科技任务组织、科技管理、国际交流等工作,主要职责为:

          diff --git a/app/(introduce)/organization/(generally)/architecture/page.tsx b/app/(introduce)/organization/(generally)/architecture/page.tsx index ec23752..5f7f466 100644 --- a/app/(introduce)/organization/(generally)/architecture/page.tsx +++ b/app/(introduce)/organization/(generally)/architecture/page.tsx @@ -1,12 +1,12 @@ +import ArticleHeading from "@/app/components/ArticleHeading"; + const Page = () => { return ( <> -

          - 组织架构 -

          + ); diff --git a/app/(introduce)/organization/(generally)/config.ts b/app/(introduce)/organization/(generally)/config.ts new file mode 100644 index 0000000..775e698 --- /dev/null +++ b/app/(introduce)/organization/(generally)/config.ts @@ -0,0 +1,10 @@ +export const navigations = [ + { title: "机构简介", href: "/organization/overview" }, + { title: "院长致辞", href: "/organization/dean-speech" }, + { title: "科技产业发展委员会", href: "/organization/stidc" }, + { title: "组织架构", href: "/organization/architecture" }, + { title: "职能部门", href: "/organization/func-dep/general-office" }, + { title: "研究中心联合实验室", href: "/organization/joint-laboratory" }, + { title: "合作企业", href: "/organization/joint-venture" }, + { title: "科研平台", href: "/organization/research-platform" }, +]; diff --git a/app/(introduce)/organization/(generally)/dean-speech/page.tsx b/app/(introduce)/organization/(generally)/dean-speech/page.tsx index d446c62..28ca7c1 100644 --- a/app/(introduce)/organization/(generally)/dean-speech/page.tsx +++ b/app/(introduce)/organization/(generally)/dean-speech/page.tsx @@ -1,20 +1,20 @@ +import ArticleHeading from "@/app/components/ArticleHeading"; + const Page = () => { return ( <> -

          - 院长致辞 -

          -

          + +

          世界处于百年未有之大变局,第四次工业革命方兴未艾,人工智能、机器人技术、虚拟现实以及量子科技等蓬勃发展,将深度改变人类生产和生活方式,对国际格局的发展产生重要影响。中国要强大、民族要复兴、人民要幸福,科技强国梦就必须要实现。

          -

          +

          合肥分院的设立,是响应中科院支持合肥国家科学中心建设的号召,中科院重庆绿色智能技术研究院在合肥设立的独立法人事业单位。主要从事绿色智能科技研发与科技成果转化。合肥分院秉持“市场为魂,创新为本”的理念。按照“院企共建、源头创新、科技共享、产业集聚”模式建设。以服务好科技工作者,服务好合作企业,服务好区域产业创新升级为宗旨。

          -

          +

          合肥分院积极探索政、产、学、研、用紧密结合的机制,以合肥产业发展重大科技需求为牵引在人工智能、精准医疗、5G物联网等领域进行科技布局,集聚中科院体系内绿色智能科技人才与科技成果,重点开展产业关键核心技术与前沿技术创新、技术集成创新、工程化研发和科技成果转移转化工作,与技术创新体系和区域产业体系紧密结合,提升合肥创新发展能力。 把合肥分院建设成为产业技术源头创新基地、技术集成创新与育成基地、高层次创新创业人才培养基地和科技与产业对接的重要平台。合肥分院坚持立足合肥、辐射安徽,坚持技术立院、应用立院,坚持需求牵引、创新驱动、院企共建,按照“地方政府满意、合作企业满意、科学家满意”的检验标准。

          -

          +

          合肥分院希望能走出一条开放、包容、协作、创新的新型科研院所的道路。竭诚欢迎海内外英才,共创大业,实现科技强国梦!

          diff --git a/app/(introduce)/organization/(generally)/joint-laboratory/page.tsx b/app/(introduce)/organization/(generally)/joint-laboratory/page.tsx index 9f6e17a..2749065 100644 --- a/app/(introduce)/organization/(generally)/joint-laboratory/page.tsx +++ b/app/(introduce)/organization/(generally)/joint-laboratory/page.tsx @@ -1,10 +1,10 @@ +import ArticleHeading from "@/app/components/ArticleHeading"; + const Page = () => { return ( <> -

          - 研究中心 -

          -

          建设中...

          + +

          建设中...

          ); }; diff --git a/app/(introduce)/organization/(generally)/joint-venture/page.tsx b/app/(introduce)/organization/(generally)/joint-venture/page.tsx index 4cba07d..6a24ac7 100644 --- a/app/(introduce)/organization/(generally)/joint-venture/page.tsx +++ b/app/(introduce)/organization/(generally)/joint-venture/page.tsx @@ -1,10 +1,10 @@ +import ArticleHeading from "@/app/components/ArticleHeading"; + const Page = () => { return ( <> -

          - 合作企业 -

          -

          对接中...

          + +

          对接中...

          ); }; diff --git a/app/(introduce)/organization/(generally)/layout.tsx b/app/(introduce)/organization/(generally)/layout.tsx index d39ef8f..45f7c13 100644 --- a/app/(introduce)/organization/(generally)/layout.tsx +++ b/app/(introduce)/organization/(generally)/layout.tsx @@ -1,16 +1,6 @@ import ArticleLayout from "@/app/components/ArticleLayout"; import { ReactNode } from "react"; - -const navigations = [ - { title: "机构简介", href: "/organization/overview" }, - { title: "院长致辞", href: "/organization/dean-speech" }, - { title: "科技产业发展委员会", href: "/organization/stidc" }, - { title: "组织架构", href: "/organization/architecture" }, - { title: "职能部门", href: "/organization/func-dep/general-office" }, - { title: "研究中心联合实验室", href: "/organization/joint-laboratory" }, - { title: "合作企业", href: "/organization/joint-venture" }, - { title: "科研平台", href: "/organization/research-platform" }, -]; +import { navigations } from "@/app/(introduce)/organization/(generally)/config"; const Layout = ({ children }: { children: ReactNode }) => { return ( diff --git a/app/(introduce)/organization/(generally)/overview/page.tsx b/app/(introduce)/organization/(generally)/overview/page.tsx index 3528cf4..8942b4e 100644 --- a/app/(introduce)/organization/(generally)/overview/page.tsx +++ b/app/(introduce)/organization/(generally)/overview/page.tsx @@ -1,16 +1,16 @@ +import ArticleHeading from "@/app/components/ArticleHeading"; + const Page = () => { return ( <> -

          - 中国科学院重庆绿色智能技术研究院合肥分院 -

          -

          + +

          中国科学院重庆绿色智能技术研究院合肥分院(以下简称“合肥分院”)是在响应中科院号召支持合肥国家科学中心建设的前提下,中国科学院重庆绿色智能技术研究院与合肥市共建的直属事业法人科研机构。2018年2月20号在中科院与安徽省共建领导小组会议上正式签约筹建,2018年12月20日,正式获得事业法人登记证书。

          -

          +

          合肥分院设立科技咨询委员会和产业咨询委员会,设人工智能、精准医疗、5G物联、绿色环保等研究单元。主要从事绿色智能科技研发与科技成果转化。

          -

          +

          合肥分院秉持重庆研究院“市场为魂,创新为本”的理念。按照“院企共建、源头创新、科技共享、产业集聚”模式建设。以服务好科技工作者,服务好合作企业为宗旨。开展形式多样的成果转移转化,加快科研成果落地。

          diff --git a/app/(introduce)/organization/(generally)/research-platform/page.tsx b/app/(introduce)/organization/(generally)/research-platform/page.tsx index 2de9c10..a24829e 100644 --- a/app/(introduce)/organization/(generally)/research-platform/page.tsx +++ b/app/(introduce)/organization/(generally)/research-platform/page.tsx @@ -1,10 +1,10 @@ +import ArticleHeading from "@/app/components/ArticleHeading"; + const Page = () => { return ( <> -

          - 科研平台 -

          -

          筹建中...

          + +

          筹建中...

          ); }; diff --git a/app/(introduce)/organization/(generally)/stidc/page.tsx b/app/(introduce)/organization/(generally)/stidc/page.tsx index b5b8fa3..afc16ce 100644 --- a/app/(introduce)/organization/(generally)/stidc/page.tsx +++ b/app/(introduce)/organization/(generally)/stidc/page.tsx @@ -1,10 +1,10 @@ +import ArticleHeading from "@/app/components/ArticleHeading"; + const Page = () => { return ( <> -

          - 科技产业发展委员会 -

          -

          筹备中...

          + +

          筹备中...

          ); }; diff --git a/app/(introduce)/talents/academician/page.tsx b/app/(introduce)/talents/academician/page.tsx index 8d11512..494731f 100644 --- a/app/(introduce)/talents/academician/page.tsx +++ b/app/(introduce)/talents/academician/page.tsx @@ -1,16 +1,14 @@ import Image from "next/image"; +import ArticleHeading from "@/app/components/ArticleHeading"; const Page = () => { return ( <> - {" "} -

          - 两院院士 -

          -

          中科院院士

          + +

          中科院院士

          {"张景中"}

          diff --git a/app/(introduce)/talents/config.ts b/app/(introduce)/talents/config.ts new file mode 100644 index 0000000..dfc9b29 --- /dev/null +++ b/app/(introduce)/talents/config.ts @@ -0,0 +1,6 @@ +export const navigations = [ + { title: "人才概览", href: "/talents/overview" }, + { title: "两院院士", href: "/talents/academician" }, + { title: "研究员", href: "/talents/researcher" }, + { title: "副研究员", href: "/talents/vice-researcher" }, +]; diff --git a/app/(introduce)/talents/layout.tsx b/app/(introduce)/talents/layout.tsx index 5b691ad..adc0ddc 100644 --- a/app/(introduce)/talents/layout.tsx +++ b/app/(introduce)/talents/layout.tsx @@ -1,12 +1,6 @@ import ArticleLayout from "@/app/components/ArticleLayout"; import { ReactNode } from "react"; - -const navigations = [ - { title: "人才概览", href: "/talents/overview" }, - { title: "两院院士", href: "/talents/academician" }, - { title: "研究员", href: "/talents/researcher" }, - { title: "副研究员", href: "/talents/vice-researcher" }, -]; +import { navigations } from "@/app/(introduce)/talents/config"; const Layout = ({ children }: { children: ReactNode }) => { return ( diff --git a/app/(introduce)/talents/overview/page.tsx b/app/(introduce)/talents/overview/page.tsx index 40ee328..2080f0f 100644 --- a/app/(introduce)/talents/overview/page.tsx +++ b/app/(introduce)/talents/overview/page.tsx @@ -1,10 +1,11 @@ +import ArticleHeading from "@/app/components/ArticleHeading"; + const Page = () => { return ( <> -

          - 人才概况 -

          -

          + + +

          截止2017年10月底,重庆研究院全院共有员工333人,包括正高级40人,副高级61人,中级136人,初级21人。具有环境科学与工程、光学工程两个一级学科博士学位培养点,截止2017年10月底,共有博士生导师25人,硕士生导师38人,在读研究生117,其中博士39人,硕士73 人,留学生5人。

          diff --git a/app/(introduce)/talents/researcher/page.tsx b/app/(introduce)/talents/researcher/page.tsx index d276746..3356f52 100644 --- a/app/(introduce)/talents/researcher/page.tsx +++ b/app/(introduce)/talents/researcher/page.tsx @@ -1,5 +1,6 @@ import styles from "./page.module.scss"; import Link from "next/link"; +import ArticleHeading from "@/app/components/ArticleHeading"; const academicians = [ { @@ -49,16 +50,16 @@ const academicians = [ const Page = () => { return ( <> -

          研究员

          -
          + +
          {academicians.map((academician) => (
          {academician.name}
          diff --git a/app/(introduce)/talents/vice-researcher/page.tsx b/app/(introduce)/talents/vice-researcher/page.tsx index 3f1b82b..2e2c9c7 100644 --- a/app/(introduce)/talents/vice-researcher/page.tsx +++ b/app/(introduce)/talents/vice-researcher/page.tsx @@ -1,4 +1,5 @@ import Link from "next/link"; +import ArticleHeading from "@/app/components/ArticleHeading"; const academicians = [ { @@ -18,8 +19,8 @@ const academicians = [ const Page = () => { return ( <> -

          研究员

          -
          + +
          {academicians.map((academician) => (
          { > {academician.name}
          diff --git a/app/assets/pin.png b/app/assets/pin.png new file mode 100644 index 0000000..b479dbf Binary files /dev/null and b/app/assets/pin.png differ diff --git a/app/components/AnhuiSwiper.tsx b/app/components/AnhuiSwiper.tsx new file mode 100644 index 0000000..d27f88d --- /dev/null +++ b/app/components/AnhuiSwiper.tsx @@ -0,0 +1,171 @@ +"use client"; +import React, { useEffect, useState } from "react"; +import { register } from "swiper/element/bundle"; +import axios from "axios"; +import request from "@/app/lib/request"; +import { BaseResponse, PageData } from "@/app/types/base"; +import { Album } from "@/app/types/album"; + +register(); + +const albums = [ + { + id: 28, + cid: 3, + name: "ah9.jpeg", + path: "/uploads/image/20231101/99c2f8c3-aba8-4872-a9b9-dfbcf128c062.jpeg", + uri: "http://localhost:8082/api/uploads/image/20231101/99c2f8c3-aba8-4872-a9b9-dfbcf128c062.jpeg", + ext: "jpeg", + size: "40KB", + createTime: "2023-11-01 10:40:15", + updateTime: "2023-11-01 10:40:15", + }, + { + id: 27, + cid: 3, + name: "ah7.jpeg", + path: "/uploads/image/20231101/aba2a38f-ee62-4730-af7a-5b8933ed7497.jpeg", + uri: "http://localhost:8082/api/uploads/image/20231101/aba2a38f-ee62-4730-af7a-5b8933ed7497.jpeg", + ext: "jpeg", + size: "4KB", + createTime: "2023-11-01 10:40:15", + updateTime: "2023-11-01 10:40:15", + }, + { + id: 26, + cid: 3, + name: "ah8.jpeg", + path: "/uploads/image/20231101/63523f59-9b59-40d1-a654-c4678f8a1913.jpeg", + uri: `http://localhost:8082/api/uploads/image/20231101/63523f59-9b59-40d1-a654-c4678f8a1913.jpeg`, + ext: "jpeg", + size: "29KB", + createTime: "2023-11-01 10:40:15", + updateTime: "2023-11-01 10:40:15", + }, + { + id: 25, + cid: 3, + name: "ah2.jpeg", + path: "/uploads/image/20231101/5bedf085-841a-48cc-bca2-9c9b2c751b48.jpeg", + uri: `http://localhost:8082/api/uploads/image/20231101/5bedf085-841a-48cc-bca2-9c9b2c751b48.jpeg`, + ext: "jpeg", + size: "26KB", + createTime: "2023-11-01 10:40:15", + updateTime: "2023-11-01 10:40:15", + }, + { + id: 24, + cid: 3, + name: "ah5.jpeg", + path: "/uploads/image/20231101/2f19a501-89f7-4f78-9487-096a3799736d.jpeg", + uri: "http://localhost:8082/api/uploads/image/20231101/2f19a501-89f7-4f78-9487-096a3799736d.jpeg", + ext: "jpeg", + size: "22KB", + createTime: "2023-11-01 10:40:15", + updateTime: "2023-11-01 10:40:15", + }, + { + id: 23, + cid: 3, + name: "ah6.jpeg", + path: "/uploads/image/20231101/70f4bea2-77a4-4595-a3a5-5c60711afae6.jpeg", + uri: "http://localhost:8082/api/uploads/image/20231101/70f4bea2-77a4-4595-a3a5-5c60711afae6.jpeg", + ext: "jpeg", + size: "22KB", + createTime: "2023-11-01 10:40:15", + updateTime: "2023-11-01 10:40:15", + }, + { + id: 22, + cid: 3, + name: "ah3.jpeg", + path: "/uploads/image/20231101/82309b4a-22e8-4b06-8e9d-d2b114ef3aad.jpeg", + uri: "http://localhost:8082/api/uploads/image/20231101/82309b4a-22e8-4b06-8e9d-d2b114ef3aad.jpeg", + ext: "jpeg", + size: "14KB", + createTime: "2023-11-01 10:40:15", + updateTime: "2023-11-01 10:40:15", + }, + { + id: 21, + cid: 3, + name: "ah1.jpeg", + path: "/uploads/image/20231101/5e3a02dc-2c7c-4671-9151-79315a53a3d2.jpeg", + uri: "http://localhost:8082/api/uploads/image/20231101/5e3a02dc-2c7c-4671-9151-79315a53a3d2.jpeg", + ext: "jpeg", + size: "9KB", + createTime: "2023-11-01 10:40:15", + updateTime: "2023-11-01 10:40:15", + }, + { + id: 20, + cid: 3, + name: "ah4.jpeg", + path: "/uploads/image/20231101/106409ac-e454-47f2-a383-8ea572718b3d.jpeg", + uri: "http://localhost:8082/api/uploads/image/20231101/106409ac-e454-47f2-a383-8ea572718b3d.jpeg", + ext: "jpeg", + size: "31KB", + createTime: "2023-11-01 10:40:15", + updateTime: "2023-11-01 10:40:15", + }, +]; + +const AnhuiSwiper = () => { + // const [albums, setAlbums] = useState([]); + // useEffect(() => { + // request + // .get>>(`/albums/albumList`, { + // // baseURL: `${process.env.NEXT_PUBLIC_ADMIN_BASE_URL}`, + // baseURL: `http://localhost:8082/api}`, + // params: { + // cid: 3, + // }, + // }) + // .then((res) => { + // setAlbums(() => res.data.lists); + // }); + // }, []); + return ( +
          +
          + 安徽风采 +
          +
          + {/* @ts-ignore*/} + + {/* @ts-ignore*/} + {albums.map((el) => ( + // @ts-ignore + + + {/*@ts-ignore*/} + + ))} + {/* @ts-ignore */} + +
          +
          + ); +}; + +export default AnhuiSwiper; diff --git a/app/components/ArticleBlock.tsx b/app/components/ArticleBlock.tsx index e45c99a..211c8a9 100644 --- a/app/components/ArticleBlock.tsx +++ b/app/components/ArticleBlock.tsx @@ -4,6 +4,7 @@ import styles from "@/app/assets/page.module.css"; import Link from "next/link"; import request from "@/app/lib/request"; import { listArticles } from "@/app/api/articles"; +import dayjs from "dayjs"; interface ArticleLink { title: string; @@ -17,12 +18,14 @@ const ArticleBlock = async ({ height, category, linkPrefix, + showDate, }: { title: string; height?: number | string; width?: number | string; category: string; linkPrefix: string; + showDate?: boolean; }) => { const data = await listArticles({ cid: category }); return ( @@ -31,23 +34,34 @@ const ArticleBlock = async ({ width, height, }} - className={"flex flex-col"} + className={"flex flex-col overflow-hidden"} >
          {"trumpet {title} + + 更多+ +
            {data.lists.map((article) => ( -
          • +
          • - {article.title} + {article.title} + {showDate && ( + {dayjs(article.createTime).format("YYYY-MM-DD")} + )}
          • ))} diff --git a/app/components/ArticleHeading.tsx b/app/components/ArticleHeading.tsx new file mode 100644 index 0000000..fa6caf4 --- /dev/null +++ b/app/components/ArticleHeading.tsx @@ -0,0 +1,9 @@ +const ArticleHeading = ({ text }: { text: string }) => { + return ( +

            + {text} +

            + ); +}; + +export default ArticleHeading; diff --git a/app/components/ArticleLayout.tsx b/app/components/ArticleLayout.tsx index 1461f89..6dac388 100644 --- a/app/components/ArticleLayout.tsx +++ b/app/components/ArticleLayout.tsx @@ -7,7 +7,7 @@ const ArticleLayout = ({ leftNavTitle, }: { children: ReactNode; - navigations: any[]; + navigations?: any[]; leftNavTitle: string; }) => { return ( @@ -15,7 +15,7 @@ const ArticleLayout = ({
            -
            {children}
            +
            {children}
          ); }; diff --git a/app/(articles)/announcements/pages/[pageIndex]/styles.module.scss b/app/components/ArticleList.module.scss similarity index 100% rename from app/(articles)/announcements/pages/[pageIndex]/styles.module.scss rename to app/components/ArticleList.module.scss diff --git a/app/components/ArticleList.tsx b/app/components/ArticleList.tsx new file mode 100644 index 0000000..43897cd --- /dev/null +++ b/app/components/ArticleList.tsx @@ -0,0 +1,44 @@ +import React from "react"; +import { listArticles } from "@/app/api/articles"; +import styles from "./ArticleList.module.scss"; +import Link from "next/link"; +import Pagination from "@/app/components/Pagination"; +import dayjs from "dayjs"; + +const ArticleList = async ({ + cid, + pageNo, + title, +}: { + title: string; + cid: string; + pageNo: number; +}) => { + const data = await listArticles({ + pageNo, + cid, + pageSize: 20, + sort: "new", + }); + return ( + <> +

          {title}

          +
            + {data.lists.map((article, index) => ( +
          • + + {article.title} + {dayjs(article.createTime).format("YYYY-MM-DD")} + +
          • + ))} +
          + + + ); +}; + +export default ArticleList; diff --git a/app/components/ArticleContent.tsx b/app/components/ArticleRender.tsx similarity index 78% rename from app/components/ArticleContent.tsx rename to app/components/ArticleRender.tsx index 44bc2c2..28a48e0 100644 --- a/app/components/ArticleContent.tsx +++ b/app/components/ArticleRender.tsx @@ -1,13 +1,11 @@ -import React from "react"; import { ArticleDetail } from "@/app/types/article"; import Link from "next/link"; +import ArticleHeading from "@/app/components/ArticleHeading"; -const ArticleContent = ({ article }: { article: ArticleDetail }) => { +const ArticleRender = ({ article }: { article: ArticleDetail }) => { return (
          -

          - {article.title} -

          +
          @@ -33,4 +31,4 @@ const ArticleContent = ({ article }: { article: ArticleDetail }) => { ); }; -export default ArticleContent; +export default ArticleRender; diff --git a/app/components/ArticleWithBreadcrumb.tsx b/app/components/ArticleWithBreadcrumb.tsx new file mode 100644 index 0000000..c33f665 --- /dev/null +++ b/app/components/ArticleWithBreadcrumb.tsx @@ -0,0 +1,19 @@ +import React, { ReactNode } from "react"; +import Breadcrumb, { BreadcrumbItem } from "@/app/components/Breadcrumb"; + +const ArticleWithBreadcrumb = ({ + breadcrumb, + children, +}: { + breadcrumb: BreadcrumbItem[]; + children: ReactNode; +}) => { + return ( +
          + +
          {children}
          +
          + ); +}; + +export default ArticleWithBreadcrumb; diff --git a/app/components/Breadcrumb.tsx b/app/components/Breadcrumb.tsx index 99c667d..6eec076 100644 --- a/app/components/Breadcrumb.tsx +++ b/app/components/Breadcrumb.tsx @@ -1,23 +1,27 @@ import { Fragment } from "react"; import Link from "next/link"; -interface BreadcrumbItem { +export interface BreadcrumbItem { href: string; title: string; } const Breadcrumb = ({ navigations }: { navigations: BreadcrumbItem[] }) => { return ( -
          +
          当前位置: {navigations.map((navigation, index) => { if (index === navigations.length - 1) { - return
          {navigation.title}
          ; + return ( + + {navigation.title} + + ); } else { return ( {navigation.title} -
          /
          + /
          ); } diff --git a/app/components/FriendLinks.module.scss b/app/components/FriendLinks.module.scss new file mode 100644 index 0000000..c72a313 --- /dev/null +++ b/app/components/FriendLinks.module.scss @@ -0,0 +1,3 @@ +.titleBar { + background: linear-gradient(160deg, rgba(151, 193, 233, 1) 44.73684210526316%, rgba(15, 111, 202, 1) 100%);; +} \ No newline at end of file diff --git a/app/components/FriendLinks.tsx b/app/components/FriendLinks.tsx new file mode 100644 index 0000000..4ae0c48 --- /dev/null +++ b/app/components/FriendLinks.tsx @@ -0,0 +1,77 @@ +import Image from "next/image"; +import Link from "next/link"; +import pin from "@/app/assets/pin.png"; +import styles from "./FriendLinks.module.scss"; + +const links = [ + { + title: "中国科学院", + href: "https://www.cas.cn/", + }, + { + title: "国家发改委", + href: "https://www.ndrc.gov.cn/", + }, + { + title: "国家科技部", + href: "http://www.most.gov.cn/", + }, + { + title: "安徽省发改委", + href: "http://fzggw.ah.gov.cn/", + }, + { + title: "安徽省科技厅", + href: "http://kjt.ah.gov.cn/", + }, + { + title: "中科院重庆研究院", + href: "http://www.cigit.cas.cn/", + }, + { + title: "中科院成都文献情报中心", + href: "http://www.clas.ac.cn/", + }, + { + title: "中国技术交易所", + href: "http://us.ctex.cn/", + }, + { + title: "合肥市高新区", + href: "http://gxq.hefei.gov.cn/", + }, + { + title: "合肥市发改委", + href: "http://hfdrc.hefei.gov.cn/", + }, + { + title: "汇桔网", + href: "https://www.wtoip.com/", + }, +]; +const FriendLinks = () => { + return ( +
          +
          + {"trumpet + 友情链接 +
          +
            + {links.map((link) => ( +
          • + + • {link.title} + +
          • + ))} +
          +
          + ); +}; + +export default FriendLinks; diff --git a/app/components/LatestNews.tsx b/app/components/LatestNews.tsx new file mode 100644 index 0000000..6447bc1 --- /dev/null +++ b/app/components/LatestNews.tsx @@ -0,0 +1,62 @@ +import { articleDetail, listArticles } from "@/app/api/articles"; +import Link from "next/link"; +import Image from "next/image"; +import { htmlToText } from "html-to-text"; + +const LatestNews = async () => { + const { lists } = await listArticles({ + pageNo: 1, + cid: "4", + pageSize: 1, + sort: "new", + }); + if (!lists.length) { + return <>; + } + const { id } = lists[0]; + const article = await articleDetail({ + id: `${id}`, + }); + + // const text = window.document.createElement("div"); + // text.innerHTML = article.content; + const content = htmlToText(article.content, { + // baseElements:{ + // selectors:['p'] + // } + selectors: [{ selector: "img", format: "skip" }], + }); + // const content = text.innerText; + return ( +
          + + {""} + +
          + + {article.title} + + + {content} + + + 更多新闻内容>> + +
          +
          + ); +}; + +export default LatestNews; diff --git a/app/components/LeftNav.tsx b/app/components/LeftNav.tsx index a436d3e..452ad18 100644 --- a/app/components/LeftNav.tsx +++ b/app/components/LeftNav.tsx @@ -1,5 +1,5 @@ "use client"; -import React from "react"; + import Image from "next/image"; import circle from "@/app/assets/circle.png"; import styles from "./LeftNav.module.scss"; @@ -10,7 +10,7 @@ const LeftNav = ({ navigations, title, }: { - navigations: any[]; + navigations?: any[]; title: string; }) => { const pathname = usePathname(); @@ -24,12 +24,12 @@ const LeftNav = ({ {"circle {title}
          - {navigations.length > 0 && ( + {(navigations?.length ?? 0) > 0 && (
            - {navigations.map((navigation) => ( + {navigations?.map((navigation) => (
          • { @@ -25,13 +49,24 @@ const isActive = (link: string, current: string): boolean => { const MainNav = () => { const pathname = usePathname(); + const [activePopup, setActivePopup] = useState(-1); return (