diff --git a/bun.lockb b/bun.lockb index 1a2253d3..ccfaf062 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 84f25650..7cbf640d 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "@auth/drizzle-adapter": "^0.3.2", "@planetscale/database": "^1.11.0", "@t3-oss/env-nextjs": "^0.7.0", + "@tailwindcss/forms": "^0.5.6", "@tanstack/react-query": "^4.32.6", "@trpc/client": "^10.37.1", "@trpc/next": "^10.37.1", diff --git a/src/app/boards/layout.tsx b/src/app/boards/layout.tsx new file mode 100644 index 00000000..75bc7679 --- /dev/null +++ b/src/app/boards/layout.tsx @@ -0,0 +1,77 @@ +import Link from "next/link"; +import Image from "next/image"; +import { redirect } from "next/navigation"; + +import { getServerAuthSession } from "~/server/auth"; + +const navigation = [ + { name: "Boards", href: "/boards", icon: null, current: true }, +]; + +function classNames(...classes: string[]): string { + return classes.filter(Boolean).join(" "); +} + +const NavButton: React.FC<{ + href: string; + current: boolean; + name: string; +}> = ({ href, current, name }) => ( + + {name} + +); + +export default async function Layout(props: { children: React.ReactNode }) { + const session = await getServerAuthSession(); + + if (!session?.user) redirect("api/auth/signin"); + + return ( +
+
+
+

+ 貫 kan +

+
+
+ +
+ +
{props.children}
+
+
+ ); +} diff --git a/src/app/boards/page.tsx b/src/app/boards/page.tsx new file mode 100644 index 00000000..5bc717aa --- /dev/null +++ b/src/app/boards/page.tsx @@ -0,0 +1,5 @@ +"use client"; + +export default function BoardsPage() { + return
; +} diff --git a/src/server/auth.ts b/src/server/auth.ts index 98d7ba72..81613bc6 100644 --- a/src/server/auth.ts +++ b/src/server/auth.ts @@ -4,9 +4,7 @@ import { type DefaultSession, type NextAuthOptions, } from "next-auth"; -import DiscordProvider from "next-auth/providers/discord"; -import { env } from "~/env.mjs"; import { db } from "~/server/db"; import { mysqlTable } from "~/server/db/schema"; diff --git a/tailwind.config.ts b/tailwind.config.ts index f06488f9..6a0a6b20 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -1,14 +1,30 @@ import { type Config } from "tailwindcss"; -import { fontFamily } from "tailwindcss/defaultTheme"; export default { content: ["./src/**/*.tsx"], theme: { extend: { fontFamily: { - sans: ["var(--font-sans)", ...fontFamily.sans], + 'sans': ['Plus Jakarta Sans'] + }, + fontSize: { + sm: "0.8rem", + }, + colors: { + "dark-50": "#161616", + "dark-100": "#1c1c1c", + "dark-200": "#232323", + "dark-300": "#282828", + "dark-400": "#2e2e2e", + "dark-500": "#343434", + "dark-600": "#3e3e3e", + "dark-700": "#505050", + "dark-800": "#707070", + "dark-900": "#7e7e7e", + "dark-950": "#bbb", + "dark-1000": "#ededed", }, }, }, - plugins: [], + plugins: [require("@tailwindcss/forms")], } satisfies Config;