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

symptoms

parent 8b1116c0
No related branches found
No related tags found
No related merge requests found
Pipeline #434209 passed
...@@ -3714,3 +3714,19 @@ a{ ...@@ -3714,3 +3714,19 @@ a{
padding-left: 10px !important; padding-left: 10px !important;
} }
.symptom-img-wrapper{
border-radius: 50% !important;
background-color: var(--accent-primary);
height: 150px;
width: 150px;
display: flex;
align-items: center;
}
.symptom-img-wrapper img{
margin: auto;
display: inline;
max-width: 80%;
max-height: 80%;
}
\ No newline at end of file
import { TabButtonRow } from "./Buttons"; import { TabButtonRow } from "./Buttons";
import TimeHori from "./HorizontalTimeline"; import TimeHori 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(){
return( return(
<section id="Timeline" className="section"> <section id="Timeline" className="section">
......
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}: ItemProps){
let cl = "t-tag " + tag; let cl = "t-tag " + tag;
return( return(
......
...@@ -12,6 +12,7 @@ import PreCyse from "../components/precyse"; ...@@ -12,6 +12,7 @@ import PreCyse from "../components/precyse";
import { useNavigateTabs } from "../utils/navigation"; import { useNavigateTabs } from "../utils/navigation";
import { Section, Subesction } from "../components/sections"; import { Section, Subesction } from "../components/sections";
import { stringToSlug } from "../utils"; import { stringToSlug } from "../utils";
import { symptomdata, SymptomDatensatz } from "../data/symptom-data";
export function Description() { export function Description() {
useNavigateTabs(); useNavigateTabs();
...@@ -479,12 +480,7 @@ export function Description() { ...@@ -479,12 +480,7 @@ export function Description() {
}, },
] ]
let symptomdata = [
{
name: "lung",
picture: "Picture"
}
]
let symptombuttonrowdata = [ let symptombuttonrowdata = [
{ {
...@@ -494,14 +490,14 @@ let symptombuttonrowdata = [ ...@@ -494,14 +490,14 @@ let symptombuttonrowdata = [
main: true main: true
}, },
{ {
node: <H4 id="lungs-btn" text="Lungs"/>, node: createSymptomSteckbrief(symptomdata[1]),
buttonname: "Lungs", buttonname: "Lungs",
cssname: "lungs" cssname: "lungs"
}, },
{ {
node: <H4 id="darm-btn" text="Digestive System"/>, node: createSymptomSteckbrief(symptomdata[2]),
buttonname: "Digestive System", buttonname: "Pancreas",
cssname: "darm" cssname: "pancreas"
}, },
{ {
node: <H4 id="mental-btn" text="Mental Health"/>, node: <H4 id="mental-btn" text="Mental Health"/>,
...@@ -509,10 +505,6 @@ let symptombuttonrowdata = [ ...@@ -509,10 +505,6 @@ let symptombuttonrowdata = [
cssname: "mental" cssname: "mental"
}, },
] ]
interface SymptomDatensatz {
name: string;
picture: string;
}
...@@ -522,7 +514,14 @@ function createSymptomSteckbrief(data: SymptomDatensatz){ ...@@ -522,7 +514,14 @@ function createSymptomSteckbrief(data: SymptomDatensatz){
return( return(
<div> <div>
<H4 id={`${data.name}-btn`} text={stringToSlug(data.name)}/> <H4 id={`${data.name}-btn`} text={stringToSlug(data.name)}/>
{data.picture} <div className="col-2">
<div className="symptom-img-wrapper">
<img src={data.picture} className="symptom-img"/>
</div>
</div>
<div className="col">
</div>
</div> </div>
) )
} }
\ No newline at end of file
import {ScrollLinkWithChild } from "../ScrollLink"; import { ScrollLinkWithChild } from "../components/ScrollLink";
export interface TimelineDatenpunkt { export interface TimelineDatenpunkt {
title?: string; /* Prof. , Dr., ... */ title?: string; /* Prof. , Dr., ... */
......
export interface SymptomDatensatz {
name: string;
picture: string;
}
export const symptomdata: (Array<SymptomDatensatz>) = [
{
name: "About",
picture: "https://static.igem.wiki/teams/5247/scientific-figures/organs-together-normal.svg"
},
{
name: "Lung",
picture: "https://static.igem.wiki/teams/5247/scientific-figures/lung-normal.svg"
},
{
name: "Pancreas",
picture: "https://static.igem.wiki/teams/5247/scientific-figures/pancras-normal.svg"
}
]
\ No newline at end of file
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