From 72ea46e9860f2a2da574ac5cde590b5678ecef19 Mon Sep 17 00:00:00 2001 From: Rafael Thayto Date: Sun, 1 Sep 2024 17:24:03 -0300 Subject: [PATCH] feat: theme switcher adjustments, add some logos, update linktree, add bsky link --- src/components/Footer/Footer.tsx | 9 +- src/components/Icons/Bsky.tsx | 16 ++ src/components/Icons/DevTo.tsx | 4 +- src/components/Icons/GitHub.tsx | 6 +- src/components/Icons/LinkedIn.tsx | 6 +- src/components/Icons/Medium.tsx | 6 +- src/components/Icons/TabNews.tsx | 6 +- src/components/Icons/Twitch.tsx | 18 ++ src/components/Icons/Twitter.tsx | 6 +- src/components/Icons/YouTube.tsx | 17 ++ src/components/Icons/types.ts | 3 + .../theme-switcher/theme-switcher.tsx | 8 +- src/pages/linktree.tsx | 170 +++++++++--------- 13 files changed, 180 insertions(+), 95 deletions(-) create mode 100644 src/components/Icons/Bsky.tsx create mode 100644 src/components/Icons/Twitch.tsx create mode 100644 src/components/Icons/YouTube.tsx create mode 100644 src/components/Icons/types.ts diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx index 31a2a5b..7f0706c 100644 --- a/src/components/Footer/Footer.tsx +++ b/src/components/Footer/Footer.tsx @@ -9,7 +9,12 @@ type Link = { } const linkNanoId = nanoid() -export const Footer = () => { + +export const Footer = ({ + onThemeChange, +}: { + onThemeChange?: (theme: 'dark' | 'light') => void +}) => { const sitemapLinks = useMemo( () => [ { @@ -65,7 +70,7 @@ export const Footer = () => { return ( <>
- +