Update code
This commit is contained in:
+42
-22
@@ -1,32 +1,52 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import AuthProvider from '@/components/SessionProvider';
|
||||
import ToasterProvider from '@/components/ui/ToasterProvider';
|
||||
import { ReactNode } from 'react';
|
||||
import './globals.css';
|
||||
|
||||
const geistSans = Geist({
|
||||
variable: "--font-geist-sans",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
const geistMono = Geist_Mono({
|
||||
variable: "--font-geist-mono",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
import type { Metadata, Viewport } from "next";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
title: "AltBin - Modern text and code sharing",
|
||||
description:
|
||||
"AltBin is a fast and modern pastebin for sharing text and code snippets with ease. Secure, minimal, and developer-friendly.",
|
||||
metadataBase: new URL("https://altbin.dev"),
|
||||
openGraph: {
|
||||
title: "AltBin - Modern text and code sharing",
|
||||
description:
|
||||
"Easily share text and code snippets with AltBin. A sleek and secure pastebin for developers.",
|
||||
url: "https://altbin.dev",
|
||||
siteName: "AltBin",
|
||||
images: ["/og-image.png"],
|
||||
locale: "en_US",
|
||||
type: "website",
|
||||
},
|
||||
twitter: {
|
||||
card: "summary_large_image",
|
||||
title: "AltBin - Modern text and code sharing",
|
||||
description:
|
||||
"Share and manage text/code snippets effortlessly with AltBin. Secure and developer-friendly.",
|
||||
images: ["/og-image.png"],
|
||||
creator: "@AltBinApp",
|
||||
},
|
||||
icons: {
|
||||
icon: "/favicon.png",
|
||||
shortcut: "/favicon.png",
|
||||
},
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
export const viewport: Viewport = {
|
||||
themeColor: "#0f172a",
|
||||
};
|
||||
|
||||
export default function RootLayout({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body className={`${geistSans.variable} ${geistMono.variable}`}>
|
||||
{children}
|
||||
<body className="bg-[#0a0a0f] text-neutral-100 font-mono">
|
||||
<AuthProvider>
|
||||
<ToasterProvider />
|
||||
{children}
|
||||
</AuthProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user