mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 12:58:28 -04:00
61 lines
1.8 KiB
TypeScript
61 lines
1.8 KiB
TypeScript
import { memo } from "react";
|
||
import Link from "next/link";
|
||
import classNames from "classnames";
|
||
import { HeartIcon, NextjsLogo } from "../Icons";
|
||
import * as config from "../../lib/config";
|
||
|
||
import styles from "./Footer.module.css";
|
||
|
||
export type FooterProps = JSX.IntrinsicElements["footer"];
|
||
|
||
const Footer = ({ className, ...rest }: FooterProps) => (
|
||
<footer className={classNames(styles.footer, className)} {...rest}>
|
||
<div className={styles.row}>
|
||
<div className={styles.license}>
|
||
Content{" "}
|
||
<Link href="/license/" prefetch={false}>
|
||
<a className={styles.link} title="Creative Commons Attribution 4.0 International">
|
||
licensed under CC-BY-4.0
|
||
</a>
|
||
</Link>
|
||
,{" "}
|
||
<Link href="/previously/" prefetch={false}>
|
||
<a className={styles.link} title="Previously on...">
|
||
2001
|
||
</a>
|
||
</Link>{" "}
|
||
– {new Date().getFullYear()}.
|
||
</div>
|
||
<div className={styles.powered_by}>
|
||
Made with{" "}
|
||
<span className={styles.heart} title="Love">
|
||
<HeartIcon className={styles.icon} />
|
||
</span>{" "}
|
||
and{" "}
|
||
<a
|
||
className={classNames(styles.link, styles.nextjs)}
|
||
href="https://nextjs.org/"
|
||
title="Powered by Next.js"
|
||
aria-label="Next.js"
|
||
target="_blank"
|
||
rel="noopener noreferrer"
|
||
>
|
||
<NextjsLogo className={styles.icon} fill="currentColor" />
|
||
</a>
|
||
.{" "}
|
||
<a
|
||
className={classNames(styles.link, styles.view_source)}
|
||
href={`https://github.com/${config.githubRepo}`}
|
||
title="View Source on GitHub"
|
||
target="_blank"
|
||
rel="noopener noreferrer"
|
||
>
|
||
View source.
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</footer>
|
||
);
|
||
|
||
export default memo(Footer);
|