fp/packages/next/app/layout.tsx

77 lines
1.8 KiB
TypeScript
Raw Normal View History

2024-01-20 16:16:14 +00:00
import { ReactNode } from 'react'
import Footer from "./components/footer"
import Navbar from "./components/navbar"
2024-03-29 07:28:02 +00:00
import "bulma"
import "../assets/styles/global.css";
2024-01-20 16:16:14 +00:00
import "@fortawesome/fontawesome-svg-core/styles.css";
import { AuthProvider } from './components/auth';
import type { Metadata } from 'next';
import NotificationCenter from './components/notification-center';
2024-05-20 23:47:14 +00:00
// import {
// QueryClientProvider,
// QueryClient
// } from '@tanstack/react-query'
2024-01-20 16:16:14 +00:00
// import NextTopLoader from 'nextjs-toploader';
// import Ipfs from './components/ipfs'; // slows down the page too much
2024-05-20 23:47:14 +00:00
// const queryClient = new QueryClient()
2024-01-20 16:16:14 +00:00
export const metadata: Metadata = {
title: 'Futureporn.net',
description: "The Galaxy's Best VTuber Hentai Site",
other: {
RATING: 'RTA-5042-1996-1400-1577-RTA'
},
metadataBase: new URL('https://futureporn.net'),
twitter: {
site: '@futureporn_net',
creator: '@cj_clippy'
},
alternates: {
types: {
'application/atom+xml': '/feed/feed.xml',
'application/rss+xml': '/feed/rss.xml',
'application/json': '/feed/feed.json'
}
}
}
type Props = {
children: ReactNode;
}
export default function RootLayout({
children,
}: Props) {
return (
<html lang="en">
<body>
{/* <NextTopLoader
color="#ac0722"
initialPosition={0.08}
crawlSpeed={200}
height={3}
crawl={true}
showSpinner={false}
easing="ease"
speed={200}
shadow="0 0 10px #2299DD,0 0 5px #2299DD"
/> */}
<AuthProvider>
2024-05-20 23:47:14 +00:00
{/* <QueryClientProvider client={queryClient}> */}
2024-01-20 16:16:14 +00:00
<Navbar />
<NotificationCenter />
<div className="container">
{children}
<Footer />
</div>
2024-05-20 23:47:14 +00:00
{/* </QueryClientProvider> */}
2024-01-20 16:16:14 +00:00
</AuthProvider>
</body>
</html>
)
}