created auth layout
This commit is contained in:
parent
6e504f2e0e
commit
fa4a4a565c
9
app/(auth)/layout.tsx
Normal file
9
app/(auth)/layout.tsx
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
const AuthLayout = ( { children }: {children: React.ReactNode}) => {
|
||||||
|
return (
|
||||||
|
<div className="bg-red-500 h-full">
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default AuthLayout;
|
@ -1,11 +1,11 @@
|
|||||||
import './globals.css'
|
import './globals.css'
|
||||||
import type { Metadata } from 'next'
|
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 = {
|
export const metadata: Metadata = {
|
||||||
title: 'Create Next App',
|
title: 'Discord-Clone',
|
||||||
description: 'Generated by create next app',
|
description: 'Generated by create next app',
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ export default function RootLayout({
|
|||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<body className={inter.className}>{children}</body>
|
<body className={Font.className}>{children}</body>
|
||||||
</html>
|
</html>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user