Skip to content

Commit

Permalink
feat: Add socials to footer.
Browse files Browse the repository at this point in the history
  • Loading branch information
kovipu committed Jan 11, 2025
1 parent afdf035 commit b0d98f7
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,36 @@
import type { ComponentType } from 'react';
import { FaDiscord, FaGithub, FaXTwitter } from 'react-icons/fa6';

export default function Footer() {
return (
<footer className="bg-black px-4 h-40 flex flex-col items-center justify-center">
<p className="text-white w-[72rem] max-w-full text-lg">This website does not use cookies.</p>
<p className="text-white w-[72rem] max-w-full text-sm">&copy; Copyright 2024, Laina Protocol</p>
<footer className="bg-black px-4 flex flex-col items-center justify-center">
<div className="flex flex-row w-[74rem] max-w-full flex-wrap items-center mb-20">
<div className="md:w-1/2 flex flex-col pt-10 px-4">
<SocialLink href="https://discord.com/invite/gnUAFr3fUv" text="Laina Discord" Icon={FaDiscord} />
<SocialLink href="https://x.com/Lainadefi" text="@Lainadefi" Icon={FaXTwitter} />
<SocialLink href="https://github.com/laina-protocol" text="laina-protocol" Icon={FaGithub} />
</div>
<div className="md:w-1/2 pt-10 px-4 md:pl-14">
<p className="text-white max-w-full text-lg">This website does not use cookies.</p>
<p className="text-white max-w-full text-sm">&copy; Copyright 2025, Laina Protocol</p>
</div>
</div>
</footer>
);
}

interface IconProps {
className?: string;
size?: number;
}

const SocialLink = ({ href, text, Icon }: { href: string; text: string; Icon: ComponentType<IconProps> }) => {
return (
<span className="flex flex-row items-center my-1">
<Icon className="text-white hover:text-grey mr-2" size={32} />
<a className="text-lg text-white cursor-pointer hover:underline" href={href} target="_blank" rel="noreferrer">
{text}
</a>
</span>
);
};

0 comments on commit b0d98f7

Please sign in to comment.