This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Julien Bouquillon
committed
Mar 24, 2022
1 parent
1808efd
commit 0eeb6a6
Showing
8 changed files
with
165 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from "react"; | ||
import { ComponentStory, ComponentMeta } from "@storybook/react"; | ||
|
||
import Declaration from "./"; | ||
|
||
export default { | ||
title: "Déclaration d'accessibilité", | ||
component: Declaration, | ||
} as ComponentMeta<typeof Declaration>; | ||
|
||
const Template: ComponentStory<typeof Declaration> = (args) => ( | ||
<Declaration {...args} /> | ||
); | ||
|
||
export const Default = Template.bind({}); | ||
Default.args = {}; | ||
|
||
export const SomeDeclaration = Template.bind({}); | ||
SomeDeclaration.args = { | ||
produit: "NOUVEAU PRODUIT", | ||
organisme: "SERVICE DE XXXXXXX", | ||
email: "contact@example.fr", | ||
conformite: "partiellement conforme", | ||
audited: true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
const Declaration = ({ | ||
produit = "[PRODUIT]", | ||
organisme = "Fabrique numérique des ministères sociaux", | ||
date = "9 décembre 2021", | ||
conformite = "non conforme", | ||
audited = false, | ||
email = "contact@fabrique.social.gouv.fr", | ||
}) => { | ||
return ( | ||
<div> | ||
<h1>Déclaration d’accessibilité</h1> | ||
<p> | ||
<span>{produit}</span> s’engage à rendre son service accessible, | ||
conformément à{" "} | ||
<a href="https://www.legifrance.gouv.fr/loda/article_lc/LEGIARTI000037388867/"> | ||
l’article 47 de la loi n° 2005-102 du 11 février 2005. | ||
</a> | ||
</p> | ||
<p> | ||
Cette déclaration d’accessibilité s’applique à <span>{organisme}</span>. | ||
</p> | ||
<h2>État de conformité</h2> | ||
<p> | ||
<span>{produit}</span> est{" "} | ||
<b> | ||
<span data-printfilter="lowercase">{conformite}</span> avec le{" "} | ||
<span data-negate="">RGAA 4.1</span> | ||
</b> | ||
.{!audited && <span>Le site n’a encore pas été audité.</span>} | ||
</p> | ||
<h2>Contenus non accessibles</h2> | ||
<h2>Établissement de cette déclaration d’accessibilité</h2> | ||
<p> | ||
Cette déclaration a été établie le{" "} | ||
<b> | ||
<span>{date}</span> | ||
</b> | ||
. | ||
</p> | ||
<h2>Amélioration et contact</h2> | ||
<p> | ||
Si vous n’arrivez pas à accéder à un contenu ou à un service, vous | ||
pouvez contacter le responsable de <span>{organisme}</span> pour être | ||
orienté vers une alternative accessible ou obtenir le contenu sous une | ||
autre forme. | ||
</p> | ||
<ul className="basic-information feedback h-card"> | ||
<li> | ||
E-mail : <a href={`mailto:${email}`}>{email}</a> | ||
</li> | ||
</ul> | ||
<h2>Voie de recours</h2> | ||
<p> | ||
Cette procédure est à utiliser dans le cas suivant : vous avez signalé | ||
au responsable du site internet un défaut d’accessibilité qui vous | ||
empêche d’accéder à un contenu ou à un des services du portail et vous | ||
n’avez pas obtenu de réponse satisfaisante. | ||
</p> | ||
<p>Vous pouvez :</p> | ||
<ul> | ||
<li> | ||
Écrire un message au{" "} | ||
<a href="https://formulaire.defenseurdesdroits.fr/"> | ||
Défenseur des droits | ||
</a> | ||
</li> | ||
<li> | ||
Contacter{" "} | ||
<a href="https://www.defenseurdesdroits.fr/saisir/delegues"> | ||
le délégué du Défenseur des droits dans votre région | ||
</a> | ||
</li> | ||
<li> | ||
Envoyer un courrier par la poste (gratuit, ne pas mettre de timbre) : | ||
<br /> | ||
Défenseur des droits | ||
<br /> | ||
Libre réponse 71120 75342 Paris CEDEX 07 | ||
</li> | ||
</ul> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Declaration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { DeclarationAccessibilite } from "@components"; | ||
import { Alert } from "@dataesr/react-dsfr"; | ||
import type { NextPage } from "next"; | ||
import { NextSeo } from "next-seo"; | ||
import React from "react"; | ||
|
||
const Accessibilite: NextPage = () => { | ||
return ( | ||
<> | ||
<NextSeo | ||
title="Template | Déclaration d'accessibilité" | ||
description="Déclaration d'accessibilité de l'application template." | ||
additionalLinkTags={[ | ||
{ | ||
rel: "icon", | ||
href: "/favicon.ico", | ||
}, | ||
]} | ||
/> | ||
<div className="fr-container fr-my-6w"> | ||
<Alert | ||
description={ | ||
<div> | ||
Utilisez le{" "} | ||
<a href="https://betagouv.github.io/a11y-generateur-declaration/#create"> | ||
générateur de déclaration | ||
</a> | ||
. | ||
</div> | ||
} | ||
title={<div>Cette page doit être mise à jour</div>} | ||
type="info" | ||
/> | ||
<br /> | ||
<DeclarationAccessibilite /> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default Accessibilite; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters