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 ressource page #1887

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
Binary file added public/ressources-et-documentations/book.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/ressources-et-documentations/community.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/ressources-et-documentations/logo-bal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/ressources-et-documentations/logo-ban.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
112 changes: 112 additions & 0 deletions src/app/ressources-et-documentations/page.styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
'use client'

import styled from 'styled-components'

export const StyledPage = styled.div`
.on-this-page {
display: flex;
align-items: center;
> div {
flex: 1;
padding: 2rem;

}
.text-wrapper {
ul {
margin: 2rem 0;
padding: 2rem 0;
border: 1px solid ${({ theme }) => theme.colors.grey.border};
border-left: none;
border-right: none;
}

.logo-wrapper {
display: flex;
justify-content: space-around ;
}
}
}

.stay-tuned {
padding-bottom: 0 !important;
> div {
display: flex;

> .text-wrapper {
text-align: right;
margin-right: 4rem;

> i::before {
height: 2.5rem;
width: 2.5rem;
margin-bottom: 1rem;
}
}

> .illustration-wrapper {
height: 310px;
width: 470px;
flex-shrink: 0;
position: relative;

> img {
position: absolute;
bottom: -38px;
}
}
}

}

.guide-section {
> div {
display: flex;
align-items: center;

> .text-wrapper {
flex-basis: 60%;

> button {
margin: 2rem 0;
}
> div {
margin-bottom: 2rem;
> h2 {
font-size: 1.5rem;
margin-bottom: 0.1rem;
}
> legend {
font-size: 0.8rem;
color: ${({ theme }) => theme.colors.grey.main};

}
}
}

> .illustration-wrapper {
padding: 2rem;
flex-basis: 40%;
display: flex;
justify-content: center;
}
}
}

@media screen and (max-width: ${props => props.theme.breakpoints.md}) {
.illustration-wrapper {
display: none;
}

.stay-tuned {
padding-bottom: 1.5rem !important;
> div {
display: flex;

> .text-wrapper {
text-align: initial;
margin-right: 0;
}
}
}
}
`
153 changes: 153 additions & 0 deletions src/app/ressources-et-documentations/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
import ResponsiveImage from '@/components/ResponsiveImage'
import Section from '@/components/Section'
import { StyledPage } from './page.styles'
import CardWrapper from '@/components/CardWrapper'
import Card from '@codegouvfr/react-dsfr/Card'
import SectionTilesList from '@/components/SectionTilesList'
import Button from '@codegouvfr/react-dsfr/Button'
import Alert from '@codegouvfr/react-dsfr/Alert'
import Link from 'next/link'

const ressourcesData = [
{
title: 'La documentation',
description: 'Cette documentation vous fournit les informations relatives à la Base Adresse Nationale, au format Base Adresse Locale, ainsi que des FAQ et conseils pratiques.',
picto: '/ressources-et-documentations/book.png',
link: {
href: '#',
target: '_self',
},
},
{
title: 'Les guides',
description: 'Pour vous accompagner dans la gestion des adresses de votre commune, vous trouverez sur cette page des guides régulièrement mis à jour.',
picto: '/ressources-et-documentations/document-download.png',
link: {
href: '#',
target: '_self',
},
},
{
title: 'La FAQ',
description: 'La F.A.Q répond aux questions les plus courantes, posées lors des webinaires par les acteurs de la commune.',
picto: '/ressources-et-documentations/community.png',
link: {
href: '#',
target: '_self',
},
},
]

