Quik changes

This commit is contained in:
Atridad Lahiji 2023-08-29 18:14:54 -06:00 committed by atridadl
parent 1e64da3251
commit c0cf4a87cf
No known key found for this signature in database
4 changed files with 16 additions and 29 deletions

View file

@ -14,17 +14,11 @@ import { isAdmin, isVIP } from "~/utils/helpers";
export const dynamic = "force-dynamic";
const Home: NextPage = () => {
const Home = () => {
return (
<>
<Head>
<title>Sprint Padawan</title>
<meta name="description" content="Plan. Sprint. Repeat." />
</Head>
<div className="flex flex-col text-center items-center justify-center px-4 py-16 gap-4">
<HomePageBody />
</div>
</>
<div className="flex flex-col text-center items-center justify-center px-4 py-16 gap-4">
<HomePageBody />
</div>
);
};

View file

@ -1,6 +1,6 @@
import { ClerkProvider } from "@clerk/nextjs";
import Footer from "~/app/_components/Footer";
import Navbar from "~/app/_components/Navbar";
import Header from "~/app/_components/Header";
import "~/styles/globals.css";
import Provider from "./_trpc/Provider";
@ -18,7 +18,7 @@ export default function RootLayout({
<ClerkProvider>
<html lang="en" className="h-[100%] w-[100%] fixed overflow-y-auto">
<body className="block h-[100%]">
<Navbar title="Sprint Padawan" />
<Header title="Sprint Padawan" />
<div className="flex flex-row items-center justify-center min-h-[calc(100%-114px)]">
<Provider>{children}</Provider>
</div>

View file

@ -30,25 +30,18 @@ import { trpc } from "~/app/_trpc/client";
export const dynamic = "force-dynamic";
const Room: NextPage = () => {
const Room = () => {
const { isSignedIn } = useUser();
return (
<>
<Head>
<title>Sprint Padawan</title>
<meta name="description" content="Plan. Sprint. Repeat." />
<meta http-equiv="Cache-control" content="no-cache" />
</Head>
<div className="flex flex-col items-center justify-center text-center gap-2">
{!isSignedIn ? (
<div className="flex items-center justify-center">
<span className="loading loading-dots loading-lg"></span>
</div>
) : (
<RoomBody />
)}
</div>
</>
<div className="flex flex-col items-center justify-center text-center gap-2">
{!isSignedIn ? (
<div className="flex items-center justify-center">
<span className="loading loading-dots loading-lg"></span>
</div>
) : (
<RoomBody />
)}
</div>
);
};