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

sidebars

parent f950e385
No related branches found
No related tags found
No related merge requests found
Pipeline #398205 passed
......@@ -898,7 +898,7 @@ svg{
.timeline {
white-space: nowrap;
min-height: 500px;
max-width: 83vw;
width: 83vw;
overflow-x: auto;
overflow-y: hidden;
background-color: inherit;
......
......@@ -14,7 +14,6 @@ import { Villbuttonrow } from "../components/Buttons.tsx";
import "../utils/highlight.js";
import LoadingScreen from "../components/LoadingScreen.tsx";
import "../components/LoadingScreen.css";
import Sidebar from "../components/Sidebar.tsx";
const App = () => {
const [isLoading, setIsLoading] = useState(true);
......@@ -56,7 +55,7 @@ const App = () => {
{/* Header and PageContent */}
<Routes>
{Object.entries(pathMapping).map(([path, {header: Header, component: Component, navlist}]) => (
{Object.entries(pathMapping).map(([path, {header: Header, component: Component, navlist: Sidebar}]) => (
<Route
key={path}
path={path}
......@@ -66,18 +65,13 @@ const App = () => {
{/* Page content */}
<div className="container-fluid">
<div className="row">
<div id="sidebarbox" className="col-2 d-none d-lg-block">
<div className="sticky-top sidebar" /* style="top: 80px; overflow-wrap: break-word;" */>
{/* <Sidebar></Sidebar> */}
<Sidebar nums={navlist}></Sidebar>
</div>
</div>
<Sidebar/>
<div className="col">
<Component />
<Villbuttonrow/>
</div>
<div className="col-1 d-none d-lg-block">
{/* <!-- empty so far --> */}
{/* <!-- empty!--> */}
</div>
</div>
</div>
......
......@@ -7,6 +7,7 @@ export * from "./attributions.tsx";
// Project
export * from "./contribution.tsx";
export * from "./description.tsx";
export * from "../sidebars/descS.tsx"
export * from "./engineering.tsx";
export * from "./experiments.tsx";
export * from "./notebook.tsx";
......@@ -15,6 +16,7 @@ export * from "./results.tsx";
export * from "./safety.tsx";
// Human Practices
export * from "./human-practices.tsx";
export * from "../sidebars/hpS.tsx"
export * from "./Bfh.tsx";
export * from "./wiki.tsx";
......@@ -64,4 +66,4 @@ export * from "./example.tsx";
export * from "../sidebars/none.tsx"
......@@ -3,6 +3,7 @@ export function Partners() {
return (
<>
<div id="sidebarbox" className="col-1 d-none d-lg-block"> </div>
<br/>
<div className="row align-items-center">
<div id="zeiss-portrait" className="col-5 sponsor-portrait">
......
......@@ -26,6 +26,7 @@
Example
} from "./contents";
import { DescSidebar, NoSidebar, HpSidebar } from "./contents";
import { BFHH, ETHH, JUDGEH, DESH, PROOFH, SUPH, PARTH, MESH, ENGH, DRYH, HOMEH, HPH, INTSH, SPONH, RESH, ATTH, CONTH, DESCH, EXPH, IMPH, NOTEH, SAFEH, TEAMH, WIKIH } from "./contents";
interface Base {
......@@ -43,7 +44,7 @@ class Page implements Base {
path: string | undefined;
component: React.FC | undefined;
header!: React.FC;
navlist!: Array<string>;
navlist!: React.FC;
}
const Pages: (Page | Folder)[] = [
......@@ -53,7 +54,7 @@ const Pages: (Page | Folder)[] = [
path: "/attributions",
component: Attributions,
header: ATTH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "MeetUp",
......@@ -61,7 +62,7 @@ const Pages: (Page | Folder)[] = [
path: "/bfh",
component: Bfh,
header: BFHH,
navlist: [],
navlist: NoSidebar,
},
{
name: "Contribution",
......@@ -69,7 +70,7 @@ const Pages: (Page | Folder)[] = [
path: "/contribution",
component: Contribution,
header: CONTH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Description",
......@@ -77,7 +78,7 @@ const Pages: (Page | Folder)[] = [
path: "/description",
component: Description,
header: DESCH,
navlist: ["Abstract", "Cystic Fibrosis", "Our motivation", "Approach", "Delivery", "Our vision", "References"]
navlist: DescSidebar
},
{
name: "Design",
......@@ -85,7 +86,7 @@ const Pages: (Page | Folder)[] = [
path: "/design",
component: Design,
header: DESH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Dry Lab",
......@@ -93,7 +94,7 @@ const Pages: (Page | Folder)[] = [
path: "/dry-lab",
component: Drylab,
header: DRYH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Engineering Success",
......@@ -101,7 +102,7 @@ const Pages: (Page | Folder)[] = [
path: "/engineering",
component: Engineering,
header: ENGH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Ethics",
......@@ -109,7 +110,7 @@ const Pages: (Page | Folder)[] = [
path: "/ethics",
component: Ethics,
header: ETHH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Example",
......@@ -117,7 +118,7 @@ const Pages: (Page | Folder)[] = [
path: "/example",
component: Example,
header: HOMEH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Experiments",
......@@ -125,7 +126,7 @@ const Pages: (Page | Folder)[] = [
path: "/experiments",
component: Experiments,
header: EXPH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Human Practices",
......@@ -133,23 +134,25 @@ const Pages: (Page | Folder)[] = [
path: "/human-practices",
component: HumanPractices,
header: HPH,
navlist: ["Overview", "Timeline", "Inspiration", "Methods", "Analysis", "Reflection", "Implementation"],
},
navlist: HpSidebar
},
{
name: "Home",
title: "Bielefeld CeBiTec",
path: "/",
component: Description,
header: DESCH,
navlist: ["Abstract", "Cystic Fibrosis", "Our motivation", "Approach", "Delivery", "Our vision", "References"]
},
navlist: DescSidebar
},
{
name: "Home",
title: "Bielefeld CeBiTec",
path: "/index.html",
component: Description,
header: DESCH,
navlist: ["Abstract", "Cystic Fibrosis", "Our motivation", "Approach", "Delivery", "Our vision", "References"]
navlist: DescSidebar
},
{
name: "Impressum",
......@@ -157,7 +160,7 @@ const Pages: (Page | Folder)[] = [
path: "/impressum",
component: Impressum,
header: IMPH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Interviews",
......@@ -165,7 +168,7 @@ const Pages: (Page | Folder)[] = [
path: "/interviews",
component: Ints,
header: INTSH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Judging",
......@@ -173,7 +176,7 @@ const Pages: (Page | Folder)[] = [
path: "/judging",
component: Judging,
header: JUDGEH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Measurement",
......@@ -181,7 +184,7 @@ const Pages: (Page | Folder)[] = [
path: "/measurement",
component: Measurement,
header: MESH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Notebook",
......@@ -189,7 +192,7 @@ const Pages: (Page | Folder)[] = [
path: "/notebook",
component: Notebook,
header: NOTEH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Partners and Sponsors",
......@@ -197,7 +200,7 @@ const Pages: (Page | Folder)[] = [
path: "/partners",
component: Partners,
header: SPONH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Parts",
......@@ -205,7 +208,7 @@ const Pages: (Page | Folder)[] = [
path: "/parts",
component: Parts,
header: PARTH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Proof of Concept",
......@@ -213,7 +216,7 @@ const Pages: (Page | Folder)[] = [
path: "/proof-of-concept",
component: Proof,
header: PROOFH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Results",
......@@ -221,7 +224,7 @@ const Pages: (Page | Folder)[] = [
path: "/results",
component: Results,
header: RESH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Safety",
......@@ -229,7 +232,7 @@ const Pages: (Page | Folder)[] = [
path: "/safety",
component: Safety,
header: SAFEH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Supplementary",
......@@ -237,7 +240,7 @@ const Pages: (Page | Folder)[] = [
path: "/supplementary",
component: Supplementary,
header: SUPH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Team",
......@@ -245,7 +248,7 @@ const Pages: (Page | Folder)[] = [
path: "/team",
component: Team,
header: TEAMH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Wiki",
......@@ -253,7 +256,7 @@ const Pages: (Page | Folder)[] = [
path: "/wiki",
component: Wiki,
header: WIKIH,
navlist: [""],
navlist: NoSidebar,
},
];
......@@ -264,7 +267,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/",
component: Home,
header: HOMEH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Team",
......@@ -275,7 +278,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/team",
component: Team,
header: TEAMH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Attributions",
......@@ -283,7 +286,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/attributions",
component: Attributions,
header: ATTH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Partners and Sponsors",
......@@ -291,7 +294,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/partners",
component: Partners,
header: SPONH,
navlist: [""],
navlist: NoSidebar,
},
],
},
......@@ -304,7 +307,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/description",
component: Description,
header: DESCH,
navlist: ["Abstract", "Cystic Fibrosis", "Our motivation", "Approach", "Delivery", "Our vision", "References"]
navlist: DescSidebar
},
{
name: "Results",
......@@ -312,7 +315,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/results",
component: Results,
header: RESH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Parts",
......@@ -320,7 +323,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/parts",
component: Parts,
header: PARTH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Proof of Concept",
......@@ -328,7 +331,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/proof-of-concept",
component: Proof,
header: PROOFH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Engineering Success",
......@@ -336,7 +339,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/engineering",
component: Engineering,
header: ENGH,
navlist: [""],
navlist: NoSidebar,
},
],
},
......@@ -349,7 +352,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/experiments",
component: Experiments,
header: EXPH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Dry Lab",
......@@ -357,7 +360,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/dry-lab",
component: Drylab,
header: DRYH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Design",
......@@ -365,7 +368,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/design",
component: Design,
header: DESH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Measurement",
......@@ -373,7 +376,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/measurement",
component: Measurement,
header: MESH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Supplementary",
......@@ -381,7 +384,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/supplementary",
component: Supplementary,
header: SUPH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Notebook",
......@@ -389,7 +392,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/notebook",
component: Notebook,
header: NOTEH,
navlist: [""],
navlist: NoSidebar,
},
]
},
......@@ -399,7 +402,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/safety",
component: Safety,
header: SAFEH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "Human Practices",
......@@ -410,7 +413,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/human-practices",
component: HumanPractices,
header: HPH,
navlist: ["Overview"],
navlist: HpSidebar
},
{
name: "Interviews",
......@@ -418,7 +421,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/interviews",
component: Ints,
header: INTSH,
navlist: [""],
navlist: NoSidebar,
},
]
},
......@@ -431,7 +434,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/contribution",
component: Contribution,
header: CONTH,
navlist: [""],
navlist: NoSidebar,
},
{
name: "MeetUp",
......@@ -439,7 +442,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/bfh",
component: Bfh,
header: BFHH,
navlist: [],
navlist: NoSidebar,
},
{
name: "Wiki",
......@@ -447,7 +450,7 @@ export const NavPages: (Page | Folder)[] = [
path: "/wiki",
component: Wiki,
header: WIKIH,
navlist: [""],
navlist: NoSidebar,
},
]
},
......
import Sidebar from "../components/Sidebar";
export function DescSidebar(){
return(
<div className="col-2 d-none d-lg-block">
<div className="sticky-top sidebar">
<Sidebar nums={["Abstract", "Cystic Fibrosis", "Our motivation",
"Approach", "Delivery", "Our vision", "References"]}></Sidebar>
</div>
</div>
)
}
\ No newline at end of file
import Sidebar from "../components/Sidebar";
export function HpSidebar(){
return(
<div className="col-2 d-none d-lg-block">
<div className="sticky-top sidebar">
<Sidebar nums={["Overview", "Timeline", "Inspiration", "Methods", "Analysis", "Reflection", "Implementation"]}></Sidebar>
</div>
</div>
)
}
\ No newline at end of file
export function NoSidebar(){
return(
<div className="col-1 d-none d-lg-block">
</div>
)
}
\ No newline at end of file
......@@ -7,7 +7,7 @@ export const getPathMapping = () => {
title: string | undefined;
component: React.FC;
header: React.FC;
navlist: Array<string>;
navlist: React.FC;
};
}>((map, item) => {
if ("path" in item && item.path && item.component) {
......
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