demo: Restructure storytelling-chatbot directory, update README steps, link to vercel demo
This commit is contained in:
46
examples/storytelling-chatbot/client/app/layout.tsx
Normal file
46
examples/storytelling-chatbot/client/app/layout.tsx
Normal file
@@ -0,0 +1,46 @@
|
||||
import React from "react";
|
||||
|
||||
import "./globals.css";
|
||||
import type { Metadata } from "next";
|
||||
import { Space_Grotesk, Space_Mono } from "next/font/google";
|
||||
|
||||
import { cn } from "@/app/utils";
|
||||
|
||||
// Font
|
||||
const sans = Space_Grotesk({
|
||||
subsets: ["latin"],
|
||||
weight: ["400", "500", "600"],
|
||||
variable: "--font-sans",
|
||||
});
|
||||
|
||||
const mono = Space_Mono({
|
||||
subsets: ["latin"],
|
||||
weight: ["400", "700"],
|
||||
variable: "--font-mono",
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Storytelling Chatbot - Daily AI",
|
||||
description: "Built with git.new/ai",
|
||||
metadataBase: new URL(process.env.SITE_URL || "http://localhost:3000"),
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body
|
||||
className={cn(
|
||||
"min-h-screen bg-background font-sans antialiased flex flex-col",
|
||||
sans.variable,
|
||||
mono.variable
|
||||
)}
|
||||
>
|
||||
<main className="flex flex-1">{children}</main>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user