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
a07a6e5f
Commit
a07a6e5f
authored
5 months ago
by
Liliana Sanfilippo
Browse files
Options
Downloads
Patches
Plain Diff
Edu Outrach Timeline als EIN Data Button
parent
34266c84
No related branches found
No related tags found
No related merge requests found
Pipeline
#496100
failed
5 months ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/App/Timelines.css
+7
-5
7 additions, 5 deletions
src/App/Timelines.css
src/components/HP-timeline.tsx
+5
-4
5 additions, 4 deletions
src/components/HP-timeline.tsx
src/components/HorizontalTimeline.tsx
+48
-2
48 additions, 2 deletions
src/components/HorizontalTimeline.tsx
with
60 additions
and
11 deletions
src/App/Timelines.css
+
7
−
5
View file @
a07a6e5f
...
@@ -155,9 +155,7 @@ button.tabbutton.Medical.active, .modulators.active, .inhalations.active{
...
@@ -155,9 +155,7 @@ button.tabbutton.Medical.active, .modulators.active, .inhalations.active{
border-color
:
var
(
--offblack
);
border-color
:
var
(
--offblack
);
}
}
.colour-meta-tag
{
background-color
:
var
(
--igemlightgreen
);
}
/* and buttons */
/* and buttons */
button
.tabbutton
:nth-child
(
1
),
button
.tabbutton
:nth-child
(
6
)
{
button
.tabbutton
:nth-child
(
1
),
button
.tabbutton
:nth-child
(
6
)
{
background-color
:
white
;
/* soll whit ebleiben! */
background-color
:
white
;
/* soll whit ebleiben! */
...
@@ -178,8 +176,12 @@ button.tabbutton:nth-child(1), button.tabbutton:nth-child(6){
...
@@ -178,8 +176,12 @@ button.tabbutton:nth-child(1), button.tabbutton:nth-child(6){
.Industry
,
button
.tabbutton
:nth-child
(
5
)
{
.Industry
,
button
.tabbutton
:nth-child
(
5
)
{
background-color
:
var
(
--mediumpurple
);
background-color
:
var
(
--mediumpurple
);
}
}
.Activist
,
.Milestone
,
.Education
,
.Outreach
{
.Activist
,
.Milestone
{
background-color
:
var
(
--igemlightgreen
)
!important
;
background-color
:
var
(
--igemmediumgreen
)
!important
;
}
.Education
,
.Outreach
{
background-color
:
var
(
--igemlightgreen
);
}
}
.Ethics
{
.Ethics
{
...
...
This diff is collapsed.
Click to expand it.
src/components/HP-timeline.tsx
+
5
−
4
View file @
a07a6e5f
import
{
TabButtonRow
}
from
"
./Buttons
"
;
import
{
TabButtonRow
}
from
"
./Buttons
"
;
import
TimeHori
from
"
./HorizontalTimeline
"
;
import
TimeHori
,
{
CombiTimeHori
}
from
"
./HorizontalTimeline
"
;
import
{
BFHStyleTabs
,
ButtonRowTabs
}
from
"
./Tabs
"
;
import
{
BFHStyleTabs
,
ButtonRowTabs
}
from
"
./Tabs
"
;
import
{
timelinedata
}
from
"
../data/hptimelinedata
"
;
import
{
timelinedata
}
from
"
../data/hptimelinedata
"
;
export
function
HPTimeline
(){
export
function
HPTimeline
(){
...
@@ -47,11 +47,12 @@ export function HPTimeline(){
...
@@ -47,11 +47,12 @@ export function HPTimeline(){
buttonname
:
"
Milestones
"
,
buttonname
:
"
Milestones
"
,
cssname
:
"
Milestone
"
cssname
:
"
Milestone
"
},
},
/*
{
{
node: <TimeHori tab="Education"
></
TimeHori>,
node
:
<
Combi
TimeHori
tab
1
=
"Education"
tab2
=
"Outreach"
></
Combi
TimeHori
>,
buttonname: "Education",
buttonname
:
"
Education
& Outreach
"
,
cssname
:
"
Education
"
cssname
:
"
Education
"
},
},
/*
{
{
node: <TimeHori tab="Outreach" ></TimeHori>,
node: <TimeHori tab="Outreach" ></TimeHori>,
buttonname: "Outreach",
buttonname: "Outreach",
...
...
This diff is collapsed.
Click to expand it.
src/components/HorizontalTimeline.tsx
+
48
−
2
View file @
a07a6e5f
...
@@ -47,12 +47,13 @@ function TimeItem({tag, title, pic, author, tabid, month}: ItemProps){
...
@@ -47,12 +47,13 @@ function TimeItem({tag, title, pic, author, tabid, month}: ItemProps){
}
}
function
TimeItemMeta
({
tag
,
title
,
pic
,
author
,
tabid
,
month
}:
ItemProps
){
function
TimeItemMeta
({
tag
,
title
,
pic
,
author
,
tabid
,
month
}:
ItemProps
){
let
cl
=
"
t-tag
"
+
tag
;
return
(
return
(
<
li
className
=
"timelineolli"
>
<
li
className
=
"timelineolli"
>
<
div
className
=
"timeline-item time-meta moretop"
>
<
div
className
=
"timeline-item time-meta moretop"
>
<
div
className
=
""
>
<
div
className
=
""
>
<
div
className
=
"row"
style
=
{
{
paddingLeft
:
"
10px
"
,
paddingRight
:
"
15px
"
}
}
>
<
div
className
=
"row"
style
=
{
{
paddingLeft
:
"
10px
"
,
paddingRight
:
"
15px
"
}
}
>
<
div
className
=
"
col-6 t-tag
colour-meta-tag"
>
<
div
className
=
{
`
${
cl
}
col-6 t-tag
`
}
>
{
tag
}
{
tag
}
</
div
>
</
div
>
<
div
className
=
"col"
>
<
div
className
=
"col"
>
...
@@ -92,7 +93,52 @@ function TimeItem({tag, title, pic, author, tabid, month}: ItemProps){
...
@@ -92,7 +93,52 @@ function TimeItem({tag, title, pic, author, tabid, month}: ItemProps){
)
)
}
}
export
function
CombiTimeHori
({
tab1
,
tab2
}:{
tab1
:
string
,
tab2
:
string
}){
let
nod
;
/* console.log("Tab") */
nod
=
getItemsByTypes
(
tab1
,
tab2
);
return
(
<
div
>
<
section
className
=
"timeline"
>
<
ol
className
=
"timelineol"
>
{
nod
}
<
li
className
=
"timelineolli"
></
li
>
</
ol
>
</
section
>
</
div
>
)
}
export
function
getItemsByTypes
(
tabid1
:
string
,
tabid2
:
string
)
{
let
rows
:
JSX
.
Element
[]
=
[]
for
(
let
i
=
0
;
i
<
timelinedata
.
length
;
i
++
)
{
if
(
tabid1
===
timelinedata
[
i
].
tag
||
tabid2
===
timelinedata
[
i
].
tag
)
{
var
name
:
string
;
if
(
timelinedata
[
i
].
title
)
{
name
=
timelinedata
[
i
].
title
!
+
"
"
+
timelinedata
[
i
].
vorname
+
"
"
+
timelinedata
[
i
].
nachnname
;
}
else
{
name
=
timelinedata
[
i
].
vorname
+
"
"
+
timelinedata
[
i
].
nachnname
;
}
rows
.
push
(<
TimeItem
key
=
{
i
}
title
=
{
timelinedata
[
i
].
heading
}
pic
=
{
timelinedata
[
i
].
pictureurl
}
tag
=
{
timelinedata
[
i
].
tag
}
author
=
{
name
}
tabid
=
{
timelinedata
[
i
].
interviewtabid
}
month
=
{
timelinedata
[
i
].
months
}
>
{
timelinedata
[
i
].
cardtext
}
</
TimeItem
>)
}
}
return
rows
;
}
export
default
function
TimeHori
({
tab
}:{
tab
:
string
}){
export
default
function
TimeHori
({
tab
}:{
tab
:
string
}){
let
nod
;
let
nod
;
...
...
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