Skip to content

Commit

Permalink
fix: header title
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-van-woerkens committed Aug 10, 2023
1 parent aefe1eb commit c6b5448
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 40 deletions.
11 changes: 5 additions & 6 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,20 @@ export default function Header() {
<DSFRHeader
brandTop={
<>
LA FABRIQUE
MINISTÈRES
<br />
DES MINISTÈRES SOCIAUX
SOCIAUX
</>
}
homeLinkProps={{
href: "/",
title:
"Accueil - Nom de l'entité (ministère, secrétariat d'état, gouvernement)",
title: "Accueil - La Fabrique Numérique",
}}
id="fr-header-header-with-quick-access-items-nav-items-and-search-engine"
navigation={<Navigation />}
quickAccessItems={quickAccessItems}
serviceTagline="Un incubateur betagouv 🥸"
serviceTitle="La Fabrique des Ministères Sociaux"
serviceTagline="L'incubateur des ministères sociaux"
serviceTitle="La Fabrique Numérique"
/>
)
}
41 changes: 7 additions & 34 deletions src/utils/navigationItems.ts
Original file line number Diff line number Diff line change
@@ -1,40 +1,6 @@
import { type MainNavigationProps } from "@codegouvfr/react-dsfr/MainNavigation"
import { type HeaderProps } from "@codegouvfr/react-dsfr/Header"

const navigationItems: MainNavigationProps.Item[] = [
{
menuLinks: [
{
linkProps: {
href: "/startups?categorie=travail",
target: "_self",
},
text: "Travail",
},
{
linkProps: {
href: "/startups?categorie=solidarites",
target: "_self",
},
text: "Solidarités",
},
{
linkProps: {
href: "/startups?categorie=sante",
target: "_self",
},
text: "Santé",
},
{
linkProps: {
href: "/startups",
target: "_self",
},
text: "Tout voir",
},
],
text: "Nos startups",
},
{
menuLinks: [
{
Expand All @@ -61,6 +27,13 @@ const navigationItems: MainNavigationProps.Item[] = [
],
text: "La Fabrique",
},
{
linkProps: {
href: "/startups",
target: "_self",
},
text: "Nos startups",
},
{
linkProps: {
href: "/proposez-vous-idees",
Expand Down

0 comments on commit c6b5448

Please sign in to comment.