Phase 1 (Foundation): - Project restructure (presenton-main → backend/ + frontend/) - Database schema (8 new models, Alembic config, seed script) - Auth (Azure AD SSO + dev bypass, JWT sessions, AuthMiddleware) - RBAC (access_service, rbac_middleware, admin routers) - Audit logging (fire-and-forget, AuditMiddleware, admin router) - i18n (react-i18next with 5 namespace files) Phase 2 (Admin Panel & Client Management): - Admin panel shell (sidebar layout, role guard, 12 pages) - Redux admin slice with 18 async thunks - User management (role changes, deactivation) - Client management (CRUD, brand config, team management) - Brand config editor (colors, fonts, logos, voice rules) - Master deck upload & parser (PPTX → HTML → React pipeline) - Audit log viewer with filters and CSV/JSON export Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
96 lines
2.6 KiB
TypeScript
96 lines
2.6 KiB
TypeScript
import type { Metadata } from "next";
|
|
import localFont from "next/font/local";
|
|
import { Roboto, Instrument_Sans } from "next/font/google";
|
|
import "./globals.css";
|
|
import { Providers } from "./providers";
|
|
import { I18nProvider } from "@/i18n/I18nProvider";
|
|
import { Toaster } from "@/components/ui/sonner";
|
|
const inter = localFont({
|
|
src: [
|
|
{
|
|
path: "./fonts/Inter.ttf",
|
|
weight: "400",
|
|
style: "normal",
|
|
},
|
|
],
|
|
variable: "--font-inter",
|
|
});
|
|
|
|
const instrument_sans = Instrument_Sans({
|
|
subsets: ["latin"],
|
|
weight: ["400"],
|
|
variable: "--font-instrument-sans",
|
|
});
|
|
|
|
const roboto = Roboto({
|
|
subsets: ["latin"],
|
|
weight: ["400"],
|
|
variable: "--font-roboto",
|
|
});
|
|
|
|
|
|
export const metadata: Metadata = {
|
|
metadataBase: new URL("https://presenton.ai"),
|
|
title: "Presenton - Open Source AI presentation generator",
|
|
description:
|
|
"Open-source AI presentation generator with custom layouts, multi-model support (OpenAI, Gemini, Ollama), and PDF/PPTX export. A free Gamma alternative.",
|
|
keywords: [
|
|
"AI presentation generator",
|
|
"data storytelling",
|
|
"data visualization tool",
|
|
"AI data presentation",
|
|
"presentation generator",
|
|
"data to presentation",
|
|
"interactive presentations",
|
|
"professional slides",
|
|
],
|
|
openGraph: {
|
|
title: "Presenton - Open Source AI presentation generator",
|
|
description:
|
|
"Open-source AI presentation generator with custom layouts, multi-model support (OpenAI, Gemini, Ollama), and PDF/PPTX export. A free Gamma alternative.",
|
|
url: "https://presenton.ai",
|
|
siteName: "Presenton",
|
|
images: [
|
|
{
|
|
url: "https://presenton.ai/presenton-feature-graphics.png",
|
|
width: 1200,
|
|
height: 630,
|
|
alt: "Presenton Logo",
|
|
},
|
|
],
|
|
type: "website",
|
|
locale: "en_US",
|
|
},
|
|
alternates: {
|
|
canonical: "https://presenton.ai",
|
|
},
|
|
twitter: {
|
|
card: "summary_large_image",
|
|
title: "Presenton - Open Source AI presentation generator",
|
|
description:
|
|
"Open-source AI presentation generator with custom layouts, multi-model support (OpenAI, Gemini, Ollama), and PDF/PPTX export. A free Gamma alternative.",
|
|
images: ["https://presenton.ai/presenton-feature-graphics.png"],
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
|
|
return (
|
|
<html lang="en">
|
|
<body
|
|
className={`${inter.variable} ${roboto.variable} ${instrument_sans.variable} antialiased`}
|
|
>
|
|
<Providers>
|
|
<I18nProvider>
|
|
{children}
|
|
</I18nProvider>
|
|
</Providers>
|
|
<Toaster position="top-center" />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|