chore: init
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
import { handlers } from '~/auth'
|
||||
export const { GET, POST } = handlers
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
@@ -0,0 +1,18 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
:root {
|
||||
--foreground-rgb: 0, 0, 0;
|
||||
--background-start-rgb: 214, 219, 220;
|
||||
--background-end-rgb: 255, 255, 255;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--foreground-rgb: 255, 255, 255;
|
||||
--background-start-rgb: 0, 0, 0;
|
||||
--background-end-rgb: 0, 0, 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Metadata } from "next"
|
||||
import { Inter } from "next/font/google"
|
||||
import "./globals.css"
|
||||
import Header from "~/components/header"
|
||||
import { TRPCReactProvider } from "~/trpc/react"
|
||||
import { auth } from "~/auth"
|
||||
|
||||
const inter = Inter({ subsets: ["latin"] })
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
}
|
||||
|
||||
export default async function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body className={inter.className}>
|
||||
<TRPCReactProvider session={await auth()}>
|
||||
<Header />
|
||||
{children}
|
||||
</TRPCReactProvider>
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
"use client"
|
||||
|
||||
import { Suspense } from "react";
|
||||
import { auth } from "~/auth";
|
||||
import { TodoList } from "~/components/todo-list";
|
||||
|
||||
export default function Home() {
|
||||
|
||||
|
||||
return <>
|
||||
<Suspense fallback={null}>
|
||||
<TodoList></TodoList>
|
||||
</Suspense>
|
||||
</>
|
||||
}
|
||||
Reference in New Issue
Block a user