website: add homepage example pages

This commit is contained in:
Emmanuel Pelletier
2024-05-16 11:34:14 +02:00
parent 6aeaef9e1a
commit 1d7f52fce2
6 changed files with 157 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
---
import { jsx as _jsx } from "react/jsx-runtime"
import HomepageExample from "@/components/HomepageExample.astro"
---
<HomepageExample
title="contenu additionnel"
props={{
description: _jsx("div", {
children: [
_jsx("p", {
children: "Il est possible d'ajouter une description en dessous de la tagline.",
style: { marginBottom: "0.5rem" },
}),
_jsx("a", {
href: "#",
className: "fr-btn fr-btn--secondary",
children: "Comment utiliser ce service ?",
}),
],
}),
children: _jsx("div", {
children: [
_jsx("h2", {
children: "Contenu personnalisé",
}),
_jsx("p", {
children:
"Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis beatae, quia eius voluptatem repudiandae quisquam a magnam obcaecati labore dolor ad vitae, omnis iusto deleniti error eveniet maxime! Consectetur, sint?",
}),
],
}),
}}
/>

View File

@@ -0,0 +1,6 @@
---
import { jsx as _jsx } from "react/jsx-runtime"
import HomepageExample from "@/components/HomepageExample.astro"
---
<HomepageExample title="par défaut" />

View File

@@ -0,0 +1,15 @@
---
import { jsx as _jsx } from "react/jsx-runtime"
import { HomepageEmailOrProconnect } from "@gouvfr-lasuite/integration"
import HomepageExample from "@/components/HomepageExample.astro"
---
<HomepageExample
title="connexion email + proconnect"
props={{
children: _jsx(HomepageEmailOrProconnect, {
proconnectUrl: "~~replace~~",
emailForm: { action: "~~replace~~" },
}),
}}
/>

View File

@@ -0,0 +1,14 @@
---
import { jsx as _jsx } from "react/jsx-runtime"
import { HomepageEmail } from "@gouvfr-lasuite/integration"
import HomepageExample from "@/components/HomepageExample.astro"
---
<HomepageExample
title="connexion email"
props={{
children: _jsx(HomepageEmail, {
action: "~~replace~~",
}),
}}
/>