diff --git a/src/app/_components/external-link.tsx b/src/app/_components/external-link.tsx index 2872901..54e71d1 100644 --- a/src/app/_components/external-link.tsx +++ b/src/app/_components/external-link.tsx @@ -3,11 +3,16 @@ import React, { ReactNode } from 'react'; interface ExternalLinkProps { href: string; children: ReactNode; + className?: string; + mode?: 'red' | 'grey'; } -const ExternalLink: React.FC = ({ href, children }) => { +const ExternalLink: React.FC = ({ href, children, className, mode = 'grey' }) => { + const baseClass = "text-sm transition-colors duration-300"; + const modeClass = mode === 'red' ? 'text-red-400 hover:text-red-300' : 'text-gray-400 hover:text-gray-300'; + return ( - + {children} ); diff --git a/src/app/_components/footer.tsx b/src/app/_components/footer.tsx index 6040eb1..8feac9e 100644 --- a/src/app/_components/footer.tsx +++ b/src/app/_components/footer.tsx @@ -3,6 +3,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faCode, faEnvelope, faFlag } from '@fortawesome/free-solid-svg-icons'; import { faGithub, faLinkedin } from '@fortawesome/free-brands-svg-icons'; +import ExternalLink from './external-link'; const Footer: React.FC = () => { return ( @@ -25,35 +26,41 @@ const Footer: React.FC = () => {

Quick Links

-

Communnity

+

Community

Connect

- + - - + + - - + + - - + + - +
diff --git a/src/app/_components/old/footer.tsx b/src/app/_components/old/footer.tsx index 35c4d40..3560e28 100644 --- a/src/app/_components/old/footer.tsx +++ b/src/app/_components/old/footer.tsx @@ -1,21 +1,31 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faGithub, faLinkedin } from "@fortawesome/free-brands-svg-icons"; -import { faEnvelope} from "@fortawesome/free-solid-svg-icons"; +import { faEnvelope } from "@fortawesome/free-solid-svg-icons"; import Image from "next/image"; -import ctftimelogo from "../../../public/ctftime.png" +import ctftimelogo from "../../../public/ctftime.png"; +import ExternalLink from "../external-link"; + export function TopFooter() { - return <> -