Clean up code. Install shadcnui elements for later

This commit is contained in:
2024-07-22 15:17:39 -05:00
parent 1df9bff71c
commit 9c680d459b
31 changed files with 3292 additions and 19 deletions

View File

@@ -1,18 +1,21 @@
"use server";
import { auth } from "~/auth";
import No_Session from "~/components/auth/No_Session";
import TT_Header from "~/components/ui/TT_Header";
import Techs from "~/components/ui/Techs";
import Header from "~/components/ui/Header";
import { getEmployees } from "~/server/functions";
import TechTable from "~/components/ui/TechTable";
export default async function HomePage() {
const session = await auth();
if (!session) {
return <No_Session />
} else {
const employees = await getEmployees();
return (
<main className="min-h-screen
bg-gradient-to-b from-[#111111] to-[#212325]">
<TT_Header />
<Techs />
<Header />
<TechTable employees={employees}/>
</main>
);
}