diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index d554cb4ee61b2b2d7a8bedb12d2c5794abe53e05..4287146961192d1566e63d1e62870b27e4282730 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -3,7 +3,7 @@ import Nav from "react-bootstrap/Nav"; import BootstrapNavbar from "react-bootstrap/Navbar"; import NavDropdown from "react-bootstrap/NavDropdown"; import { Link } from "react-router-dom"; -import Pages from "../pages.ts"; +import { NavPages } from "../pages.ts"; export function Navbar(/* {isLightMode, setIsLightMode}:any */) { @@ -11,7 +11,7 @@ export function Navbar(/* {isLightMode, setIsLightMode}:any */) { setIsLightMode(!isLightMode); }; */ - const pages = Pages.map((item, pageIndex) => { + const pages = NavPages.map((item, pageIndex) => { if ("folder" in item && item.folder) { const folderItems = item.folder.map((subpage, subpageIndex) => { if (subpage.path) { diff --git a/src/contents/interviews.tsx b/src/contents/interviews.tsx new file mode 100644 index 0000000000000000000000000000000000000000..4c531d16bd1f7d7cb7b71b3118d2a906b0ca4436 --- /dev/null +++ b/src/contents/interviews.tsx @@ -0,0 +1,18 @@ + +export function Ints() { + + return ( + <> + <div className="row"> + <div className="col"> + <h2>Wiki under construction!</h2> + <hr/> + </div> + </div> + <div className="row"> + + </div> + </> + ); + } + \ No newline at end of file diff --git a/src/contents/partners.tsx b/src/contents/partners.tsx new file mode 100644 index 0000000000000000000000000000000000000000..568725afe977536cf9d45016b823e51e4098b01b --- /dev/null +++ b/src/contents/partners.tsx @@ -0,0 +1,18 @@ + +export function Partners() { + + return ( + <> + <div className="row"> + <div className="col"> + <h2>Wiki under construction!</h2> + <hr/> + </div> + </div> + <div className="row"> + + </div> + </> + ); + } + \ No newline at end of file diff --git a/src/pages.ts b/src/pages.ts index d1fe0b073c29debc0916ae64f1c420d56e54091b..f60384baeb9b5aaf6b27cea39edc4ceb5b99905f 100644 --- a/src/pages.ts +++ b/src/pages.ts @@ -180,4 +180,118 @@ const Pages: (Page | Folder)[] = [ }, ]; +export const NavPages: (Page | Folder)[] = [ + { + name: "Home", + title: "Bielefeld CeBiTec", + path: "/", + component: Home, + header: HOMEH, + navlist: [""], + }, + { + name: "Team", + folder: [ + { + name: "Team", + title: "Team", + path: "/team", + component: Team, + header: TEAMH, + navlist: [""], + }, + { + name: "Attributions", + title: "Attributions", + path: "/attributions", + component: Attributions, + header: ATTH, + navlist: [""], + }, + ], + }, + { + name: "Project", + folder: [ + { + name: "Contribution", + title: "Contribution", + path: "/contribution", + component: Contribution, + header: CONTH, + navlist: [""], + }, + { + name: "Description", + title: "Project Description", + path: "/description", + component: Description, + header: DESCH, + navlist: ["Abstract", "Cystic Fibrosis", "Our motivation", "Approach", "Delivery", "Our vision", "References"] + }, + { + name: "Experiments", + title: "Experiments", + path: "/experiments", + component: Experiments, + header: EXPH, + navlist: [""], + }, + { + name: "Notebook", + title: "Notebook", + path: "/notebook", + component: Notebook, + header: NOTEH, + navlist: [""], + }, + { + name: "Results", + title: "Results", + path: "/results", + component: Results, + header: RESH, + navlist: [""], + }, + ], + }, + { + name: "Safety", + title: "Safety", + path: "/safety", + component: Safety, + header: SAFEH, + navlist: [""], + }, + { + name: "Human Practices", + title: "Human Practices", + path: "/human-practices", + component: HumanPractices, + header: HPH, + navlist: [""], + }, + { + name: "Contribution", + folder: [ + { + name: "BFH", + title: "BFH European MeetUp", + path: "/bfh", + component: Bfh, + header: BFHH, + navlist: [], + }, + { + name: "Wiki", + title: "wiki", + path: "/wiki", + component: Wiki, + header: WIKIH, + navlist: [""], + }, + ] + }, +]; + export default Pages; \ No newline at end of file