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

Auf Integrated Human Practice Seite -> Zeitstrahl: Zeitmarken/Monate

parent 9eb05b50
No related branches found
No related tags found
No related merge requests found
import { HPMoreButton } from "./Buttons"; import { HPMoreButton } from "./Buttons";
import { timelinedata } from "../data/hptimelinedata"; import { timelinedata } from "../data/hptimelinedata";
function TimeItem({tag, title, pic, author, tabid}: ItemProps){ function TimeItem({tag, title, pic, author, tabid, month}: ItemProps){
let cl = "t-tag " + tag; let cl = "t-tag " + tag;
return( return(
<li className="timelineolli"> <li className="timelineolli">
<div className="timeline-item moretop"> <div className="timeline-item moretop">
<div className=""> <div className="">
<div className={cl}> <div className="row" style={{paddingLeft: "10px", paddingRight: "15px"}}>
{tag} <div className={cl}>
{tag}
</div>
<div className="col">
</div>
<div className="col-6 t-tag" style={{color: "black", backgroundColor: "#e2dad7"}}>
{month}
</div>
</div> </div>
<div className="fillup-wrapper"> <div className="fillup-wrapper">
...@@ -38,15 +46,24 @@ function TimeItem({tag, title, pic, author, tabid}: ItemProps){ ...@@ -38,15 +46,24 @@ function TimeItem({tag, title, pic, author, tabid}: ItemProps){
) )
} }
function TimeItemMeta({ tag, title, pic, author, tabid}: ItemProps){ function TimeItemMeta({ tag, title, pic, author, tabid, month}: ItemProps){
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=" t-tag colour-meta-tag"> <div className="row" style={{paddingLeft: "10px", paddingRight: "15px"}}>
{tag} <div className="col-6 t-tag colour-meta-tag">
{tag}
</div>
<div className="col">
</div>
<div className="col-6 t-tag" style={{color: "black", backgroundColor: "#e2dad7"}}>
{month}
</div>
</div> </div>
<div className="fillup-wrapper"> <div className="fillup-wrapper">
<div className="row align-items-center fillup"> <div className="row align-items-center fillup">
<div className="col" > <div className="col" >
...@@ -113,6 +130,7 @@ function TimeItem({tag, title, pic, author, tabid}: ItemProps){ ...@@ -113,6 +130,7 @@ function TimeItem({tag, title, pic, author, tabid}: ItemProps){
pic: string, pic: string,
author: string, author: string,
tabid: string tabid: string
month: string
} }
...@@ -135,7 +153,7 @@ function TimeItem({tag, title, pic, author, tabid}: ItemProps){ ...@@ -135,7 +153,7 @@ function TimeItem({tag, title, pic, author, tabid}: ItemProps){
tag={timelinedata[i].tag} tag={timelinedata[i].tag}
author={name} author={name}
tabid={timelinedata[i].interviewtabid} tabid={timelinedata[i].interviewtabid}
> month={timelinedata[i].months} >
{timelinedata[i].cardtext} {timelinedata[i].cardtext}
</TimeItemMeta>) </TimeItemMeta>)
} }
...@@ -152,8 +170,8 @@ function TimeItem({tag, title, pic, author, tabid}: ItemProps){ ...@@ -152,8 +170,8 @@ function TimeItem({tag, title, pic, author, tabid}: ItemProps){
pic={timelinedata[i].pictureurl} pic={timelinedata[i].pictureurl}
tag={timelinedata[i].tag} tag={timelinedata[i].tag}
author={name} author={name}
tabid={timelinedata[i].interviewtabid} tabid={timelinedata[i].interviewtabid}
> month={timelinedata[i].months} >
{timelinedata[i].cardtext} {timelinedata[i].cardtext}
</TimeItem>) </TimeItem>)
} }
...@@ -175,13 +193,13 @@ function TimeItem({tag, title, pic, author, tabid}: ItemProps){ ...@@ -175,13 +193,13 @@ function TimeItem({tag, title, pic, author, tabid}: ItemProps){
name = timelinedata[i].vorname + " " + timelinedata[i].nachnname; name = timelinedata[i].vorname + " " + timelinedata[i].nachnname;
} }
rows.push(<TimeItem rows.push(<TimeItem
key={i} key={i}
title={timelinedata[i].heading} title={timelinedata[i].heading}
pic={timelinedata[i].pictureurl} pic={timelinedata[i].pictureurl}
tag={timelinedata[i].tag} tag={timelinedata[i].tag}
author={name} author={name}
tabid={timelinedata[i].interviewtabid} tabid={timelinedata[i].interviewtabid}
> month={timelinedata[i].months} >
{timelinedata[i].cardtext} {timelinedata[i].cardtext}
</TimeItem>) </TimeItem>)
} }
......
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