feat: add root layout and redirect page

This commit is contained in:
thesn10
2026-06-24 23:39:55 +02:00
parent 3cffe89620
commit e5229d2138
2 changed files with 32 additions and 0 deletions

27
app/src/app/layout.tsx Normal file
View File

@@ -0,0 +1,27 @@
import type { ReactNode } from 'react'
import { WalletProviders } from '@/providers/WalletProviders'
import { ToastProvider } from '@/components/ui/Toast'
import { Nav } from '@/components/Nav'
import '@/styles/globals.css'
export const metadata = {
title: 'Solisting Explorer',
description: 'Explorer for the Solisting protocol on Solana',
}
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="en">
<body>
<WalletProviders>
<ToastProvider>
<Nav />
<main style={{ maxWidth: 1200, margin: '0 auto', padding: '32px 22px 90px' }}>
{children}
</main>
</ToastProvider>
</WalletProviders>
</body>
</html>
)
}

5
app/src/app/page.tsx Normal file
View File

@@ -0,0 +1,5 @@
import { redirect } from 'next/navigation'
export default function Home() {
redirect('/listings')
}