Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,4 @@ tmp

# Rust build output
dr/target/
.playwright-cli/
94 changes: 94 additions & 0 deletions app/presentations/automate-x7k2/[slide]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
import type { Metadata } from 'next';
import { notFound } from 'next/navigation';
import { getAllSlideSlugs, getSlideBySlug } from '@/lib/presentations/automate';

export const dynamic = 'error';
export const revalidate = false;

export async function generateStaticParams() {
return getAllSlideSlugs().map((slide) => ({ slide }));
}

export async function generateMetadata({
params,
}: {
params: Promise<{ slide: string }>;
}): Promise<Metadata> {
const { slide } = await params;
const slideData = getSlideBySlug(slide);
if (!slideData) return { title: 'Slide Not Found' };

return {
title: slideData.title,
robots: { index: false, follow: false },
};
}

export default async function SlidePage({ params }: { params: Promise<{ slide: string }> }) {
const { slide } = await params;
if (!getSlideBySlug(slide)) notFound();

switch (slide) {
case '01-title': {
const { TitleSlide } = await import('@/components/presentations/automate/slides/01-title');
return <TitleSlide />;
}
case '02-what-we-do': {
const { WhatWeDoSlide } =
await import('@/components/presentations/automate/slides/02-what-we-do');
return <WhatWeDoSlide />;
}
case '03-what-oaiz-is': {
const { WhatOaizIsSlide } =
await import('@/components/presentations/automate/slides/03-what-oaiz-is');
return <WhatOaizIsSlide />;
}
case '04-chat-to-workflow': {
const { ChatToWorkflowSlide } =
await import('@/components/presentations/automate/slides/04-chat-to-workflow');
return <ChatToWorkflowSlide />;
}
case '05-agent-fit': {
const { AgentFitSlide } =
await import('@/components/presentations/automate/slides/05-agent-fit');
return <AgentFitSlide />;
}
case '06-event-queue': {
const { EventQueueSlide } =
await import('@/components/presentations/automate/slides/06-event-queue');
return <EventQueueSlide />;
}
case '07-two-builds': {
const { TwoBuildsSlide } =
await import('@/components/presentations/automate/slides/07-two-builds');
return <TwoBuildsSlide />;
}
case '08-live-archive': {
const { LiveArchiveSlide } =
await import('@/components/presentations/automate/slides/08-live-archive');
return <LiveArchiveSlide />;
}
case '09-live-colleague': {
const { LiveColleagueSlide } =
await import('@/components/presentations/automate/slides/09-live-colleague');
return <LiveColleagueSlide />;
}
case '10-same-blocks': {
const { SameBlocksSlide } =
await import('@/components/presentations/automate/slides/10-same-blocks');
return <SameBlocksSlide />;
}
case '11-where-we-are': {
const { WhereWeAreSlide } =
await import('@/components/presentations/automate/slides/11-where-we-are');
return <WhereWeAreSlide />;
}
case '12-questions': {
const { QuestionsSlide } =
await import('@/components/presentations/automate/slides/12-questions');
return <QuestionsSlide />;
}
default:
notFound();
}
}
32 changes: 32 additions & 0 deletions app/presentations/automate-x7k2/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import type { Metadata } from 'next';
import { Inter, Libre_Baskerville } from 'next/font/google';
import { PresentationLayout } from '@/components/presentations/shared/presentation-layout';
import { automateBasePath, getAllSlides } from '@/lib/presentations/automate';
import './oaiz-deck.css';

const libreBaskerville = Libre_Baskerville({
subsets: ['latin'],
weight: ['400', '700'],
variable: '--font-oz-serif',
});

const inter = Inter({
subsets: ['latin'],
weight: ['400', '500', '600'],
variable: '--font-oz-sans',
});

export const metadata: Metadata = {
title: 'Automate something important',
robots: { index: false, follow: false },
};

export default function AutomateLayout({ children }: { children: React.ReactNode }) {
return (
<div className={`oz-deck ${libreBaskerville.variable} ${inter.variable}`}>
<PresentationLayout basePath={automateBasePath} slides={getAllSlides()}>
{children}
</PresentationLayout>
</div>
);
}
Loading
Loading