blob: 6f122093ef9c93fcb650c3811b06613aeaf3d1ee [file] [log] [blame]
simond47ef9e2022-09-28 22:24:28 -04001import { Button, Stack, Switch, ThemeProvider, Typography } from '@mui/material';
2import {
3 CancelPictureButton,
4 EditPictureButton,
5 UploadPictureButton,
6 TakePictureButton,
7 InfoButton,
8 TipButton,
9 BackButton,
10 CloseButton,
11} from '../components/buttons';
12import { NickNameInput, PasswordInput, RegularInput, UsernameInput } from '../components/inputs';
13import defaultTheme from './default';
idillon24fe8d82022-08-29 16:55:20 -040014
15export const ThemeDemonstrator = () => {
simond47ef9e2022-09-28 22:24:28 -040016 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};