From 2e10e9433f9d1118cfd6cdac02e71aff738c54a3 Mon Sep 17 00:00:00 2001 From: Liliana Sanfilippo <lsanfilippo@techfak.uni-bielefeld.de> Date: Thu, 21 Nov 2024 19:34:28 +0100 Subject: [PATCH] links --- src/data/hptimelinedata.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/data/hptimelinedata.tsx b/src/data/hptimelinedata.tsx index ffd97798..6fb25863 100644 --- a/src/data/hptimelinedata.tsx +++ b/src/data/hptimelinedata.tsx @@ -20,6 +20,12 @@ function HPgoToPageAndScroll({id, text, path}:{id: string, text: string, path: s <a onClick={() => goToPageAndScroll(id, path)}> {text} </a> ) } +function HPgoToPageWithTabAndScroll({id, text, path, scrollId}:{id: string, text: string, path: string, scrollId: string}){ + const {goToPageWithTabAndScroll} = useNavigation(); + return( + <a onClick={() => goToPageWithTabAndScroll({path: path, tabId: id, scrollToId: scrollId})}> {text} </a> + ) +} /*function HPgoToPageAndOpenTab({id, text, path}:{id: string, text: string, path: string}){ const {goToPagesAndOpenTab} = useNavigation(); @@ -779,7 +785,7 @@ export const timelinedata: Array<TimelineDatenpunkt> = [ quoteNachname: "Sahami Moghaddam, Teammember", quoteVorname: "Asal", quote: "I had a great time educating the kids about gene therapy and CF in a playful way, and there were some very interesting conversations with the parents.", - summary: [<p>"Der Teuto ruft!"<a onClick={() => goToPageWithTabAndScroll({tabId: 'teutoruft', scrollToId: "teuroruft-heading" , path: '/human-practices'})}>â€Teuto ruft!â€</a> is a community event in Bielefeld where iGEM Bielefeld participated to raise awareness about Cystic Fibrosis (CF) and gene therapy. They engaged children through interactive experiments, such as creating lung models and simulating mucus to help them understand the challenges faced by CF patients. Adults were informed about their gene therapy project and had meaningful discussions about the implications of CF treatment. Collaborating with other institutions like the life science student initiative btS, the team expanded their outreach. Despite changeable weather, the event was a success in educating the public and improving science communication.</p>], + summary: [<p>"Der Teuto ruft!"<a onClick={() => HPgoToPageWithTabAndScroll({id: 'teutoruft', scrollId: "teuroruft-heading" , path: '/human-practices', text: "â€Teuto ruft!â€"})}></a> is a community event in Bielefeld where iGEM Bielefeld participated to raise awareness about Cystic Fibrosis (CF) and gene therapy. They engaged children through interactive experiments, such as creating lung models and simulating mucus to help them understand the challenges faced by CF patients. Adults were informed about their gene therapy project and had meaningful discussions about the implications of CF treatment. Collaborating with other institutions like the life science student initiative btS, the team expanded their outreach. Despite changeable weather, the event was a success in educating the public and improving science communication.</p>], months: "June" }, { -- GitLab