Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bielefeld-CeBiTec-Temp-until-thaw
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
Package Registry
Model registry
Operate
Terraform modules
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
Liliana Sanfilippo
Bielefeld-CeBiTec-Temp-until-thaw
Commits
8eb57a3c
Commit
8eb57a3c
authored
5 months ago
by
Liliana Sanfilippo
Browse files
Options
Downloads
Patches
Plain Diff
NoButtItemProps
parent
a03c9870
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/BFH-Timeline.tsx
+7
-11
7 additions, 11 deletions
src/components/BFH-Timeline.tsx
src/components/VerticalTimeline.tsx
+29
-0
29 additions, 0 deletions
src/components/VerticalTimeline.tsx
with
36 additions
and
11 deletions
src/components/BFH-Timeline.tsx
+
7
−
11
View file @
8eb57a3c
import
{
Panel
TimelineItem
,
TimelineItem
,
TimelineItemPic
,
TimelineItemTwoPic
}
from
"
./VerticalTimeline
"
;
import
{
NoButt
TimelineItem
,
Panel
TimelineItem
,
TimelineItemPic
,
TimelineItemTwoPic
}
from
"
./VerticalTimeline
"
;
import
SimpleSlider
from
"
./Slider
"
;
import
{
SupScrollLink
}
from
"
./ScrollLink
"
;
...
...
@@ -180,12 +180,11 @@ export function BFHTimeline () {
</
p
>
</
div
>
</
TimelineItemPic
>
<
TimelineItem
<
NoButt
TimelineItem
url
=
"https://static.igem.wiki/teams/5247/placeholders/placehilderperson.jpeg"
date
=
'Team project presentations'
tag
=
'Team presentations'
color
=
'var(--accent-primary'
csstag
=
"teampres"
>
<
h5
>
Team project presentations
</
h5
>
<
div
className
=
"col bfh-slider"
>
...
...
@@ -201,13 +200,13 @@ export function BFHTimeline () {
<
div
id
=
"teampres"
style
=
{
{
display
:
"
none
"
}
}
>
So much more
</
div
>
</
TimelineItem
>
<
TimelineItem
</
NoButt
TimelineItem
>
<
NoButt
TimelineItem
url
=
"https://static.igem.wiki/teams/5247/placeholders/placehilderperson.jpeg"
date
=
'Poster Exhibition Booth'
tag
=
'Team presentations'
color
=
'var(--accent-primary)'
csstag
=
"teambooth"
>
<
h5
>
Poster Exhibition Booth
</
h5
>
[Link virtual exhibition]
...
...
@@ -231,11 +230,8 @@ export function BFHTimeline () {
</
div
>
<
span
>
</
span
>
<
div
id
=
"teambooth"
style
=
{
{
display
:
"
none
"
}
}
>
So much more
</
div
>
</
TimelineItem
>
</
span
>
</
NoButtTimelineItem
>
<
TimelineItemPic
url
=
"https://static.igem.wiki/teams/5247/photos/meetup/speakers/svanja-vinke.jpg"
date
=
'How to work safe'
...
...
This diff is collapsed.
Click to expand it.
src/components/VerticalTimeline.tsx
+
29
−
0
View file @
8eb57a3c
...
...
@@ -18,6 +18,20 @@ interface ItemProps {
url
:
string
,
url2
?:
string
}
interface
NoButtItemProps
{
text
?:
string
;
heading
?:
string
;
vorname
?:
string
,
vorname2
?:
string
,
nachname
?:
string
,
nachname2
?:
string
,
date
:
string
,
children
:
React
.
ReactNode
;
tag
:
string
,
color
:
string
,
url
:
string
,
url2
?:
string
}
...
...
@@ -107,6 +121,21 @@ export const TimelineItem = ({ date, tag, color, children, csstag }:ItemProps)
</
div
>
</
div
>
);
export
const
NoButtTimelineItem
=
({
date
,
tag
,
color
,
children
}:
NoButtItemProps
)
=>
(
<
div
className
=
"timeline-item"
>
<
div
className
=
"timeline-item-content"
>
<
span
className
=
"tag"
style
=
{
{
background
:
color
}
}
>
{
tag
}
</
span
>
<
time
>
{
date
}
</
time
>
<
hr
/>
{
children
}
<
span
className
=
"circle"
/>
</
div
>
</
div
>
);
export
const
PanelTimelineItem
=
()
=>
(
<
div
className
=
"timeline-item"
>
...
...
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