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

NoButtItemProps

parent a03c9870
No related branches found
No related tags found
No related merge requests found
import { PanelTimelineItem, TimelineItem, TimelineItemPic, TimelineItemTwoPic } from "./VerticalTimeline"; import { NoButtTimelineItem, PanelTimelineItem, TimelineItemPic, TimelineItemTwoPic } from "./VerticalTimeline";
import SimpleSlider from "./Slider"; import SimpleSlider from "./Slider";
import { SupScrollLink } from "./ScrollLink"; import { SupScrollLink } from "./ScrollLink";
...@@ -180,12 +180,11 @@ export function BFHTimeline () { ...@@ -180,12 +180,11 @@ export function BFHTimeline () {
</p> </p>
</div> </div>
</TimelineItemPic> </TimelineItemPic>
<TimelineItem <NoButtTimelineItem
url="https://static.igem.wiki/teams/5247/placeholders/placehilderperson.jpeg" url="https://static.igem.wiki/teams/5247/placeholders/placehilderperson.jpeg"
date='Team project presentations' date='Team project presentations'
tag= 'Team presentations' tag= 'Team presentations'
color='var(--accent-primary' color='var(--accent-primary'
csstag="teampres"
> >
<h5>Team project presentations</h5> <h5>Team project presentations</h5>
<div className="col bfh-slider"> <div className="col bfh-slider">
...@@ -201,13 +200,13 @@ export function BFHTimeline () { ...@@ -201,13 +200,13 @@ export function BFHTimeline () {
<div id="teampres" style={{display: "none"}}> <div id="teampres" style={{display: "none"}}>
So much more So much more
</div> </div>
</TimelineItem> </NoButtTimelineItem>
<TimelineItem <NoButtTimelineItem
url="https://static.igem.wiki/teams/5247/placeholders/placehilderperson.jpeg" url="https://static.igem.wiki/teams/5247/placeholders/placehilderperson.jpeg"
date='Poster Exhibition Booth' date='Poster Exhibition Booth'
tag= 'Team presentations' tag= 'Team presentations'
color='var(--accent-primary)' color='var(--accent-primary)'
csstag="teambooth"
> >
<h5>Poster Exhibition Booth </h5> <h5>Poster Exhibition Booth </h5>
[Link virtual exhibition] [Link virtual exhibition]
...@@ -231,11 +230,8 @@ export function BFHTimeline () { ...@@ -231,11 +230,8 @@ export function BFHTimeline () {
</div> </div>
<span> <span>
</span> </span>
<div id="teambooth" style={{display: "none"}}> </NoButtTimelineItem>
So much more
</div>
</TimelineItem>
<TimelineItemPic <TimelineItemPic
url="https://static.igem.wiki/teams/5247/photos/meetup/speakers/svanja-vinke.jpg" url="https://static.igem.wiki/teams/5247/photos/meetup/speakers/svanja-vinke.jpg"
date='How to work safe' date='How to work safe'
......
...@@ -18,6 +18,20 @@ interface ItemProps { ...@@ -18,6 +18,20 @@ interface ItemProps {
url: string, url: string,
url2?: 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) ...@@ -107,6 +121,21 @@ export const TimelineItem = ({ date, tag, color, children, csstag }:ItemProps)
</div> </div>
</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 = () => ( export const PanelTimelineItem = () => (
<div className="timeline-item"> <div className="timeline-item">
......
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