From 43bf3eabdf870d5f919166fdeb19246a8e0d07a2 Mon Sep 17 00:00:00 2001 From: Rafael Thayto Date: Mon, 8 Jul 2024 21:26:14 -0300 Subject: [PATCH] feat: some styles adjustments --- src/components/Footer/Footer.tsx | 179 +++++++----------- src/components/Header/Header.tsx | 13 +- .../theme-switcher/theme-switcher.tsx | 92 +++++++++ src/pages/index.tsx | 2 +- src/styles/globals.css | 7 + 5 files changed, 178 insertions(+), 115 deletions(-) create mode 100644 src/components/theme-switcher/theme-switcher.tsx diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx index 007a757..779f8f3 100644 --- a/src/components/Footer/Footer.tsx +++ b/src/components/Footer/Footer.tsx @@ -1,106 +1,15 @@ import { nanoid } from 'nanoid' import Link from 'next/link' -import posthog from 'posthog-js' import { useMemo } from 'react' - -const sunIcon = ( - - - - - - - - - - -) - -const moonIcon = ( - - - -) - -const ThemeSwitcher = () => { - return ( -
- - - -
- ) -} +import { ThemeSwitcher } from '../theme-switcher/theme-switcher' type Link = { href: string name: string } +const linkNanoId = nanoid() export const Footer = () => { - const linkNanoId = nanoid() const sitemapLinks = useMemo( () => [ { @@ -123,28 +32,78 @@ export const Footer = () => { [], ) + const socialLinks = useMemo( + () => [ + { + href: 'https://www.linkedin.com/in/thayto/', + name: 'LinkedIn', + }, + { + href: 'https://github.com/rafa-thayto', + name: 'GitHub', + }, + { + href: 'https://www.youtube.com/@thayto_dev', + name: 'YouTube', + }, + { + href: 'https://www.twitch.tv/thayto_dev', + name: 'Twitch', + }, + { + href: 'https://dev.to/thayto/', + name: 'Dev.to', + }, + { + href: 'https://www.tabnews.com.br/thayto', + name: 'TabNews', + }, + ], + [], + ) + return ( <>
-