import Content from "../../components/Content";
import PageTitle from "../../components/PageTitle";
import Link from "../../components/Link";
import Video from "../../components/Video";
import { metadata as defaultMetadata } from "../layout";
import type { Metadata } from "next";

import thumbnail from "../../public/static/images/leo/thumb.png";

export const metadata: Metadata = {
  title: 'Facebook App on "The Lab with Leo Laporte"',
  description: "Powncer app featured in Leo Laporte's TechTV show.",
  openGraph: {
    ...defaultMetadata.openGraph,
    title: 'Facebook App on "The Lab with Leo Laporte"',
    images: [thumbnail.src],
    url: "/leo",
  },
  alternates: {
    ...defaultMetadata.alternates,
    canonical: "/leo",
  },
};

export default function Page() {
  return (
    <>
      <PageTitle>Facebook App on "The Lab with Leo Laporte"</PageTitle>

      <Content>
        <Video
          src={{
            webm: "/static/images/leo/leo.webm",
            mp4: "/static/images/leo/leo.mp4",
            vtt: "/static/images/leo/subs.en.vtt",
            image: thumbnail.src,
          }}
        />

        <p
          style={{
            textAlign: "center",
            fontSize: "0.9em",
            lineHeight: 1.8,
            margin: "1.25em 1em 0 1em",
            color: "var(--colors-mediumLight)",
          }}
        >
          Video is property of{" "}
          <Link href="https://web.archive.org/web/20070511004304/www.g4techtv.ca" style={{ fontWeight: 700 }}>
            G4techTV Canada
          </Link>{" "}
          &amp;{" "}
          <Link href="https://leolaporte.com/" style={{ fontWeight: 700 }}>
            Leo Laporte
          </Link>
          . &copy; 2007 G4 Media, Inc.
        </p>
      </Content>
    </>
  );
}
