blob: 977deed519418d37546aad094139a145fc0ff554 [file] [log] [blame]
simond47ef9e2022-09-28 22:24:28 -04001import { Button, Stack, Switch, ThemeProvider, Typography } from '@mui/material';
simon07b4eb02022-09-29 17:50:26 -04002
simond47ef9e2022-09-28 22:24:28 -04003import {
simond47ef9e2022-09-28 22:24:28 -04004 BackButton,
simon07b4eb02022-09-29 17:50:26 -04005 CancelPictureButton,
simond47ef9e2022-09-28 22:24:28 -04006 CloseButton,
simon07b4eb02022-09-29 17:50:26 -04007 EditPictureButton,
8 InfoButton,
9 TakePictureButton,
10 TipButton,
11 UploadPictureButton,
simon35378692022-10-02 23:25:57 -040012} from '../components/Button';
13import { NickNameInput, PasswordInput, RegularInput, UsernameInput } from '../components/Input';
14import defaultTheme from './Default';
idillon24fe8d82022-08-29 16:55:20 -040015
16export const ThemeDemonstrator = () => {
simond47ef9e2022-09-28 22:24:28 -040017 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};