export default async function RessourcesPage() {
return (
<StyledPage>
<Section pageTitle="Ressources autour de l'adressage">
<div className="on-this-page">
<div className="illustration-wrapper">
<ResponsiveImage src="/ressources-et-documentations/ressources.png" alt="Illustration ressources et documentations" />
</div>
<div className="text-wrapper">
<div>
<b>Pour vous accompagner dans la gestion des adresses de votre commune,</b> vous trouverez sur cette page:
</div>
<ul>
<li>
<b>Des guides</b>
<div>Régulièrement mis à jour.</div>
</li>
<li>
<b>La documentation</b>
<div>Présentant la Base Adresse Nationale, les formats d’adresse ainsi que les services et outils accessibles sur le site.</div>
</li>
<li>
<b>Une FAQ</b>
<div>Répondant aux questions les plus courantes.</div>
</li>
</ul>
<div className="logo-wrapper">
<ResponsiveImage src="/ressources-et-documentations/logo-ban.png" alt="Logo BAN" style={{ height: 80, width: 180 }} />
<ResponsiveImage src="/ressources-et-documentations/logo-bal.png" alt="Logo BAL" style={{ height: 80, width: 140 }} />
</div>
</div>
</div>
</Section>
<SectionTilesList
data={ressourcesData}
id="ressources-adressage"
theme="primary"
/>
<Section theme="secondary" className="stay-tuned">
<div>
<div className="text-wrapper">
<i className="ri-information-line" />
<h2>Restez informés </h2>
<p>
Pour être tenu informé des mises à jour ou suggérer des évolutions, n’hésitez-pas à nous contacter.
</p>
<Button>
Contactez nous
</Button>
</div>
<div className="illustration-wrapper">
<ResponsiveImage src="/ressources-et-documentations/questions.png" alt="Illustration restez informés" style={{ width: 470 }} />
</div>
</div>
</Section>
<Section className="guide-section">
<div>
<div className="text-wrapper">
<div>
<h2>
Le guide de &quot;Mes Adresses&quot;
</h2>
<legend>
Version 8.2 - 01/06/2023
</legend>
</div>
<p>
&quot;Mes Adresses&quot; est un outil en ligne qui vous permet de gérer simplement vos adresses, de la constitution d’une Base Adresse Locale à sa mise à jour. Il est accessible sans compétences techniques et dispose d’un tutoriel embarqué.
</p>
<Link href="#" target="_blank">Le Guide de Mes Adresses est disponible dans un format texte en ligne</Link>
<Button iconId="fr-icon-download-line">Télécharger le guide</Button>
<Alert
description="Si vous téléchargez la version PDF, pensez à vérifier que vous disposez de la dernière version en vigueur. Le type de version et les dates de mises à jour figurent à la fin des PDF."
severity="info"
title="Les guides sont régulièrement actualisés"
/>
</div>
<div className="illustration-wrapper">
<ResponsiveImage src="/ressources-et-documentations/guide-mes-adresses.png" alt="Illustration guide Mes Adresses" style={{ width: 220, height: 300 }} />
</div>
</div>
</Section>
<Section theme="grey" className="guide-section">
<div>
<div className="illustration-wrapper">
<ResponsiveImage src="/ressources-et-documentations/guide-mes-adresses.png" alt="Illustration guide Mes Adresses" style={{ width: 220, height: 300 }} />
</div>
<div className="text-wrapper">
<div>
<h2>
Le guide des bonnes pratiques
</h2>
<b>à l’usage des communes et de leurs partenaires</b>
<legend>
Version 4.1 - 08/09/2023
</legend>
</div>
<p>
Les communes sont responsables de leurs adresses. Ce guide passe en revue les bonnes pratiques pour nommer, numéroter les voies et diffuser l’information en parfaite conformité avec les obligations légales et rien que les obligations légales.
</p>
<Link href="#" target="_blank">Le Guide des bonnes pratiques est disponible dans un format texte en ligne</Link>
<Button iconId="fr-icon-download-line">Télécharger le guide</Button>
<Alert
description="Si vous téléchargez la version PDF, pensez à vérifier que vous disposez de la dernière version en vigueur. Le type de version et les dates de mises à jour figurent à la fin des PDF."
severity="info"
title="Les guides sont régulièrement actualisés"
/>
</div>
</div>
</Section>
</StyledPage>
)
}
Loading