From fa4a4a565c83cbc536222ea9cc866f62e97001bd Mon Sep 17 00:00:00 2001 From: Kyla Date: Sat, 7 Oct 2023 12:44:05 -0700 Subject: [PATCH] created auth layout --- app/(auth)/layout.tsx | 9 +++++++++ app/layout.tsx | 8 ++++---- 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 app/(auth)/layout.tsx diff --git a/app/(auth)/layout.tsx b/app/(auth)/layout.tsx new file mode 100644 index 0000000..aa8e27c --- /dev/null +++ b/app/(auth)/layout.tsx @@ -0,0 +1,9 @@ +const AuthLayout = ( { children }: {children: React.ReactNode}) => { + return ( +
+ {children} +
+ ); +} + +export default AuthLayout; \ No newline at end of file diff --git a/app/layout.tsx b/app/layout.tsx index ae84562..54a1454 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,11 +1,11 @@ import './globals.css' import type { Metadata } from 'next' -import { Inter } from 'next/font/google' +import { Open_Sans } from 'next/font/google' -const inter = Inter({ subsets: ['latin'] }) +const Font = Open_Sans({ subsets: ['latin'] }) export const metadata: Metadata = { - title: 'Create Next App', + title: 'Discord-Clone', description: 'Generated by create next app', } @@ -16,7 +16,7 @@ export default function RootLayout({ }) { return ( - {children} + {children} ) }