mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 12:27:43 +00:00
feat: polish demo
This commit is contained in:
@@ -3,29 +3,20 @@ import localFont from "next/font/local";
|
||||
import "./globals.css";
|
||||
import { Toaster } from "@/components/ui/sonner";
|
||||
import { ThemeProvider } from "@/components/theme-provider";
|
||||
import { ThemeToggle } from "@/components/theme-toggle";
|
||||
import { Logo } from "@/components/logo";
|
||||
import Link from "next/link";
|
||||
import { Book } from "lucide-react";
|
||||
import { GeistMono } from "geist/font/mono";
|
||||
import { GeistSans } from "geist/font/sans";
|
||||
import { Wrapper, WrapperWithQuery } from "@/components/wrapper";
|
||||
import { createMetadata } from "@/lib/metadata";
|
||||
|
||||
const geistSans = localFont({
|
||||
src: "./fonts/GeistVF.woff",
|
||||
variable: "--font-geist-sans",
|
||||
weight: "100 900",
|
||||
|
||||
export const metadata = createMetadata({
|
||||
title: {
|
||||
template: "%s | Better Auth",
|
||||
default: "Better Auth",
|
||||
},
|
||||
description: "The authentication library for typescript",
|
||||
metadataBase: new URL("https://demo.better-auth.com",)
|
||||
});
|
||||
const geistMono = localFont({
|
||||
src: "./fonts/GeistMonoVF.woff",
|
||||
variable: "--font-geist-mono",
|
||||
weight: "100 900",
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
};
|
||||
|
||||
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
@@ -34,9 +25,10 @@ export default function RootLayout({
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<body
|
||||
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
||||
>
|
||||
<head>
|
||||
<link rel="icon" href="/favicon/favicon.ico" sizes="any" />
|
||||
</head>
|
||||
<body className={`${GeistSans.variable} ${GeistMono.variable} font-sans`}>
|
||||
<ThemeProvider attribute="class" defaultTheme="dark">
|
||||
<Wrapper>
|
||||
<WrapperWithQuery>
|
||||
|
||||
Reference in New Issue
Block a user