diff --git a/src/app/components/claim-profile.tsx b/src/app/components/player/claim-profile.tsx
similarity index 80%
rename from src/app/components/claim-profile.tsx
rename to src/app/components/player/claim-profile.tsx
index da263de..a2e9f4d 100644
--- a/src/app/components/claim-profile.tsx
+++ b/src/app/components/player/claim-profile.tsx
@@ -2,11 +2,11 @@
import { CheckIcon } from "@heroicons/react/24/solid";
import { useLiveQuery } from "dexie-react-hooks";
-import { setPlayerIdCookie } from "../common/website-utils";
-import useDatabase from "../hooks/use-database";
-import { useToast } from "../hooks/use-toast";
-import { Button } from "./ui/button";
-import { Tooltip, TooltipContent, TooltipTrigger } from "./ui/tooltip";
+import { setPlayerIdCookie } from "../../common/website-utils";
+import useDatabase from "../../hooks/use-database";
+import { useToast } from "../../hooks/use-toast";
+import { Button } from "../ui/button";
+import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip";
type Props = {
/**
diff --git a/src/app/components/player/player-sub-name.tsx b/src/app/components/player/player-sub-name.tsx
new file mode 100644
index 0000000..9fdc754
--- /dev/null
+++ b/src/app/components/player/player-sub-name.tsx
@@ -0,0 +1,13 @@
+type Props = {
+ icon?: React.ReactNode;
+ children: React.ReactNode;
+};
+
+export default function PlayerSubName({ icon, children }: Props) {
+ return (
+
+ {icon}
+ {children}
+
+ );
+}
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 3a00c27..7eef23b 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -63,8 +63,10 @@ export default function RootLayout({
-
- {children}
+
+
+ {children}
+
diff --git a/src/middleware.ts b/src/middleware.ts
index 42aa3fa..28b1e81 100644
--- a/src/middleware.ts
+++ b/src/middleware.ts
@@ -8,7 +8,7 @@ export function middleware(request: NextRequest) {
const playerIdCookie = cookies.get("playerId");
if (pathname == "/") {
if (playerIdCookie) {
- return NextResponse.redirect(new URL(`/player/${playerIdCookie.value}/top/1`, request.url));
+ return NextResponse.redirect(new URL(`/player/${playerIdCookie.value}`, request.url));
} else {
return NextResponse.redirect(new URL("/search", request.url));
}
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 0aecfcc..3efdbe6 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -1,62 +1,63 @@
import type { Config } from "tailwindcss";
const config: Config = {
- darkMode: ["class"],
- content: [
+ darkMode: ["class"],
+ content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
- extend: {
- colors: {
- background: 'hsl(var(--background))',
- foreground: 'hsl(var(--foreground))',
- card: {
- DEFAULT: 'hsl(var(--card))',
- foreground: 'hsl(var(--card-foreground))'
- },
- popover: {
- DEFAULT: 'hsl(var(--popover))',
- foreground: 'hsl(var(--popover-foreground))'
- },
- primary: {
- DEFAULT: 'hsl(var(--primary))',
- foreground: 'hsl(var(--primary-foreground))'
- },
- secondary: {
- DEFAULT: 'hsl(var(--secondary))',
- foreground: 'hsl(var(--secondary-foreground))'
- },
- muted: {
- DEFAULT: 'hsl(var(--muted))',
- foreground: 'hsl(var(--muted-foreground))'
- },
- accent: {
- DEFAULT: 'hsl(var(--accent))',
- foreground: 'hsl(var(--accent-foreground))'
- },
- destructive: {
- DEFAULT: 'hsl(var(--destructive))',
- foreground: 'hsl(var(--destructive-foreground))'
- },
- border: 'hsl(var(--border))',
- input: 'hsl(var(--input))',
- ring: 'hsl(var(--ring))',
- chart: {
- '1': 'hsl(var(--chart-1))',
- '2': 'hsl(var(--chart-2))',
- '3': 'hsl(var(--chart-3))',
- '4': 'hsl(var(--chart-4))',
- '5': 'hsl(var(--chart-5))'
- }
- },
- borderRadius: {
- lg: 'var(--radius)',
- md: 'calc(var(--radius) - 2px)',
- sm: 'calc(var(--radius) - 4px)'
- }
- }
+ extend: {
+ colors: {
+ pp: "text-purple-400",
+ background: "hsl(var(--background))",
+ foreground: "hsl(var(--foreground))",
+ card: {
+ DEFAULT: "hsl(var(--card))",
+ foreground: "hsl(var(--card-foreground))",
+ },
+ popover: {
+ DEFAULT: "hsl(var(--popover))",
+ foreground: "hsl(var(--popover-foreground))",
+ },
+ primary: {
+ DEFAULT: "hsl(var(--primary))",
+ foreground: "hsl(var(--primary-foreground))",
+ },
+ secondary: {
+ DEFAULT: "hsl(var(--secondary))",
+ foreground: "hsl(var(--secondary-foreground))",
+ },
+ muted: {
+ DEFAULT: "hsl(var(--muted))",
+ foreground: "hsl(var(--muted-foreground))",
+ },
+ accent: {
+ DEFAULT: "hsl(var(--accent))",
+ foreground: "hsl(var(--accent-foreground))",
+ },
+ destructive: {
+ DEFAULT: "hsl(var(--destructive))",
+ foreground: "hsl(var(--destructive-foreground))",
+ },
+ border: "hsl(var(--border))",
+ input: "hsl(var(--input))",
+ ring: "hsl(var(--ring))",
+ chart: {
+ "1": "hsl(var(--chart-1))",
+ "2": "hsl(var(--chart-2))",
+ "3": "hsl(var(--chart-3))",
+ "4": "hsl(var(--chart-4))",
+ "5": "hsl(var(--chart-5))",
+ },
+ },
+ borderRadius: {
+ lg: "var(--radius)",
+ md: "calc(var(--radius) - 2px)",
+ sm: "calc(var(--radius) - 4px)",
+ },
+ },
},
plugins: [require("tailwindcss-animate")],
};