diff --git a/layouts/page.tsx b/layouts/page.tsx index 75cb8a0c5..ce88763a8 100644 --- a/layouts/page.tsx +++ b/layouts/page.tsx @@ -2,6 +2,7 @@ import React, { PropsWithChildren } from 'react'; import { Footer, PreFooter, Header, Meta, DocHeader } from '../components'; import { Question } from '../uiComponents/question'; +import { AlertFusion } from '../uiComponents/alertFusion'; interface IProps { title: string; @@ -35,6 +36,7 @@ const Page: React.FC> = ({ canonical={canonical} /> {useDocHeader ? :
} +
{children}
{usePreFooter && } diff --git a/uiComponents/alertFusion/index.tsx b/uiComponents/alertFusion/index.tsx new file mode 100644 index 000000000..e638edb87 --- /dev/null +++ b/uiComponents/alertFusion/index.tsx @@ -0,0 +1,110 @@ +import React from 'react'; + +export const AlertFusion: React.FC<{}> = () => ( + <> +
+
+
+

⚠️ Le site API.gouv.fr fusionne dans le catalogue unique Data.gouv.fr : Pour découvrir les nouvelles API et obtenir les informations les plus à jour, rendez-vous sur + ⇢ data.gouv.fr/api. +

+
+
+
+ + + +);