diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-17 17:13:51 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-17 18:03:52 +0100 |
| commit | 68138f0dcd8b3db2c23b31a20508726f245b5ba5 (patch) | |
| tree | 0d6a31cfd0adcba4d4cb08666bc262bed6cb89ea /src/components/Widgets/SocialMedia | |
| parent | 86d3e30ef02585d5089dce3aa2757ca2cb4e4edf (diff) | |
feat: implement dark mode
Diffstat (limited to 'src/components/Widgets/SocialMedia')
| -rw-r--r-- | src/components/Widgets/SocialMedia/SocialMedia.module.scss | 10 | ||||
| -rw-r--r-- | src/components/Widgets/SocialMedia/SocialMedia.tsx | 8 |
2 files changed, 14 insertions, 4 deletions
diff --git a/src/components/Widgets/SocialMedia/SocialMedia.module.scss b/src/components/Widgets/SocialMedia/SocialMedia.module.scss index 5dfdcb7..373cefb 100644 --- a/src/components/Widgets/SocialMedia/SocialMedia.module.scss +++ b/src/components/Widgets/SocialMedia/SocialMedia.module.scss @@ -46,3 +46,13 @@ transform: scale(0.9); } } + +:global { + [data-theme="dark"] { + :local { + .icon { + filter: brightness(0.85) contrast(1.1); + } + } + } +} diff --git a/src/components/Widgets/SocialMedia/SocialMedia.tsx b/src/components/Widgets/SocialMedia/SocialMedia.tsx index 351fd48..e4151fc 100644 --- a/src/components/Widgets/SocialMedia/SocialMedia.tsx +++ b/src/components/Widgets/SocialMedia/SocialMedia.tsx @@ -22,13 +22,13 @@ const SocialMedia = ({ const getIcon = (id: string) => { switch (id) { case 'github': - return <GithubIcon />; + return <GithubIcon className={styles.icon} />; case 'gitlab': - return <GitlabIcon />; + return <GitlabIcon className={styles.icon} />; case 'linkedin': - return <LinkedInIcon />; + return <LinkedInIcon className={styles.icon} />; case 'twitter': - return <TwitterIcon />; + return <TwitterIcon className={styles.icon} />; default: break; } |
