mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 15:48:31 -04:00
53 lines
1.4 KiB
TypeScript
53 lines
1.4 KiB
TypeScript
import { env } from "../../lib/env";
|
|
import { JsonLd } from "react-schemaorg";
|
|
import PageTitle from "../../components/PageTitle";
|
|
import Video from "../../components/Video";
|
|
import { addMetadata } from "../../lib/helpers/metadata";
|
|
import type { VideoObject } from "schema-dts";
|
|
|
|
import mp4 from "./birthday.mp4";
|
|
import webm from "./birthday.webm";
|
|
import thumbnail from "./thumbnail.png";
|
|
|
|
export const metadata = addMetadata({
|
|
title: "🎉 Cranky Birthday Boy on VHS Tape 📼",
|
|
description: "The origin of my hatred for the Happy Birthday song.",
|
|
alternates: {
|
|
canonical: "/birthday",
|
|
},
|
|
openGraph: {
|
|
videos: [
|
|
{
|
|
url: `${env.NEXT_PUBLIC_BASE_URL}${webm}`,
|
|
type: "video/webm",
|
|
},
|
|
],
|
|
},
|
|
});
|
|
|
|
const Page = () => {
|
|
return (
|
|
<>
|
|
<JsonLd<VideoObject>
|
|
item={{
|
|
"@context": "https://schema.org",
|
|
"@type": "VideoObject",
|
|
name: metadata.title as string,
|
|
description: metadata.description as string,
|
|
contentUrl: `${env.NEXT_PUBLIC_BASE_URL}${webm}`,
|
|
thumbnailUrl: `${env.NEXT_PUBLIC_BASE_URL}${thumbnail.src}`,
|
|
embedUrl: `${env.NEXT_PUBLIC_BASE_URL}/birthday`,
|
|
uploadDate: "1996-02-06T00:00:00Z",
|
|
duration: "PT6M10S",
|
|
}}
|
|
/>
|
|
|
|
<PageTitle canonical="/birthday">1996.mov</PageTitle>
|
|
|
|
<Video src={[webm, mp4]} poster={thumbnail.src} />
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default Page;
|