From 5bc26fb0c5af09d3720d992d998c3760b3c5c7f0 Mon Sep 17 00:00:00 2001 From: liliana <liliana.sanfilippo@uni-bielefeld.de> Date: Thu, 18 Jul 2024 21:45:01 +0200 Subject: [PATCH] data now in Horizontal timeline component --- src/components/HorizontalTimeline.tsx | 32 +++++++++++++++++++++++++-- src/components/data/humanpractice.js | 29 ------------------------ 2 files changed, 30 insertions(+), 31 deletions(-) delete mode 100644 src/components/data/humanpractice.js diff --git a/src/components/HorizontalTimeline.tsx b/src/components/HorizontalTimeline.tsx index d3fd0acd..1121b73d 100644 --- a/src/components/HorizontalTimeline.tsx +++ b/src/components/HorizontalTimeline.tsx @@ -1,4 +1,4 @@ -/* import { HPdata as data} from "./seclarations"; + function TimeItem({color, tag, title, children, pic, author, tabid}: ItemProps){ return( @@ -135,4 +135,32 @@ function TimeItem({color, tag, title, children, pic, author, tabid}: ItemProps){ } - */ \ No newline at end of file + let data = [ + { + title: "Deutlich längerer Titel zum Test", + pic: "https://static.igem.wiki/teams/5247/placeholders/placehilderperson.jpeg", + tag: "Langer langer TAgs", + color: "blue", + author: "author", + tabid: "Eins", + text: "Text", + }, + { + title: "Deutlich längerer Titel zum Test", + pic: "https://static.igem.wiki/teams/5247/placeholders/placehilderperson.jpeg", + tag: "Langer langer TAgs", + color: "blue", + author: "author", + tabid: "Eins", + text: "Text", + }, + { + title: "Deutlich längerer Titel zum Test" , + pic: "https://static.igem.wiki/teams/5247/placeholders/placehilderperson.jpeg", + tag: "Tag", + color: "blue", + author: "a", + tabid: "Paris", + text: "Text", + } + ] \ No newline at end of file diff --git a/src/components/data/humanpractice.js b/src/components/data/humanpractice.js deleted file mode 100644 index 942db6ec..00000000 --- a/src/components/data/humanpractice.js +++ /dev/null @@ -1,29 +0,0 @@ -export const HPdata = [ - { - title: "Deutlich längerer Titel zum Test", - pic: "https://static.igem.wiki/teams/5247/placeholders/placehilderperson.jpeg", - tag: "Langer langer TAgs", - color: "blue", - author: "author", - tabid: "Eins", - text: "Text", - }, - { - title: "Deutlich längerer Titel zum Test", - pic: "https://static.igem.wiki/teams/5247/placeholders/placehilderperson.jpeg", - tag: "Langer langer TAgs", - color: "blue", - author: "author", - tabid: "Eins", - text: "Text", - }, - { - title: "Deutlich längerer Titel zum Test" , - pic: "https://static.igem.wiki/teams/5247/placeholders/placehilderperson.jpeg", - tag: "Tag", - color: "blue", - author: "a", - tabid: "Paris", - text: "Text", - } - ] \ No newline at end of file -- GitLab