diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-05 12:00:43 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-05 12:00:43 +0100 |
| commit | 0a954547b2bb8136c97f3a697274319751e046ed (patch) | |
| tree | c45e59bebc2b3fdebec8be4f5778ddf5cb6ce2f4 /src/components/Settings | |
| parent | 71d133bb1c73031abbf4869bdd938e583b397773 (diff) | |
chore: replace theme button with settings
I plan to add more user settings so theme options should be inside
settings.
Diffstat (limited to 'src/components/Settings')
| -rw-r--r-- | src/components/Settings/Settings.module.scss | 17 | ||||
| -rw-r--r-- | src/components/Settings/Settings.tsx | 17 |
2 files changed, 34 insertions, 0 deletions
diff --git a/src/components/Settings/Settings.module.scss b/src/components/Settings/Settings.module.scss new file mode 100644 index 0000000..fe6b17b --- /dev/null +++ b/src/components/Settings/Settings.module.scss @@ -0,0 +1,17 @@ +@use "@styles/abstracts/functions" as fun; + +.title { + --icon-size: #{fun.convert-px(30)}; + + display: flex; + flex-flow: row nowrap; + gap: var(--spacing-2xs); + margin-bottom: var(--spacing-md); + color: var(--color-primary-dark); + font-size: var(--font-size-lg); + font-weight: 600; + + svg { + margin: 0; + } +} diff --git a/src/components/Settings/Settings.tsx b/src/components/Settings/Settings.tsx new file mode 100644 index 0000000..bfef851 --- /dev/null +++ b/src/components/Settings/Settings.tsx @@ -0,0 +1,17 @@ +import { CogIcon } from '@components/Icons'; +import ThemeToggle from '@components/ThemeToggle/ThemeToggle'; +import { t } from '@lingui/macro'; +import styles from './Settings.module.scss'; + +const Settings = () => { + return ( + <> + <div className={styles.title}> + <CogIcon /> {t`Settings`} + </div> + <ThemeToggle /> + </> + ); +}; + +export default Settings; |
