mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-06-27 17:05:42 -04:00
53 lines
1.8 KiB
TypeScript
53 lines
1.8 KiB
TypeScript
import { env } from "@/lib/env";
|
||
import { HeartIcon } from "lucide-react";
|
||
import Link from "@/components/link";
|
||
import { NextjsIcon } from "@/components/icons";
|
||
import { cn } from "@/lib/utils";
|
||
import siteConfig from "@/lib/config/site";
|
||
import type { ComponentPropsWithoutRef } from "react";
|
||
|
||
const Footer = ({ className, ...rest }: ComponentPropsWithoutRef<"footer">) => {
|
||
return (
|
||
<footer
|
||
className={cn("text-foreground/85 text-[0.8rem] leading-loose md:flex md:flex-row md:justify-between", className)}
|
||
{...rest}
|
||
>
|
||
<div>
|
||
Content{" "}
|
||
<Link href="/license" className="text-foreground/85 hover:no-underline">
|
||
licensed under {siteConfig.license}
|
||
</Link>
|
||
,{" "}
|
||
<Link href="/previously" title="Previously on..." className="text-foreground/85 hover:no-underline">
|
||
{siteConfig.copyrightYearStart}
|
||
</Link>{" "}
|
||
– {new Date().getUTCFullYear()}.
|
||
</div>
|
||
|
||
<div>
|
||
Made with{" "}
|
||
<HeartIcon className="animate-heartbeat stroke-destructive fill-destructive mx-[1px] inline size-4 align-text-top" />{" "}
|
||
and{" "}
|
||
<Link
|
||
href="https://nextjs.org/"
|
||
title="Powered by Next.js"
|
||
aria-label="Next.js"
|
||
className="text-foreground/85 hover:text-foreground/60 hover:no-underline"
|
||
>
|
||
<NextjsIcon className="mx-[1px] inline size-4 align-text-top" />
|
||
</Link>
|
||
.{" "}
|
||
<Link
|
||
href={`https://github.com/${env.NEXT_PUBLIC_GITHUB_REPO}`}
|
||
title="View Source on GitHub"
|
||
className="border-muted-foreground text-foreground/85 hover:border-muted-foreground/60 border-b-1 pb-0.5 hover:no-underline"
|
||
>
|
||
View source.
|
||
</Link>
|
||
</div>
|
||
</footer>
|
||
);
|
||
};
|
||
|
||
export default Footer;
|