Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bielefeld-CeBiTec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024 Competition
Bielefeld-CeBiTec
Commits
7430894d
Commit
7430894d
authored
8 months ago
by
Liliana Sanfilippo
Browse files
Options
Downloads
Patches
Plain Diff
split up pages that get create dand pages that are shown in the navbar
parent
ab12366c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/components/Navbar.tsx
+2
-2
2 additions, 2 deletions
src/components/Navbar.tsx
src/contents/interviews.tsx
+18
-0
18 additions, 0 deletions
src/contents/interviews.tsx
src/contents/partners.tsx
+18
-0
18 additions, 0 deletions
src/contents/partners.tsx
src/pages.ts
+114
-0
114 additions, 0 deletions
src/pages.ts
with
152 additions
and
2 deletions
src/components/Navbar.tsx
+
2
−
2
View file @
7430894d
...
@@ -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
{
Nav
Pages
}
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
=
Nav
Pages
.
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
)
{
...
...
This diff is collapsed.
Click to expand it.
src/contents/interviews.tsx
0 → 100644
+
18
−
0
View file @
7430894d
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
This diff is collapsed.
Click to expand it.
src/contents/partners.tsx
0 → 100644
+
18
−
0
View file @
7430894d
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
This diff is collapsed.
Click to expand it.
src/pages.ts
+
114
−
0
View file @
7430894d
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment