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