11import about from "../assets/about.svg" ;
22import { Background } from "../components/Background.jsx" ;
33import { InfoLinkField } from "../components/InfoLinkField.jsx" ;
4- import { useEffect } from "react" ;
54import { Link } from "react-router" ;
5+ import { useFragmentOpen } from "../hooks/useFragmentOpen.js" ;
66
77export const About_EN = ( ) => {
88
9- useEffect ( ( ) => {
10- window . scroll ( 0 , 0 ) ;
11- } , [ ] ) ;
9+ const { openId, handleToggle} = useFragmentOpen ( ) ;
1210
1311 return (
1412 < div className = "about-container" >
@@ -31,12 +29,15 @@ export const About_EN = () => {
3129 </ div >
3230 < div className = "card bottom with-collapse-fields" >
3331 < h2 > How do you use eduID?</ h2 >
34- < InfoLinkField title = "1. Create an eduID" >
32+ < InfoLinkField id = "1-create-an-eduid" title = "1. Create an eduID"
33+ isOpen = { openId === "1-create-an-eduid" } onToggle = { handleToggle } >
3534 < p > Click 'Create eduID' and follow the steps.</ p >
3635 < p > Use a < strong > personal email address</ strong > that you will continue to use, even if
3736 you change schools or jobs.</ p >
3837 </ InfoLinkField >
39- < InfoLinkField title = "2. Verify your identity with an official party" >
38+ < InfoLinkField id = "2-verify-your-identity-with-an-official-party"
39+ title = "2. Verify your identity with an official party"
40+ isOpen = { openId === "2-verify-your-identity-with-an-official-party" } onToggle = { handleToggle } >
4041 < p > In most cases, you'll need to verify your identity before you can use your eduID. You
4142 can do this in one of the following ways:</ p >
4243 < p className = "section-label top" > < strong > With your Dutch educational or research institution</ strong > </ p >
@@ -64,7 +65,9 @@ export const About_EN = () => {
6465 </ ul >
6566 < p > < Link to = "/verify" > Learn more about verifying your eduID</ Link > </ p >
6667 </ InfoLinkField >
67- < InfoLinkField title = "3. Log in to websites and other online services" >
68+ < InfoLinkField id = "3-log-in-to-websites-and-other-online-services"
69+ title = "3. Log in to websites and other online services"
70+ isOpen = { openId === "3-log-in-to-websites-and-other-online-services" } onToggle = { handleToggle } >
6871 < p > With your eduID you can log in to websites and other online services in the
6972 Netherlands. We recommend using the eduID app, as it is the most secure and convenient
7073 option. The app lets you log in without a password, and two-factor authentication
0 commit comments