mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 16:08:26 -04:00
56 lines
1.7 KiB
TypeScript
56 lines
1.7 KiB
TypeScript
import { env } from "../../lib/env";
|
|
import { JsonLd } from "react-schemaorg";
|
|
import PageTitle from "../../components/PageTitle";
|
|
import Video from "../../components/Video";
|
|
import { createMetadata } from "../../lib/helpers/metadata";
|
|
import type { VideoObject } from "schema-dts";
|
|
|
|
import thumbnail from "./thumbnail.png";
|
|
|
|
export const metadata = createMetadata({
|
|
title: "🎉 Cranky Birthday Boy on VHS Tape 📼",
|
|
description: "The origin of my hatred for the Happy Birthday song.",
|
|
canonical: "/birthday",
|
|
openGraph: {
|
|
videos: [
|
|
{
|
|
url: "https://ijyxfbpcm3itvdly.public.blob.vercel-storage.com/birthday-pavk1LBK4H6xF8ZWeR0oTcaabGuQ8T.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:
|
|
"https://ijyxfbpcm3itvdly.public.blob.vercel-storage.com/birthday-pavk1LBK4H6xF8ZWeR0oTcaabGuQ8T.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={[
|
|
"https://ijyxfbpcm3itvdly.public.blob.vercel-storage.com/birthday-pavk1LBK4H6xF8ZWeR0oTcaabGuQ8T.webm",
|
|
"https://ijyxfbpcm3itvdly.public.blob.vercel-storage.com/birthday-EkbYbrKY8reheQ4UPcP22ipzpMZ2MC.mp4",
|
|
]}
|
|
poster={thumbnail.src}
|
|
/>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default Page;
|