Skip to content

Commit

Permalink
Merge pull request rupali-codes#1101 from Anmol-Baranwal/hack_theme_f…
Browse files Browse the repository at this point in the history
…ooter
  • Loading branch information
CBID2 authored Jun 22, 2023
2 parents 0e9dfd4 + 5c09251 commit ab19bb3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import Link from 'next/link'
import type { FC } from 'react'
import { useTheme } from 'next-themes'

export const Footer: FC = () => {
const { resolvedTheme } = useTheme()
const isDarkMode = resolvedTheme === 'dark'

const nameStyles = `underline ${
isDarkMode ? 'text-gray-200' : 'text-violet-700'
} `

return (
<footer className="z-10 mb-4 flex w-full items-baseline justify-center rounded-lg py-2 backdrop-blur-md sm:py-3">
<p className="leading-7 tracking-wide text-center text-black dark:text-violet-400">
Expand All @@ -12,17 +20,15 @@ export const Footer: FC = () => {
target="_blank"
rel="noopener noreferrer"
>
<span className="dark:text-gray-200 underline">Rupali Haldiya</span>
<span className={nameStyles}>Rupali Haldiya</span>
</Link>{' '}
and{' '}
<Link
href="https://github.com/rupali-codes/LinksHub/graphs/contributors"
target="_blank"
rel="noopener noreferrer"
>
<span className="dark:text-gray-200 underline">
Open Source Community
</span>
<span className={nameStyles}>Open Source Community</span>
</Link>
</p>
</footer>
Expand Down

0 comments on commit ab19bb3

Please sign in to comment.