aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Icons/Moon
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-12-27 11:20:26 +0100
committerArmand Philippot <git@armandphilippot.com>2021-12-27 11:20:26 +0100
commit395571bd89498fce46d37f3853cf718387fd0d9a (patch)
tree0b1a405fb82484e31f62f72485feac18ebd29ae2 /src/components/Icons/Moon
parent7deed83dbb8835727c743662bee776794d460e74 (diff)
chore: add a theme toggle
Dark theme is not implemented yet.
Diffstat (limited to 'src/components/Icons/Moon')
-rw-r--r--src/components/Icons/Moon/Moon.module.scss8
-rw-r--r--src/components/Icons/Moon/Moon.tsx15
2 files changed, 23 insertions, 0 deletions
diff --git a/src/components/Icons/Moon/Moon.module.scss b/src/components/Icons/Moon/Moon.module.scss
new file mode 100644
index 0000000..5912973
--- /dev/null
+++ b/src/components/Icons/Moon/Moon.module.scss
@@ -0,0 +1,8 @@
+@use "@styles/abstracts/functions" as fun;
+
+.moon {
+ fill: var(--color-primary-lighter);
+ stroke: var(--color-border);
+ stroke-width: 4;
+ width: var(--icon-size, #{fun.convert-px(25)});
+}
diff --git a/src/components/Icons/Moon/Moon.tsx b/src/components/Icons/Moon/Moon.tsx
new file mode 100644
index 0000000..b2e5f7b
--- /dev/null
+++ b/src/components/Icons/Moon/Moon.tsx
@@ -0,0 +1,15 @@
+import styles from './Moon.module.scss';
+
+const MoonIcon = () => {
+ return (
+ <svg
+ className={styles.moon}
+ viewBox="0 0 100 100"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path d="M 51.077315,1.9893942 A 43.319985,43.319985 0 0 1 72.840039,39.563145 43.319985,43.319985 0 0 1 29.520053,82.88313 43.319985,43.319985 0 0 1 5.4309911,75.569042 48.132997,48.132997 0 0 0 46.126047,98 48.132997,48.132997 0 0 0 94.260004,49.867002 48.132997,48.132997 0 0 0 51.077315,1.9893942 Z" />
+ </svg>
+ );
+};
+
+export default MoonIcon;