Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add footer pages #83

Merged
merged 8 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions components/layout/CustomFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function CustomFooter() {
<Footer
accessibility="partially compliant"
accessibilityLinkProps={{
href: '/Main/Accessibilite'
href: '/accessibilite'
}}
brandTop={brandTop}
contentDescription="Vos démarches essentielles est un service proposé par l'équipe design des services numériques (DesignGouv) de la direction interministérielle du numérique (DINUM)."
Expand All @@ -23,13 +23,10 @@ export function CustomFooter() {
title: 'Accueil - Vos démarches essentielles'
}}
personalDataLinkProps={{
href: '/Main/CGU'
href: '/cgu'
}}
termsLinkProps={{
href: '/Main/CGU#HMentionslE9gales'
}}
websiteMapLinkProps={{
href: '/Main/plan-site'
href: '/legalNotice'
}}
bottomItems={[{ text: 'Contact', linkProps: { href: '/contact' } }]}
/>
Expand Down
10 changes: 6 additions & 4 deletions components/layout/SocialNetworks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ export function SocialNetworks(props: Props) {
return (
<div className={cx(classes.root)}>
<div className={cx(fr.cx('fr-container'), classes.content)}>
<div className={cx(classes.leftSection)}>
<h4 className={cx(classes.leftSection)}>
Suivez-nous sur les réseaux sociaux
</div>
</h4>
<ul className={cx(classes.rightSection)}>
<li>
<a
href="https://twitter.com/_DINUM"
href="https://twitter.com/Numerique_Gouv"
target="_blank"
rel="noreferrer"
title="Compte Twitter"
Expand Down Expand Up @@ -59,12 +59,14 @@ const useStyles = makeStyles()(theme => ({
content: {
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
paddingTop: fr.spacing('10v'),
paddingBottom: fr.spacing('10v')
},
leftSection: {
fontWeight: 700,
fontSize: fr.typography[22].style.fontSize
fontSize: fr.typography[22].style.fontSize,
marginBottom: 0
},
rightSection: {
listStyle: 'none',
Expand Down
6 changes: 5 additions & 1 deletion components/top250/table/ProcedureMobileCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ export function ProcedureMobileCard(props: Props) {

if (!field) return <></>;
if (isProactive && field.slug === 'satisfaction')
return <IndicatorProactive />;
return (
<div key={index}>
<IndicatorProactive />
</div>
);
if (isProactive && field.slug !== 'online') return <></>;

const canBeSeen = index <= 4 || toogleSwitch;
Expand Down
246 changes: 246 additions & 0 deletions pages/accessibilite.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
import { fr } from '@codegouvfr/react-dsfr';
import Head from 'next/head';
import React from 'react';
import { ACCESSIBILITE } from '../utils/content';
import { makeStyles } from '@codegouvfr/react-dsfr/tss';

const Accessibility = () => {
const { cx, classes } = useStyles();

return (
<>
<Head>
<title>Accessibilité | Je donne mon avis</title>
<meta
name="description"
content={`Accessibilité | Je donne mon avis`}
/>
</Head>
<div
className={fr.cx(
'fr-container',
'fr-col-lg-10',
'fr-col-xl-8',
'fr-pt-20v',
'fr-pb-8v'
)}
>
<div
className={fr.cx(
'fr-grid-row',
'fr-grid-row--gutters',
'fr-grid-row--middle'
)}
>
<div className={cx(classes.accessibilityWrapper)}>
<h1>Accessibilité</h1>
<section>
<h2>Déclaration d&apos;accessibilité</h2>
<p>{ACCESSIBILITE.declaration}</p>
<p>{ACCESSIBILITE.introStrategy}</p>
<ul>
{ACCESSIBILITE.strategy.map((item, index) => (
<li key={index}>
<a href={item.link} target="blank">
{item.text}
</a>
</li>
))}
</ul>
<p>{ACCESSIBILITE.strategyEnd}</p>
</section>
<section>
<h3>État de conformité</h3>
<p>{ACCESSIBILITE.conformity}</p>
</section>
<section>
<h3>Résultats des tests</h3>
<p>{ACCESSIBILITE.testResultIntro}</p>
<ul>
{ACCESSIBILITE.testResults.map((item, index) => (
<li key={index}>{item}</li>
))}
</ul>
</section>
<section>
<h3>Contenus non accessibles</h3>
<p>{ACCESSIBILITE.nonAccessibleContent.contentIntro}</p>
<p>Images</p>
<ul>
{ACCESSIBILITE.nonAccessibleContent.images.map(
(item, index) => (
<li key={index}>{item}</li>
)
)}
</ul>
<p>Couleurs</p>
<ul>
{ACCESSIBILITE.nonAccessibleContent.colors.map(
(item, index) => (
<li key={index}>{item}</li>
)
)}
</ul>
<p>Scripts</p>
<p>Dans la page &apos;Observatoire&apos; :</p>
<ul>
{ACCESSIBILITE.nonAccessibleContent.scripts.map(
(item, index) => (
<li key={index}>{item}</li>
)
)}
</ul>
<p>Dans la page “Conditions générales d’utilisation” : </p>
<ul>
{ACCESSIBILITE.nonAccessibleContent.cgu.map((item, index) => (
<li key={index}>{item}</li>
))}
</ul>
<p>Structuration</p>
<ul>
{ACCESSIBILITE.nonAccessibleContent.structuration.map(
(item, index) => (
<li key={index}>{item}</li>
)
)}
</ul>
<p>Présentation de l’information</p>
<ul>
{ACCESSIBILITE.nonAccessibleContent.presentation.map(
(item, index) => (
<li key={index}>{item}</li>
)
)}
</ul>
<p>Formulaires</p>
<ul>
{ACCESSIBILITE.nonAccessibleContent.forms.map((item, index) => (
<li key={index}>{item}</li>
))}
</ul>
<p>Navigation</p>
<ul>
{ACCESSIBILITE.nonAccessibleContent.navigation.map(
(item, index) => (
<li key={index}>{item}</li>
)
)}
</ul>
</section>
<section>
<h3>Dérogations pour charge disproportionnée</h3>
<p>{ACCESSIBILITE.disproportionateBurden}</p>
</section>
<section>
<h3>
Contenus non soumis à l&apos;obligation d&apos;accessibilité
</h3>
<p>{ACCESSIBILITE.notSubjectContent}</p>
</section>
<section>
<h3>Établissement de cette déclaration d&apos;accessibilité</h3>
<p>{ACCESSIBILITE.establishment}</p>
</section>
<section>
<p>Technologies utilisées pour la réalisation du site web</p>
<ul>
{ACCESSIBILITE.technologies.map((tech, index) => (
<li key={index}>{tech}</li>
))}
</ul>
<p>{ACCESSIBILITE.testPageIntro}</p>
</section>
<section>
<ul>
{ACCESSIBILITE.testTools.map((tool, index) => (
<li key={index}>{tool}</li>
))}
</ul>
</section>
<section>
<p>{ACCESSIBILITE.toolsIntro}</p>

<ul>
{ACCESSIBILITE.toolsEval.map((tool, index) => (
<li key={index}>{tool}</li>
))}
</ul>
</section>
<section>
<p>{ACCESSIBILITE.verifiedPagesIntro}</p>
<ul>
{ACCESSIBILITE.verifiedPages.map((page, index) => (
<li key={index}>
<a href={page.link}>{page.text}</a>
</li>
))}
</ul>
</section>
<section>
<h3>Droit à compensation</h3>
<p>{ACCESSIBILITE.rightToCompensation}</p>
</section>
<section>
<h3>Amélioration et contact</h3>
<p>{ACCESSIBILITE.contact}</p>
</section>
<section>
<h3>Défenseur des droits</h3>
<p>{ACCESSIBILITE.defenderOfRightsIntro}</p>
<ul>
<li>
un{' '}
<a
href="https://www.defenseurdesdroits.fr/nous-contacter-355"
target="blank"
>
formulaire de contact ;
</a>
</li>
<li>
la{' '}
<a
href="https://www.defenseurdesdroits.fr/carte-des-delegues"
target="blank"
>
liste des délégués de votre région{' '}
</a>
avec leurs informations de contact directs ;
</li>
<li>{ACCESSIBILITE.defenderOfRights.phone}</li>
<li>{ACCESSIBILITE.defenderOfRights.postal}</li>
</ul>
</section>
</div>
</div>
</div>
</>
);
};

const useStyles = makeStyles()(theme => ({
accessibilityWrapper: {
paddingLeft: '0.5rem',
paddingRight: '0.5rem',

[fr.breakpoints.up('lg')]: {
paddingLeft: '1.5rem',
paddingRight: '1.5rem'
},
h1: {
...fr.typography[5].style,
marginBottom: '3rem'
},
h3: {
marginBottom: '0.5rem'
},
section: {
marginBottom: '1.5rem'
},
ul: {
paddingInlineStart: '2.5rem'
}
}
}));

export default Accessibility;
Loading