Next.js Discord

Discord Forum

Issue with output

Unanswered
Mugger Crocodile posted this in #help-forum
Open in Discord
Mugger CrocodileOP
Here's my source code
Layout.tsx
import './globals.css'

export const metadata = {
  title: '',
  description: ''
}

export default function RootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <html lang="en">
      <head />
      <body className='bg-black'>
        <div className='flex'>
          {/* Sidebar */}

          {/* Client provider */}
         <div className="bg-[#343543] flex-1"> {children}</div>
        </div>
      </body>
    </html>
  )
}

Page.tsx
export default function Home() {
  return (
   <main>
    <h1>Chat-gpt Messenger</h1>
   </main>
    
  )
}

0 Replies