simon | 26e79f7 | 2022-10-05 22:16:08 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2022 Savoir-faire Linux Inc. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU Affero General Public License as |
| 6 | * published by the Free Software Foundation; either version 3 of the |
| 7 | * License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU Affero General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Affero General Public |
| 15 | * License along with this program. If not, see |
| 16 | * <https://www.gnu.org/licenses/>. |
| 17 | */ |
idillon | 3470d07 | 2022-11-22 15:22:34 -0500 | [diff] [blame] | 18 | import { Button, Stack, Switch, Typography } from '@mui/material'; |
simon | 07b4eb0 | 2022-09-29 17:50:26 -0400 | [diff] [blame] | 19 | |
simon | d47ef9e | 2022-09-28 22:24:28 -0400 | [diff] [blame] | 20 | import { |
simon | d47ef9e | 2022-09-28 22:24:28 -0400 | [diff] [blame] | 21 | BackButton, |
simon | 07b4eb0 | 2022-09-29 17:50:26 -0400 | [diff] [blame] | 22 | CancelPictureButton, |
simon | d47ef9e | 2022-09-28 22:24:28 -0400 | [diff] [blame] | 23 | CloseButton, |
simon | 07b4eb0 | 2022-09-29 17:50:26 -0400 | [diff] [blame] | 24 | EditPictureButton, |
| 25 | InfoButton, |
| 26 | TakePictureButton, |
| 27 | TipButton, |
| 28 | UploadPictureButton, |
simon | 3537869 | 2022-10-02 23:25:57 -0400 | [diff] [blame] | 29 | } from '../components/Button'; |
| 30 | import { NickNameInput, PasswordInput, RegularInput, UsernameInput } from '../components/Input'; |
idillon | 3470d07 | 2022-11-22 15:22:34 -0500 | [diff] [blame] | 31 | import CustomThemeProvider from '../contexts/CustomThemeProvider'; |
idillon | 24fe8d8 | 2022-08-29 16:55:20 -0400 | [diff] [blame] | 32 | |
| 33 | export const ThemeDemonstrator = () => { |
simon | d47ef9e | 2022-09-28 22:24:28 -0400 | [diff] [blame] | 34 | return ( |
idillon | 3470d07 | 2022-11-22 15:22:34 -0500 | [diff] [blame] | 35 | <CustomThemeProvider> |
simon | d47ef9e | 2022-09-28 22:24:28 -0400 | [diff] [blame] | 36 | <Stack spacing="5px"> |
| 37 | <Stack> |
| 38 | <Typography variant="h1">Exemple de titre H1</Typography> |
| 39 | <Typography variant="h2">Exemple de titre H2</Typography> |
| 40 | <Typography variant="h3">Exemple de titre H3</Typography> |
| 41 | <Typography variant="h4">Exemple de titre H4</Typography> |
| 42 | <Typography variant="h5">Exemple de titre H5</Typography> |
| 43 | <Typography variant="body1">Texte courant principal</Typography> |
| 44 | <Typography variant="body2">Texte courant secondaire</Typography> |
| 45 | <Typography variant="caption">Légendes et annotations</Typography> |
| 46 | </Stack> |
| 47 | <Stack spacing="5px" padding="5px" width="300px"> |
| 48 | <Button variant="contained">Bouton primaire</Button> |
| 49 | <Button variant="outlined">Bouton secondaire</Button> |
| 50 | <Button variant="text">Bouton tertiaire</Button> |
| 51 | <Button variant="contained" size="small"> |
| 52 | Bouton liste préférences |
| 53 | </Button> |
| 54 | </Stack> |
| 55 | <Stack direction="row" spacing="5px"> |
| 56 | <CancelPictureButton /> |
| 57 | <EditPictureButton /> |
| 58 | <UploadPictureButton /> |
| 59 | <TakePictureButton /> |
| 60 | </Stack> |
| 61 | <Stack direction="row" spacing="5px"> |
Michelle Sepkap Sime | f5ebc2e | 2022-10-27 18:30:53 -0400 | [diff] [blame] | 62 | <InfoButton tooltipTitle={''} /> |
simon | d47ef9e | 2022-09-28 22:24:28 -0400 | [diff] [blame] | 63 | <TipButton /> |
| 64 | </Stack> |
| 65 | <Stack direction="row" spacing="5px"> |
| 66 | <BackButton /> |
| 67 | <CloseButton /> |
| 68 | </Stack> |
| 69 | <Stack> |
| 70 | <Switch /> |
| 71 | </Stack> |
| 72 | <Stack padding="5px" width="300px"> |
simon | 4e7445c | 2022-11-16 21:18:46 -0500 | [diff] [blame] | 73 | <UsernameInput tooltipTitle={'Test'} /> |
| 74 | <UsernameInput tooltipTitle={'Test'} error defaultValue="Cyrille" /> |
| 75 | <PasswordInput tooltipTitle={'Test'} /> |
| 76 | <PasswordInput tooltipTitle={'Test'} error defaultValue="SavoirFaireLinux" /> |
simon | d47ef9e | 2022-09-28 22:24:28 -0400 | [diff] [blame] | 77 | <NickNameInput /> |
| 78 | <RegularInput /> |
| 79 | </Stack> |
| 80 | </Stack> |
idillon | 3470d07 | 2022-11-22 15:22:34 -0500 | [diff] [blame] | 81 | </CustomThemeProvider> |
simon | d47ef9e | 2022-09-28 22:24:28 -0400 | [diff] [blame] | 82 | ); |
| 83 | }; |