Full Toolkit for Next-Level Domain Analysis
import Link from 'next/link';
import type { FC, HTMLAttributes } from 'react';
import { FaGithub, FaHeart } from 'react-icons/fa';
import { Button } from '@/components/ui/button';
import PoweredByVercel from '@/assets/powered-by-vercel.svg';
import { LOOKUP_FEATURES } from '@/lib/lookup-features';
import { cn } from '@/lib/utils';
import { Logo } from './logo';
type VercelBadgeProps = HTMLAttributes<HTMLAnchorElement>;
const VercelBadge: FC<VercelBadgeProps> = ({ className, ...props }) => (
<a
className={cn('[&>svg]:h-10', className)}
href="https://vercel.com/?utm_source=domain-digger&utm_campaign=oss"
target="_blank"
rel="noopener"
{...props}
>
<PoweredByVercel />
<span className="sr-only">Powered by Vercel</span>
</a>
);
export const Footer: FC = () => (
<footer className="w-full p-4 md:px-8">
<div className="flex flex-col items-start gap-6 pt-4">
<div className="flex w-full flex-col items-center justify-between gap-6 sm:flex-row">
<Logo />
<p className="text-sm">
Created with{' '}
<FaHeart className="inline text-red-500" fontSize="1.25rem" />
<span className="sr-only">love</span> by{' '}
<a
className="underline decoration-dotted underline-offset-4"
href="https://wotschofsky.com"
target="_blank"
rel="noopener"
aria-label="Felix Wotschofsky (Site Creator)"
>
Felix Wotschofsky
</a>
</p>
</div>
<div className="flex w-full items-center justify-between">
<div className="flex flex-col gap-2">
<h2 className="font-semibold">Free Tools</h2>
<div className="flex flex-col gap-1 text-sm underline decoration-dotted underline-offset-4 lg:flex-row lg:gap-4">
{LOOKUP_FEATURES.map((feature) => (
<Link key={feature.id} href={feature.landingPath}>
{feature.footerLabel}
</Link>
))}
</div>
</div>
<div className="flex flex-col gap-3 xl:flex-row">
<Button variant="ghost" asChild>
<a
href="https://github.com/wotschofsky/domain-digger"
target="_blank"
rel="noopener"
>
<FaGithub className="mr-1 size-6" />
<span>Source on GitHub</span>
</a>
</Button>
<VercelBadge />
</div>
</div>
</div>
</footer>
);