Isaac Mann 33352bc970
feat(nx-dev): webinar page (#29913)
Adds a webinar page and a script to pull the webinar content from Notion
2025-02-07 14:22:52 -05:00

40 lines
1.1 KiB
TypeScript

import { Metadata } from 'next';
import { webinarApi } from '../../lib/webinar.api';
import { DefaultLayout } from '@nx/nx-dev/ui-common';
import { Hero, WebinarList } from '@nx/nx-dev/ui-webinar';
export const metadata: Metadata = {
title: 'Nx Webinar - Updates from the Nx & Nx Cloud team',
description: 'Latest webinars from the Nx & Nx Cloud core team',
openGraph: {
url: 'https://nx.dev/webinar',
title: 'Nx Webinar - Updates from the Nx & Nx Cloud team',
description:
'Stay updated with the latest webinars from the Nx & Nx Cloud team.',
images: [
{
url: 'https://nx.dev/socials/nx-media.png',
width: 800,
height: 421,
alt: 'Nx: Smart Monorepos · Fast CI',
type: 'image/jpeg',
},
],
siteName: 'Nx',
type: 'website',
},
};
async function getWebinars() {
return await webinarApi.getWebinarBlogs();
}
export default async function Page() {
const webinars = await getWebinars();
return (
<DefaultLayout>
<Hero />
<WebinarList webinars={webinars} />
</DefaultLayout>
);
}