|
1 | 1 | import { ClientComponent } from "../shared/ClientComponent"; |
2 | 2 | import { Alert } from "@codegouvfr/react-dsfr/Alert"; |
| 3 | +import { Badge } from "@codegouvfr/react-dsfr/Badge"; |
| 4 | +import { Card } from "@codegouvfr/react-dsfr/Card"; |
| 5 | +import { Tabs } from "@codegouvfr/react-dsfr/Tabs"; |
| 6 | +import { Summary } from "@codegouvfr/react-dsfr/Summary"; |
3 | 7 |
|
4 | 8 | export default function Page() { |
5 | 9 |
|
6 | 10 | return ( |
7 | 11 | <> |
8 | 12 | <h1>Hello World</h1> |
| 13 | + <Summary |
| 14 | + links={[ |
| 15 | + { |
| 16 | + linkProps: { |
| 17 | + href: '#' |
| 18 | + }, |
| 19 | + text: 'Titre de l’ancre' |
| 20 | + }, |
| 21 | + { |
| 22 | + linkProps: { |
| 23 | + href: '#' |
| 24 | + }, |
| 25 | + text: 'Titre de l’ancre' |
| 26 | + }, |
| 27 | + { |
| 28 | + linkProps: { |
| 29 | + href: '#' |
| 30 | + }, |
| 31 | + text: 'Titre de l’ancre' |
| 32 | + }, |
| 33 | + { |
| 34 | + linkProps: { |
| 35 | + href: '#' |
| 36 | + }, |
| 37 | + text: 'Titre de l’ancre' |
| 38 | + }, |
| 39 | + { |
| 40 | + linkProps: { |
| 41 | + href: '#' |
| 42 | + }, |
| 43 | + text: 'Titre de l’ancre' |
| 44 | + } |
| 45 | + ]} |
| 46 | + /> |
9 | 47 | <ClientComponent /> |
10 | 48 | <Alert |
11 | 49 | closable |
12 | 50 | description="Everything went well" |
13 | 51 | severity="success" |
14 | 52 | title="Message successfully sent" |
15 | 53 | /> |
| 54 | + <Badge |
| 55 | + label="Label badge" |
| 56 | + severity="success" |
| 57 | + /> |
| 58 | + <Card |
| 59 | + desc="Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et" |
| 60 | + enlargeLink |
| 61 | + imageAlt="texte alternatif de l’image" |
| 62 | + imageUrl="https://www.systeme-de-design.gouv.fr/img/placeholder.16x9.png" |
| 63 | + linkProps={{ |
| 64 | + href: '#' |
| 65 | + }} |
| 66 | + title="Intitulé de la carte (sur lequel se trouve le lien)" |
| 67 | + /> |
| 68 | + <Tabs |
| 69 | + label="Name of the tabs system" |
| 70 | + tabs={[ |
| 71 | + { |
| 72 | + content: <p>Content of tab1</p>, |
| 73 | + iconId: 'fr-icon-add-line', |
| 74 | + label: 'Tab 1' |
| 75 | + }, |
| 76 | + { |
| 77 | + content: <p>Content of tab2</p>, |
| 78 | + iconId: 'fr-icon-ball-pen-fill', |
| 79 | + label: 'Tab 2' |
| 80 | + }, |
| 81 | + { |
| 82 | + content: <p>Content of tab3</p>, |
| 83 | + label: 'Tab 3' |
| 84 | + } |
| 85 | + ]} |
| 86 | + /> |
16 | 87 | </> |
17 | 88 | ); |
18 | 89 |
|
|
0 commit comments