idillon | 24fe8d8 | 2022-08-29 16:55:20 -0400 | [diff] [blame] | 1 | import { Button, Stack, Switch, ThemeProvider, Typography } from "@mui/material" |
idillon | aedab94 | 2022-09-01 14:29:43 -0400 | [diff] [blame] | 2 | import { CancelPictureButton, EditPictureButton, UploadPictureButton, TakePictureButton, InfoButton, TipButton, BackButton, CloseButton } from "../components/buttons" |
idillon | 24fe8d8 | 2022-08-29 16:55:20 -0400 | [diff] [blame] | 3 | import { NickNameInput, PasswordInput, RegularInput, UsernameInput } from "../components/inputs" |
| 4 | import defaultTheme from './default' |
| 5 | |
| 6 | export const ThemeDemonstrator = () => { |
| 7 | return ( |
| 8 | <ThemeProvider theme={defaultTheme}> |
| 9 | <Stack spacing="5px"> |
| 10 | <Stack> |
| 11 | <Typography variant="h1">Exemple de titre H1</Typography> |
| 12 | <Typography variant="h2">Exemple de titre H2</Typography> |
| 13 | <Typography variant="h3">Exemple de titre H3</Typography> |
| 14 | <Typography variant="h4">Exemple de titre H4</Typography> |
| 15 | <Typography variant="h5">Exemple de titre H5</Typography> |
| 16 | <Typography variant="body1">Texte courant principal</Typography> |
| 17 | <Typography variant="body2">Texte courant secondaire</Typography> |
| 18 | <Typography variant="caption">Légendes et annotations</Typography> |
| 19 | </Stack> |
| 20 | <Stack spacing="5px" padding="5px" width="300px" > |
| 21 | <Button variant="contained">Bouton primaire</Button> |
| 22 | <Button variant="outlined">Bouton secondaire</Button> |
| 23 | <Button variant="text">Bouton tertiaire</Button> |
| 24 | <Button variant="contained" size="small">Bouton liste préférences</Button> |
| 25 | </Stack> |
| 26 | <Stack direction="row" spacing="5px"> |
idillon | aedab94 | 2022-09-01 14:29:43 -0400 | [diff] [blame] | 27 | <CancelPictureButton/> |
| 28 | <EditPictureButton/> |
| 29 | <UploadPictureButton/> |
idillon | 24fe8d8 | 2022-08-29 16:55:20 -0400 | [diff] [blame] | 30 | <TakePictureButton/> |
| 31 | </Stack> |
| 32 | <Stack direction="row" spacing="5px"> |
| 33 | <InfoButton/> |
| 34 | <TipButton/> |
| 35 | </Stack> |
| 36 | <Stack direction="row" spacing="5px"> |
| 37 | <BackButton/> |
| 38 | <CloseButton/> |
| 39 | </Stack> |
| 40 | <Stack> |
| 41 | <Switch/> |
| 42 | </Stack> |
| 43 | <Stack padding="5px" width="300px" > |
| 44 | <UsernameInput/> |
| 45 | <UsernameInput |
| 46 | error |
| 47 | defaultValue="Cyrille" |
| 48 | /> |
| 49 | <PasswordInput/> |
| 50 | <PasswordInput |
| 51 | error |
| 52 | defaultValue="SavoirFaireLinux" |
| 53 | /> |
| 54 | <NickNameInput/> |
| 55 | <RegularInput/> |
| 56 | </Stack> |
| 57 | </Stack> |
| 58 | </ThemeProvider> |
| 59 | ) |
| 60 | } |