Skip to content
Snippets Groups Projects
Commit 7430894d authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

split up pages that get create dand pages that are shown in the navbar

parent ab12366c
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ import Nav from "react-bootstrap/Nav"; ...@@ -3,7 +3,7 @@ import Nav from "react-bootstrap/Nav";
import BootstrapNavbar from "react-bootstrap/Navbar"; import BootstrapNavbar from "react-bootstrap/Navbar";
import NavDropdown from "react-bootstrap/NavDropdown"; import NavDropdown from "react-bootstrap/NavDropdown";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import Pages from "../pages.ts"; import { NavPages } from "../pages.ts";
export function Navbar(/* {isLightMode, setIsLightMode}:any */) { export function Navbar(/* {isLightMode, setIsLightMode}:any */) {
...@@ -11,7 +11,7 @@ export function Navbar(/* {isLightMode, setIsLightMode}:any */) { ...@@ -11,7 +11,7 @@ export function Navbar(/* {isLightMode, setIsLightMode}:any */) {
setIsLightMode(!isLightMode); setIsLightMode(!isLightMode);
}; */ }; */
const pages = Pages.map((item, pageIndex) => { const pages = NavPages.map((item, pageIndex) => {
if ("folder" in item && item.folder) { if ("folder" in item && item.folder) {
const folderItems = item.folder.map((subpage, subpageIndex) => { const folderItems = item.folder.map((subpage, subpageIndex) => {
if (subpage.path) { if (subpage.path) {
......
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
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
...@@ -180,4 +180,118 @@ const Pages: (Page | Folder)[] = [ ...@@ -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; export default Pages;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment