Skip to content

Commit

Permalink
Merge pull request #1830 from BaseAdresseNationale/vsagniez/change-menu
Browse files Browse the repository at this point in the history
Refonte:Update link menu
  • Loading branch information
nkokla authored Sep 20, 2024
2 parents 96c8ff1 + eee9e83 commit bdcc2a6
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 25 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { TextWrapper } from './page.styled'
import type { DataType } from '@/lib/markdown'

export default async function Home() {
const { contentHtml, data }: { contentHtml?: string, data?: DataType } = await getMarkdown('decouvrir_la_BAN') || {}
const { contentHtml, data }: { contentHtml?: string, data?: DataType } = await getMarkdown('decouvrir-la-BAN') || {}

return (
<>
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default async function Home() {
footerLinks={[
{
label: 'Découvrir la Base Adresse Nationale',
href: '/decouvrir_la_BAN',
href: '/decouvrir-la-BAN',
},
]}
>
Expand Down
6 changes: 3 additions & 3 deletions src/data/sample-ban-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Vous souhaitez utiliser la base adresse nationale, explorez les différentes possibilités.",
"picto": "./img/picto/map-location.svg",
"link": {
"href": "/decouvrir_la_BAN",
"href": "/decouvrir-la-BAN",
"target": "_self"
}
},
Expand All @@ -13,7 +13,7 @@
"description": "Vous avez besoins de données toujours à jour ? Découvrez les APIs.",
"picto": "./img/picto/api-and-cloud.svg",
"link": {
"href": "#",
"href": "/outils",
"target": "_self"
}
},
Expand All @@ -22,7 +22,7 @@
"description": "Ils est possible de télécharger les données afin de les héberger et de les utiliser chez vous.",
"picto": "./img/picto/bdd.svg",
"link": {
"href": "#",
"href": "/donnees-nationales",
"target": "_self"
}
}
Expand Down
39 changes: 19 additions & 20 deletions src/layouts/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,13 @@ export const navEntries: MainNavigationProps.Item[] = [
menuLinks: [
{
text: 'Découvrir la Base Adresse Nationale',
linkProps: { href: '/decouvrir_la_BAN' },
linkProps: { href: '/decouvrir-la-BAN' },
},
{ text: 'Utiliser la BAN', linkProps: { href: '#' } },
{ text: 'Documentation', linkProps: { href: '#' } },
{
text: 'Documentation technique',
linkProps: { href: '#' },
},
{ text: 'Vidéos', linkProps: { href: '#' } },
{ text: 'État du déploiement', linkProps: { href: '#' } },
{ text: 'Statistiques', linkProps: { href: '#' } },
{ text: 'Utiliser la BAN', linkProps: { href: '/utiliser-la-ban' } },
{ text: 'Documentation', linkProps: { href: '/ressources' } },
// {text: 'Documentation technique',linkProps: { href: '#' }, },
{ text: 'État du déploiement', linkProps: { href: '/deploiement-bal' } },
{ text: 'Statistiques', linkProps: { href: '/stats' } },
],
},
{
Expand All @@ -66,7 +62,10 @@ export const navEntries: MainNavigationProps.Item[] = [
},
{
text: 'Application Mes adresses',
linkProps: { href: '#' },
linkProps: {
href: 'https://mes-adresses.data.gouv.fr/',
target: '_blank',
},
},
{ text: 'Formation en ligne', linkProps: { href: '/formation-en-ligne' } },
],
Expand All @@ -76,20 +75,20 @@ export const navEntries: MainNavigationProps.Item[] = [
menuLinks: [
{
text: 'Tous les outils et APIs',
linkProps: { href: '#' },
linkProps: { href: '/outils' },
},
{
text: 'Carte de la Base adresse nationale',
linkProps: { href: '#' },
linkProps: { href: '/base-adresse-nationale' },
},
{ text: 'Certificat d’adresse', linkProps: { href: '#' } },
{ text: 'Signalement', linkProps: { href: '#' } },
// { text: 'Certificat d’adresse', linkProps: { href: '#' } },
// { text: 'Signalement', linkProps: { href: '#' } },
{
text: 'Télécharger les données',
linkProps: { href: '#' },
linkProps: { href: '/donnees-nationales' },
},
{ text: 'Validateur BAL', linkProps: { href: '#' } },
{ text: 'Géocodeur', linkProps: { href: '#' } },
{ text: 'Validateur BAL', linkProps: { href: '/validateur' } },
// { text: 'Géocodeur', linkProps: { href: '#' } },
{ text: 'Publication des adresses', linkProps: { href: '#' } },
{
text: 'Supervision BAN/BAL',
Expand All @@ -98,7 +97,7 @@ export const navEntries: MainNavigationProps.Item[] = [
target: '_blank',
},
},
{ text: 'Fantoir', linkProps: { href: '#' } },
// { text: 'Fantoir', linkProps: { href: '#' } },
],
},
{
Expand All @@ -125,7 +124,7 @@ export const navEntries: MainNavigationProps.Item[] = [
text: 'Sociétés partenaires',
linkProps: { href: '/communaute/societes-partenaires' },
},
{ text: 'Nos usagers', linkProps: { href: '#' } },
{ text: 'Nos usagers', linkProps: { href: '/usages' } },
],
},
]
Expand Down

0 comments on commit bdcc2a6

Please sign in to comment.