diff --git a/client/src/pages/home.jsx b/client/src/pages/home.jsx index 6d2f9289..a3bdd221 100644 --- a/client/src/pages/home.jsx +++ b/client/src/pages/home.jsx @@ -1,3 +1,4 @@ +import { useState } from 'react'; import { Col, Container, Row, Title } from '@dataesr/dsfr-plus'; import { FormattedMessage } from 'react-intl'; @@ -8,22 +9,34 @@ import PublicationsTile from '../components/tiles/publications'; import Header from '../layout/header'; export default function Home() { + const [isExpanded, setIsExpanded] = useState(false); + + const toggleExpand = () => { + setIsExpanded(!isExpanded); + }; + return ( <>
- + + <span className="fr-icon-arrow-right-s-fill" aria-hidden="true" /> <FormattedMessage id="feedback-title" /> -

+

-

-

- + {isExpanded && ( +

+ +

+ )} +

- + @@ -31,12 +44,15 @@ export default function Home() { +
+ + <span className="fr-icon-arrow-right-s-fill" aria-hidden="true" /> <FormattedMessage id="corpus-title" /> - +