import { NextSeo } from "next-seo";
import Image from "../components/Image";
import Link from "../components/Link";
import { styled, theme } from "../lib/styles/stitches.config";

import pandaGif from "../public/static/images/angry-panda.gif";

const Center = styled("div", {
  textAlign: "center",
});

const H1 = styled("h1", {
  fontSize: "1.8em",
  fontWeight: 500,
  color: theme.colors.text,

  "@medium": {
    fontSize: "1.6em",
  },
});

const FourOhFour = () => {
  return (
    <>
      <NextSeo title="404 Not Found" />

      <Center>
        <Image src={pandaGif} alt="404s make panda angry..." quality={30} />

        <H1>404: Page Not Found 😢</H1>

        <Link href="/" prefetch>
          Go home?
        </Link>
      </Center>
    </>
  );
};

export default FourOhFour;
