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