Merge pull request #47 from atridadl/dev
2.2.1 🚧 Fixed styling 🚧 Cleaned up page components to align with the Atash template
This commit is contained in:
commit
8b097dea7d
7 changed files with 22 additions and 50 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "sprintpadawan",
|
"name": "sprintpadawan",
|
||||||
"version": "2.2.0",
|
"version": "2.2.1",
|
||||||
"description": "Plan. Sprint. Repeat.",
|
"description": "Plan. Sprint. Repeat.",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -98,7 +98,6 @@ const RoomList = () => {
|
||||||
{roomsFromDb && roomsFromDb.length > 0 && (
|
{roomsFromDb && roomsFromDb.length > 0 && (
|
||||||
<div className="overflow-x-auto">
|
<div className="overflow-x-auto">
|
||||||
<table className="table text-center">
|
<table className="table text-center">
|
||||||
{/* head */}
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr className="border-white">
|
<tr className="border-white">
|
||||||
<th>Room Name</th>
|
<th>Room Name</th>
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import type { NextPage } from "next";
|
|
||||||
import Head from "next/head";
|
|
||||||
|
|
||||||
import RoomList from "~/app/_components/RoomList";
|
import RoomList from "~/app/_components/RoomList";
|
||||||
|
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
@ -14,17 +11,11 @@ import { isAdmin, isVIP } from "~/utils/helpers";
|
||||||
|
|
||||||
export const dynamic = "force-dynamic";
|
export const dynamic = "force-dynamic";
|
||||||
|
|
||||||
const Home: NextPage = () => {
|
const Home = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<div className="flex flex-col text-center items-center justify-center px-4 py-16 gap-4">
|
||||||
<Head>
|
<HomePageBody />
|
||||||
<title>Sprint Padawan</title>
|
</div>
|
||||||
<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>
|
|
||||||
</>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { ClerkProvider } from "@clerk/nextjs";
|
import { ClerkProvider } from "@clerk/nextjs";
|
||||||
import Footer from "~/app/_components/Footer";
|
import Footer from "~/app/_components/Footer";
|
||||||
import Navbar from "~/app/_components/Navbar";
|
import Header from "~/app/_components/Header";
|
||||||
import "~/styles/globals.css";
|
import "~/styles/globals.css";
|
||||||
import Provider from "./_trpc/Provider";
|
import Provider from "./_trpc/Provider";
|
||||||
|
|
||||||
|
@ -17,8 +17,8 @@ export default function RootLayout({
|
||||||
return (
|
return (
|
||||||
<ClerkProvider>
|
<ClerkProvider>
|
||||||
<html lang="en" className="h-[100%] w-[100%] fixed overflow-y-auto">
|
<html lang="en" className="h-[100%] w-[100%] fixed overflow-y-auto">
|
||||||
<body className="block h-[100%]">
|
<body className="h-[100%] w-[100%] fixed overflow-y-auto">
|
||||||
<Navbar title="Sprint Padawan" />
|
<Header title="Sprint Padawan" />
|
||||||
<div className="flex flex-row items-center justify-center min-h-[calc(100%-114px)]">
|
<div className="flex flex-row items-center justify-center min-h-[calc(100%-114px)]">
|
||||||
<Provider>{children}</Provider>
|
<Provider>{children}</Provider>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,19 +1,10 @@
|
||||||
import { type NextPage } from "next";
|
|
||||||
import Head from "next/head";
|
|
||||||
|
|
||||||
export const dynamic = "force-static";
|
export const dynamic = "force-static";
|
||||||
|
|
||||||
const Home: NextPage = () => {
|
const Home = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<div className="flex flex-col text-center items-center justify-center px-4 py-16 gap-4">
|
||||||
<Head>
|
<HomePageBody />
|
||||||
<title>Sprint Padawan</title>
|
</div>
|
||||||
<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>
|
|
||||||
</>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { type NextPage } from "next";
|
|
||||||
import Head from "next/head";
|
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { EventTypes } from "~/utils/types";
|
import { EventTypes } from "~/utils/types";
|
||||||
|
@ -30,25 +28,18 @@ import { trpc } from "~/app/_trpc/client";
|
||||||
|
|
||||||
export const dynamic = "force-dynamic";
|
export const dynamic = "force-dynamic";
|
||||||
|
|
||||||
const Room: NextPage = () => {
|
const Room = () => {
|
||||||
const { isSignedIn } = useUser();
|
const { isSignedIn } = useUser();
|
||||||
return (
|
return (
|
||||||
<>
|
<div className="flex flex-col items-center justify-center text-center gap-2">
|
||||||
<Head>
|
{!isSignedIn ? (
|
||||||
<title>Sprint Padawan</title>
|
<div className="flex items-center justify-center">
|
||||||
<meta name="description" content="Plan. Sprint. Repeat." />
|
<span className="loading loading-dots loading-lg"></span>
|
||||||
<meta http-equiv="Cache-control" content="no-cache" />
|
</div>
|
||||||
</Head>
|
) : (
|
||||||
<div className="flex flex-col items-center justify-center text-center gap-2">
|
<RoomBody />
|
||||||
{!isSignedIn ? (
|
)}
|
||||||
<div className="flex items-center justify-center">
|
</div>
|
||||||
<span className="loading loading-dots loading-lg"></span>
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
<RoomBody />
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue