From 625271f1db8d58876dcc3d641abcda9046b0a201 Mon Sep 17 00:00:00 2001
From: Liliana Sanfilippo <liliana.sanfilippo@uni-bielefeld.de>
Date: Tue, 24 Sep 2024 15:40:50 +0200
Subject: [PATCH] scrollTo

---
 src/contents/judging.tsx | 20 ++++++++++++++------
 src/pages.ts             | 22 +++++++++++-----------
 2 files changed, 25 insertions(+), 17 deletions(-)

diff --git a/src/contents/judging.tsx b/src/contents/judging.tsx
index 75eba9c1..30903498 100644
--- a/src/contents/judging.tsx
+++ b/src/contents/judging.tsx
@@ -1,16 +1,24 @@
-import { H2 } from "../components/Headings";
+import { LoremMedium } from "../components/Loremipsum";
+import { Section } from "../components/sections";
 import { useTabNavigation } from "../utils/TabNavigation";
 
 export function Judging() {
   useTabNavigation();
     return (
       <>
-        <H2 text="Overview" id="overview"/>
-        <H2 text="Best New Part" id="newpart"/>
+        <Section title="Overview" id="Overview">
+          <LoremMedium/>
+        </Section>
+        <Section title="Best New Part" id="Best New Part">
+          <LoremMedium/>
+        </Section>
+        <Section title="Safety and Security" id="Safety and Security">
+          <LoremMedium/>
+        </Section>
+        <Section title="Best Integrated Human Practice" id="Best Integrated Human Practice">
+          <LoremMedium/>
+        </Section>
 
-        <H2 text="Safety and Security" id="safety"/>
-
-        <H2 text="Best Integrated Human Practice" id="ihp"/>
       </>
     );
   }
diff --git a/src/pages.ts b/src/pages.ts
index 34ee7577..5d9a5f38 100644
--- a/src/pages.ts
+++ b/src/pages.ts
@@ -369,7 +369,7 @@ export const NavPages: (Page | PageRef | Folder)[] = [
         {
           name: "Introduction",
           title: "Introduction",
-          path: "/human-practices?tab=Introduction"
+          path: "/human-practices?scrollTo=Introduction"
         },
         {
           name: "Integrated Human Practices",
@@ -382,27 +382,27 @@ export const NavPages: (Page | PageRef | Folder)[] = [
         {
           name: "Feedback and Implementation",
           title: "Feedback and Implementation",
-          path: "/human-practices?tab=Integrated Human Practices3"
+          path: "/human-practices?scrollTo=Integrated Human Practices3"
         },
         {
           name: "Public Engagement",
           title: "Education and Outreach",
-          path: "/human-practices?tab=Further Engagement1H"
+          path: "/human-practices?scrollTo=Further Engagement1H"
         },
         {
           name: "Education",
           title: "Education and Outreach",
-          path: "/human-practices?tab=Further Engagement2H"
+          path: "/human-practices?scrollTo=Further Engagement2H"
         },
         {
           name: "Collaboration",
           title: "Collaboration",
-          path: "/human-practices?tab=Further Engagement4H"
+          path: "/human-practices?scrollTo=Further Engagement4H"
         },
         {
           name: "Partnerships",
           title: "Partnerships",
-          path: "/human-practices?tab=Further Engagement5H"
+          path: "/human-practices?scrollTo=Further Engagement5H"
         },
       ]
     },
@@ -412,22 +412,22 @@ export const NavPages: (Page | PageRef | Folder)[] = [
         {
           name: "Overview",
           title: "Judging",
-          path: "/judging?tab=overview",
+          path: "/judging?scrollTo=Overview",
         },
         {
           name: "Best New Part",
           title: "Judging",
-          path: "/judging?tab=newpart",
+          path: "/judging?scrollTo=Best New Part",
         },
         {
           name: "Safety & Security",
           title: "Judging",
-          path: "/judging?tab=safety",
+          path: "/judging?scrollTo=Safety and Security",
         },
         {
           name: "Best Integrated Human Practice",
           title: "Judging",
-          path: "/judging?tab=ihp",
+          path: "/judging?scrollTo=Best Integrated Human Practice",
         },
       ]
     },
@@ -445,7 +445,7 @@ export const NavPages: (Page | PageRef | Folder)[] = [
           {
             name: "BFH European MeetUp",
             title: "MeetUp",
-            path: "contribution/?tab=bfh"
+            path: "contribution/?scrollTo=BFH European MeetUp"
           }
           ]
     },
-- 
GitLab