777 lines
26 KiB
TypeScript
777 lines
26 KiB
TypeScript
/** THEME */
|
|
import Button from "$/uwil/Button";
|
|
import ItemCard from "$/uwil/ItemCard";
|
|
import ActionSection from "$/uwil/ActionSection";
|
|
import Breadcrumbs from "$/uwil/Breadcrumbs";
|
|
import Footer from "$/uwil/Footer";
|
|
import GoToTop from "@/front/Components/Theme/GoToTop";
|
|
import Header from "$/uwil/Header/Header";
|
|
import HeroImage from "$/uwil/HeroImage";
|
|
import ListSectionTitle from "$/uwil/ListSectionTitle";
|
|
import PageHeader from "$/uwil/PageHeader";
|
|
import TripleColSection from "@/front/Components/Theme/Sections/TripleColSection";
|
|
import {
|
|
bgColors,
|
|
fonts,
|
|
sidePlacements,
|
|
simpleWeights,
|
|
verticalPlacements,
|
|
} from "../lib/constants";
|
|
import Section from "$/uwil/Section";
|
|
import CarouselSection from "../Components/Theme/Sections/CarouselSection";
|
|
import NutritionalValueList from "../Components/Theme/NutritionalValueList";
|
|
/** OTHER */
|
|
import React, { useState } from "react";
|
|
import { Link } from "@inertiajs/react";
|
|
import Filters from "../Components/Theme/Inputs/Filters";
|
|
|
|
function CopyButton({ code }: { code: string }) {
|
|
const [copied, setCopied] = useState(false);
|
|
|
|
const handleCopy = async () => {
|
|
await navigator.clipboard.writeText(code);
|
|
setCopied(true);
|
|
setTimeout(() => setCopied(false), 1500);
|
|
};
|
|
|
|
return (
|
|
<button
|
|
type="button"
|
|
onClick={handleCopy}
|
|
className="text-xs px-3 py-1 rounded bg-muted hover:bg-muted/70 transition"
|
|
>
|
|
{copied ? "Copié ✓" : "Copier"}
|
|
</button>
|
|
);
|
|
}
|
|
|
|
function DemoSection({
|
|
title,
|
|
code,
|
|
children,
|
|
}: {
|
|
title: string;
|
|
code?: string;
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<section className="space-y-4 py-10 border-b border-border">
|
|
<div className="flex items-center justify-between">
|
|
<h2 className="text-3xl font-bold">{title}</h2>
|
|
{code && <CopyButton code={code} />}
|
|
</div>
|
|
|
|
<div className="space-y-6">{children}</div>
|
|
</section>
|
|
);
|
|
}
|
|
|
|
export default function Demo() {
|
|
return (
|
|
<Section>
|
|
<Link href="/" className="underline text-blue-500">
|
|
Retour à la home
|
|
</Link>
|
|
<div className="space-y-4 relative">
|
|
{/* BUTTONS */}
|
|
<DemoSection
|
|
title="Boutons"
|
|
code={`<Button variant="default">
|
|
En savoir plus
|
|
</Button>`}
|
|
>
|
|
<div className="flex gap-2 items-center flex-wrap">
|
|
<Button variant="default">En savoir plus</Button>
|
|
<Button variant="default" isBold={false} font={fonts.DELIUS_SWASH}>
|
|
En savoir plus
|
|
</Button>
|
|
|
|
<Button
|
|
variant="tertiary"
|
|
icon={{
|
|
icon: "chevron-right",
|
|
placement: sidePlacements.RIGHT,
|
|
}}
|
|
>
|
|
En savoir plus
|
|
</Button>
|
|
|
|
<Button
|
|
variant="default"
|
|
icon={{
|
|
icon: "x",
|
|
placement: sidePlacements.LEFT,
|
|
}}
|
|
>
|
|
En savoir plus
|
|
</Button>
|
|
<Button
|
|
variant="inverted"
|
|
icon={{
|
|
icon: "chevron-left",
|
|
placement: sidePlacements.LEFT,
|
|
}}
|
|
>
|
|
En savoir plus
|
|
</Button>
|
|
</div>
|
|
<GoToTop />
|
|
</DemoSection>
|
|
|
|
{/* LISTES */}
|
|
<DemoSection
|
|
title="Cartes & Listes"
|
|
code={`<ListSectionTitle />
|
|
<div className="inline-grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 md:gap-10 lg:gap-16">
|
|
{["1", "2", "3", "4"].map((item) => {
|
|
return (
|
|
<div>
|
|
<ItemCard
|
|
image={{
|
|
alt: "alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg"
|
|
}}
|
|
title={{
|
|
text: "Œuf poché moulé",
|
|
}}
|
|
button={{
|
|
label: "Voir le produit",
|
|
href: "/ddd"
|
|
}}
|
|
/>
|
|
</div>
|
|
)
|
|
})}
|
|
<ItemCard
|
|
image={{
|
|
alt: "alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg"
|
|
}}
|
|
title={{
|
|
text: "Œuf poché moulé",
|
|
font: fonts.GOTHAM,
|
|
weight: simpleWeights.BOLD
|
|
}}
|
|
description={{
|
|
text: "Lorem Ipsum blablabla bla blabla blabl",
|
|
font: fonts.GOTHAM,
|
|
weight: simpleWeights.NORMAL
|
|
}}
|
|
/>
|
|
</div>
|
|
`}
|
|
>
|
|
<ListSectionTitle />
|
|
<div className="inline-grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 md:gap-10 lg:gap-16">
|
|
{["1", "2", "3", "4"].map(() => {
|
|
return (
|
|
<div>
|
|
<ItemCard
|
|
image={{
|
|
alt: "alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg",
|
|
}}
|
|
title={{
|
|
text: "Œuf poché moulé",
|
|
}}
|
|
button={{
|
|
label: "Voir le produit",
|
|
href: "/ddd",
|
|
}}
|
|
/>
|
|
</div>
|
|
);
|
|
})}
|
|
<ItemCard
|
|
image={{
|
|
alt: "alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg",
|
|
}}
|
|
title={{
|
|
text: "Œuf poché moulé",
|
|
font: fonts.GOTHAM,
|
|
weight: simpleWeights.BOLD,
|
|
}}
|
|
description={{
|
|
text: "Lorem Ipsum blablabla bla blabla blabl",
|
|
font: fonts.GOTHAM,
|
|
weight: simpleWeights.NORMAL,
|
|
}}
|
|
/>
|
|
</div>
|
|
</DemoSection>
|
|
|
|
<DemoSection
|
|
title="Sections d'action"
|
|
code={`
|
|
<ActionSection
|
|
text={{
|
|
text: "<strong>Lorem ipsum dolor sit amet consectetur adipisicing elit</strong>. Sequi placeat harum laboriosam facilis a odit sunt, vero doloribus voluptatum suscipit odio, esse."
|
|
}}
|
|
button={{
|
|
href: "#FIXME",
|
|
label: "Rejoignez-nous",
|
|
placement: verticalPlacements.TOP,
|
|
}}
|
|
variant={bgColors.BACKGROUND}
|
|
/>
|
|
`}
|
|
>
|
|
<ActionSection
|
|
text={{
|
|
text: "<strong>Lorem ipsum dolor sit amet consectetur adipisicing elit</strong>. Sequi placeat harum laboriosam facilis a odit sunt, vero doloribus voluptatum suscipit odio, esse.",
|
|
}}
|
|
button={{
|
|
href: "#FIXME",
|
|
label: "Rejoignez-nous",
|
|
placement: verticalPlacements.TOP,
|
|
}}
|
|
variant={bgColors.BACKGROUND}
|
|
/>
|
|
<ActionSection
|
|
text={{
|
|
font: fonts.DELIUS_SWASH,
|
|
text: "<strong>Lorem ipsum dolor sit amet consectetur adipisicing elit</strong>. Sequi placeat harum laboriosam facilis a odit sunt, vero doloribus voluptatum suscipit odio, esse.",
|
|
}}
|
|
button={{
|
|
href: "#FIXME",
|
|
label: "Nous contacter",
|
|
placement: verticalPlacements.BOTTOM,
|
|
}}
|
|
variant={bgColors.PRIMARY}
|
|
/>
|
|
</DemoSection>
|
|
|
|
<DemoSection
|
|
title="Breadcrumbs"
|
|
code={`
|
|
<Breadcrumbs
|
|
breadcrumbs={[
|
|
{
|
|
title: "Accueil",
|
|
url: "/"
|
|
}, {
|
|
title: "Ovoteam s'engage",
|
|
url: ""
|
|
}
|
|
]}
|
|
/>
|
|
`}
|
|
>
|
|
<Breadcrumbs
|
|
breadcrumbs={[
|
|
{
|
|
title: "Accueil",
|
|
url: "/",
|
|
},
|
|
{
|
|
title: "Ovoteam s'engage",
|
|
url: "",
|
|
},
|
|
]}
|
|
/>
|
|
</DemoSection>
|
|
|
|
<DemoSection
|
|
title="Header"
|
|
code={`
|
|
<PageHeader
|
|
title={{
|
|
text: "Ovoteam s'engage",
|
|
font: fonts.DELIUS_SWASH
|
|
}}
|
|
description={{
|
|
text: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Quo mollitia minus cum obcaecati necessitatibus? Molestias, harum. Sapiente eos ipsa ullam esse laborum id libero consectetur voluptate labore eaque. Optio, corporis?",
|
|
font: fonts.DELIUS_SWASH
|
|
}}
|
|
/>
|
|
`}
|
|
>
|
|
<PageHeader
|
|
title={{
|
|
text: "Ovoteam s'engage",
|
|
font: fonts.DELIUS_SWASH,
|
|
}}
|
|
description={{
|
|
text: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Quo mollitia minus cum obcaecati necessitatibus? Molestias, harum. Sapiente eos ipsa ullam esse laborum id libero consectetur voluptate labore eaque. Optio, corporis?",
|
|
font: fonts.DELIUS_SWASH,
|
|
}}
|
|
/>
|
|
</DemoSection>
|
|
|
|
<DemoSection
|
|
title="Hero avec image et texte"
|
|
code={`
|
|
<HeroImage
|
|
title={{
|
|
text: "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Nesciunt unde esse est maiores tempora, sequi, soluta officiis quae aliquid sit ducimus.",
|
|
font: fonts.DELIUS_SWASH,
|
|
}}
|
|
description={{
|
|
text: "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Alias commodi esse quas, ad dicta cumque est nemo officia repellat eum neque vel quos optio consectetur odit voluptatum laudantium itaque. Facere. Lorem, ipsum dolor sit amet consectetur adipisicing elit. Voluptatibus, quaerat. Illum odit vero voluptatibus eveniet minus. Repudiandae minus commodi temporibus voluptatibus quos quidem ut excepturi praesentium doloremque autem, eos laborum.",
|
|
font: fonts.DELIUS_SWASH
|
|
}}
|
|
image={{
|
|
alt: "Alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg"
|
|
}}
|
|
/>
|
|
`}
|
|
>
|
|
<HeroImage
|
|
title={{
|
|
text: "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Nesciunt unde esse est maiores tempora, sequi, soluta officiis quae aliquid sit ducimus.",
|
|
font: fonts.DELIUS_SWASH,
|
|
}}
|
|
description={{
|
|
text: "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Alias commodi esse quas, ad dicta cumque est nemo officia repellat eum neque vel quos optio consectetur odit voluptatum laudantium itaque. Facere. Lorem, ipsum dolor sit amet consectetur adipisicing elit. Voluptatibus, quaerat. Illum odit vero voluptatibus eveniet minus. Repudiandae minus commodi temporibus voluptatibus quos quidem ut excepturi praesentium doloremque autem, eos laborum.",
|
|
font: fonts.DELIUS_SWASH,
|
|
}}
|
|
image={{
|
|
alt: "Alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg",
|
|
}}
|
|
/>
|
|
</DemoSection>
|
|
|
|
<DemoSection title="Barre de navigation" code="<Header />">
|
|
<Header />
|
|
</DemoSection>
|
|
|
|
<DemoSection title="Footer" code="<Footer />">
|
|
<Footer />
|
|
</DemoSection>
|
|
|
|
<DemoSection
|
|
title="Section à 3 colonnes"
|
|
code={`
|
|
<TripleColSection
|
|
title={{
|
|
text: "Mise en avant des 3 sites de production",
|
|
}}
|
|
cols={[
|
|
{
|
|
title: {
|
|
text: "Plaintel (22)"
|
|
},
|
|
subtitle: {
|
|
text: "Hôtellerie"
|
|
},
|
|
description: {
|
|
text: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit dicta explicabo quos accusamus unde nostrum nemo delectus consequatur aliquam iste porro, ab asperiores incidunt autem veniam. In reiciendis totam nesciunt. Lorem ipsum dolor sit amet consectetur adipisicing elit. Eum voluptatibus temporibus autem amet maxime fuga dignissimos quo necessitatibus iusto nam. Rerum placeat esse perspiciatis suscipit eos ipsa ad alias totam?"
|
|
},
|
|
image: {
|
|
alt: "Alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg"
|
|
}
|
|
},
|
|
{
|
|
title: {
|
|
text: "Plaintel (22)"
|
|
},
|
|
description: {
|
|
text: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit dicta explicabo quos accusamus unde nostrum nemo delectus consequatur aliquam iste porro, ab asperiores incidunt autem veniam. In reiciendis totam nesciunt. Lorem ipsum dolor sit amet consectetur adipisicing elit. Eum voluptatibus temporibus autem amet maxime fuga dignissimos quo necessitatibus iusto nam. Rerum placeat esse perspiciatis suscipit eos ipsa ad alias totam?"
|
|
},
|
|
image: {
|
|
alt: "Alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg"
|
|
}
|
|
}, {
|
|
title: {
|
|
text: "Plaintel (22)"
|
|
},
|
|
description: {
|
|
text: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit dicta explicabo quos accusamus unde nostrum nemo delectus consequatur aliquam iste porro, ab asperiores incidunt autem veniam. In reiciendis totam nesciunt. Lorem ipsum dolor sit amet consectetur adipisicing elit. Eum voluptatibus temporibus autem amet maxime fuga dignissimos quo necessitatibus iusto nam. Rerum placeat esse perspiciatis suscipit eos ipsa ad alias totam?"
|
|
},
|
|
image: {
|
|
alt: "Alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg"
|
|
}
|
|
}
|
|
]}
|
|
button={{
|
|
href: "#FIXME",
|
|
label: "En savoir plus"
|
|
}}
|
|
variant="bg-background"
|
|
/>
|
|
`}
|
|
>
|
|
<TripleColSection
|
|
title={{
|
|
text: "Mise en avant des 3 sites de production",
|
|
}}
|
|
cols={[
|
|
{
|
|
title: {
|
|
text: "Plaintel (22)",
|
|
},
|
|
subtitle: {
|
|
text: "Hôtellerie",
|
|
},
|
|
description: {
|
|
text: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit dicta explicabo quos accusamus unde nostrum nemo delectus consequatur aliquam iste porro, ab asperiores incidunt autem veniam. In reiciendis totam nesciunt. Lorem ipsum dolor sit amet consectetur adipisicing elit. Eum voluptatibus temporibus autem amet maxime fuga dignissimos quo necessitatibus iusto nam. Rerum placeat esse perspiciatis suscipit eos ipsa ad alias totam?",
|
|
},
|
|
image: {
|
|
alt: "Alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg",
|
|
},
|
|
},
|
|
{
|
|
title: {
|
|
text: "Plaintel (22)",
|
|
},
|
|
description: {
|
|
text: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit dicta explicabo quos accusamus unde nostrum nemo delectus consequatur aliquam iste porro, ab asperiores incidunt autem veniam. In reiciendis totam nesciunt. Lorem ipsum dolor sit amet consectetur adipisicing elit. Eum voluptatibus temporibus autem amet maxime fuga dignissimos quo necessitatibus iusto nam. Rerum placeat esse perspiciatis suscipit eos ipsa ad alias totam?",
|
|
},
|
|
image: {
|
|
alt: "Alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg",
|
|
},
|
|
},
|
|
{
|
|
title: {
|
|
text: "Plaintel (22)",
|
|
},
|
|
description: {
|
|
text: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit dicta explicabo quos accusamus unde nostrum nemo delectus consequatur aliquam iste porro, ab asperiores incidunt autem veniam. In reiciendis totam nesciunt. Lorem ipsum dolor sit amet consectetur adipisicing elit. Eum voluptatibus temporibus autem amet maxime fuga dignissimos quo necessitatibus iusto nam. Rerum placeat esse perspiciatis suscipit eos ipsa ad alias totam?",
|
|
},
|
|
image: {
|
|
alt: "Alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg",
|
|
},
|
|
},
|
|
]}
|
|
button={{
|
|
href: "#FIXME",
|
|
label: "En savoir plus",
|
|
}}
|
|
variant="bg-background"
|
|
/>
|
|
</DemoSection>
|
|
|
|
<DemoSection
|
|
title="Carousel"
|
|
code={`
|
|
<CarouselSection
|
|
carousel={{
|
|
breakpoints: {
|
|
1024: {
|
|
slidesPerView: 4
|
|
}
|
|
}
|
|
}}
|
|
variant={bgColors.BACKGROUND}
|
|
items={[
|
|
{
|
|
image: {
|
|
alt: "alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg"
|
|
},
|
|
title: {
|
|
text: "Œuf poché moulé",
|
|
},
|
|
button: {
|
|
label: "Voir le produit",
|
|
href: "/ddd"
|
|
}
|
|
},
|
|
{
|
|
image: {
|
|
alt: "alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg"
|
|
},
|
|
title: {
|
|
text: "Œuf poché moulé",
|
|
},
|
|
button: {
|
|
label: "Voir le produit",
|
|
href: "/ddd"
|
|
}
|
|
},
|
|
{
|
|
image: {
|
|
alt: "alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg"
|
|
},
|
|
title: {
|
|
text: "Œuf poché moulé",
|
|
},
|
|
button: {
|
|
label: "Voir le produit",
|
|
href: "/ddd"
|
|
}
|
|
},
|
|
{
|
|
image: {
|
|
alt: "alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg"
|
|
},
|
|
title: {
|
|
text: "Œuf poché moulé",
|
|
},
|
|
button: {
|
|
label: "Voir le produit",
|
|
href: "/ddd"
|
|
}
|
|
},
|
|
{
|
|
image: {
|
|
alt: "alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg"
|
|
},
|
|
title: {
|
|
text: "Œuf poché moulé",
|
|
},
|
|
button: {
|
|
label: "Voir le produit",
|
|
href: "/ddd"
|
|
}
|
|
},
|
|
{
|
|
image: {
|
|
alt: "alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg"
|
|
},
|
|
title: {
|
|
text: "Œuf poché moulé",
|
|
},
|
|
button: {
|
|
label: "Voir le produit",
|
|
href: "/ddd"
|
|
}
|
|
}
|
|
]}
|
|
/>
|
|
`}
|
|
>
|
|
<CarouselSection
|
|
carousel={{
|
|
breakpoints: {
|
|
1024: {
|
|
slidesPerView: 4,
|
|
},
|
|
},
|
|
}}
|
|
variant={bgColors.BACKGROUND}
|
|
items={[
|
|
{
|
|
image: {
|
|
alt: "alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg",
|
|
},
|
|
title: {
|
|
text: "Œuf poché moulé",
|
|
},
|
|
button: {
|
|
label: "Voir le produit",
|
|
href: "/ddd",
|
|
},
|
|
},
|
|
{
|
|
image: {
|
|
alt: "alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg",
|
|
},
|
|
title: {
|
|
text: "Œuf poché moulé",
|
|
},
|
|
button: {
|
|
label: "Voir le produit",
|
|
href: "/ddd",
|
|
},
|
|
},
|
|
{
|
|
image: {
|
|
alt: "alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg",
|
|
},
|
|
title: {
|
|
text: "Œuf poché moulé",
|
|
},
|
|
button: {
|
|
label: "Voir le produit",
|
|
href: "/ddd",
|
|
},
|
|
},
|
|
{
|
|
image: {
|
|
alt: "alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg",
|
|
},
|
|
title: {
|
|
text: "Œuf poché moulé",
|
|
},
|
|
button: {
|
|
label: "Voir le produit",
|
|
href: "/ddd",
|
|
},
|
|
},
|
|
{
|
|
image: {
|
|
alt: "alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg",
|
|
},
|
|
title: {
|
|
text: "Œuf poché moulé",
|
|
},
|
|
button: {
|
|
label: "Voir le produit",
|
|
href: "/ddd",
|
|
},
|
|
},
|
|
{
|
|
image: {
|
|
alt: "alt",
|
|
title: "title",
|
|
src: "/assets/img/elephant.jpg",
|
|
},
|
|
title: {
|
|
text: "Œuf poché moulé",
|
|
},
|
|
button: {
|
|
label: "Voir le produit",
|
|
href: "/ddd",
|
|
},
|
|
},
|
|
]}
|
|
/>
|
|
</DemoSection>
|
|
|
|
<DemoSection
|
|
title="Composant section avec custom children"
|
|
code={`
|
|
<Section
|
|
title={{
|
|
text: "...Et une double expertise unique, pleine de synergie",
|
|
}}
|
|
subtitle={{
|
|
text: "La restauration hors domicile",
|
|
}}
|
|
description={{
|
|
text: "Une large gamme de produits gourmands, simples à mettre en oeuvre pour tous les métiers de la restauration hors domicile",
|
|
}}
|
|
button={{
|
|
href: "FIMXE",
|
|
label: "Label",
|
|
icon: {
|
|
icon: "chevron-right"
|
|
}
|
|
}}
|
|
>
|
|
sss
|
|
</Section>
|
|
`}
|
|
>
|
|
<Section
|
|
title={{
|
|
text: "...Et une double expertise unique, pleine de synergie",
|
|
}}
|
|
subtitle={{
|
|
text: "La restauration hors domicile",
|
|
}}
|
|
description={{
|
|
text: "Une large gamme de produits gourmands, simples à mettre en oeuvre pour tous les métiers de la restauration hors domicile",
|
|
}}
|
|
button={{
|
|
href: "FIMXE",
|
|
label: "Label",
|
|
icon: {
|
|
icon: "chevron-right",
|
|
},
|
|
}}
|
|
>
|
|
sss
|
|
</Section>
|
|
</DemoSection>
|
|
|
|
<DemoSection
|
|
title="Valeurs nutritionnelles"
|
|
code={`
|
|
<Section>
|
|
<NutritionalValueList
|
|
baseValue="Pour 100g"
|
|
rows={[
|
|
{
|
|
label: "Energie",
|
|
value: "114Kj",
|
|
subRow: {
|
|
label: "dont sucres",
|
|
value: "0.5g"
|
|
},
|
|
},
|
|
{
|
|
label: "Energie",
|
|
value: "114Kj"
|
|
},
|
|
{
|
|
label: "Energie",
|
|
value: "114Kj"
|
|
},
|
|
{
|
|
label: "Energie",
|
|
value: "114Kj"
|
|
}
|
|
]} />
|
|
</Section>
|
|
`}
|
|
>
|
|
<Section>
|
|
<NutritionalValueList
|
|
baseValue="Pour 100g"
|
|
rows={[
|
|
{
|
|
label: "Energie",
|
|
value: "114Kj",
|
|
subRow: {
|
|
label: "dont sucres",
|
|
value: "0.5g",
|
|
},
|
|
},
|
|
{
|
|
label: "Energie",
|
|
value: "114Kj",
|
|
},
|
|
{
|
|
label: "Energie",
|
|
value: "114Kj",
|
|
},
|
|
{
|
|
label: "Energie",
|
|
value: "114Kj",
|
|
},
|
|
]}
|
|
/>
|
|
</Section>
|
|
</DemoSection>
|
|
|
|
<DemoSection title="Filtre">
|
|
<Filters />
|
|
</DemoSection>
|
|
</div>
|
|
</Section>
|
|
);
|
|
}
|