From e113bad21922bbf7847c5dcc60bf3ab0d9aafb3d Mon Sep 17 00:00:00 2001 From: Polaris Date: Sun, 28 Jul 2024 01:10:53 -0400 Subject: [PATCH] styled userbox page and removed sticky nav --- prettier.config.json => .prettierrc.json | 0 .../avatarcustomization/page.tsx | 21 ++++++++++--------- .../mapiconcustomization/page.tsx | 19 ++++++++++------- .../nameplatecustomization/page.tsx | 19 ++++++++++------- .../systemvoicecustomization/page.tsx | 19 ++++++++++------- .../trophycustomization/page.tsx | 12 ++++++----- components/navigationbar/desktopNavBar.tsx | 1 - components/navigationbar/navigationbar.tsx | 4 ++-- 8 files changed, 53 insertions(+), 42 deletions(-) rename prettier.config.json => .prettierrc.json (100%) diff --git a/prettier.config.json b/.prettierrc.json similarity index 100% rename from prettier.config.json rename to .prettierrc.json diff --git a/components/(customization)/avatarcustomization/page.tsx b/components/(customization)/avatarcustomization/page.tsx index f24170e..d25e2b0 100644 --- a/components/(customization)/avatarcustomization/page.tsx +++ b/components/(customization)/avatarcustomization/page.tsx @@ -216,7 +216,17 @@ export const AvatarCustomization: FC = ({ }; return ( -
+
+ {/* Avatar Customization Section */} +
+
+ {Object.entries(AvatarTextures).map(([key, { className, src }]) => ( +
+ {""} +
+ ))} +
+
@@ -546,15 +556,6 @@ export const AvatarCustomization: FC = ({
{/* Avatar Customization Section */} -
-
- {Object.entries(AvatarTextures).map(([key, { className, src }]) => ( -
- {""} -
- ))} -
-
); }; diff --git a/components/(customization)/mapiconcustomization/page.tsx b/components/(customization)/mapiconcustomization/page.tsx index 52b6a5e..8fc96df 100644 --- a/components/(customization)/mapiconcustomization/page.tsx +++ b/components/(customization)/mapiconcustomization/page.tsx @@ -104,7 +104,17 @@ export const MapIconCustomization: FC = ({ }; return ( -
+
+ {/* Avatar Customization Section */} +
+
+ {Object.entries(AvatarTextures).map(([key, { src }]) => ( +
+ {""} +
+ ))} +
+
= ({ -
- {Object.entries(AvatarTextures).map(([key, { src }]) => ( -
- -
- ))} -
); }; diff --git a/components/(customization)/nameplatecustomization/page.tsx b/components/(customization)/nameplatecustomization/page.tsx index 902242e..4a37aaa 100644 --- a/components/(customization)/nameplatecustomization/page.tsx +++ b/components/(customization)/nameplatecustomization/page.tsx @@ -104,7 +104,17 @@ export const NameplateCustomization: FC = ({ }; return ( -
+
+ {/* Avatar Customization Section */} +
+
+ {Object.entries(AvatarTextures).map(([key, { src }]) => ( +
+ {""} +
+ ))} +
+
= ({ -
- {Object.entries(AvatarTextures).map(([key, { src }]) => ( -
- -
- ))} -
); }; diff --git a/components/(customization)/systemvoicecustomization/page.tsx b/components/(customization)/systemvoicecustomization/page.tsx index 644c4c1..cb6f85f 100644 --- a/components/(customization)/systemvoicecustomization/page.tsx +++ b/components/(customization)/systemvoicecustomization/page.tsx @@ -107,7 +107,17 @@ export const SystemVoiceCustomization: FC = ({ }; return ( -
+
+ {/* Avatar Customization Section */} +
+
+ {Object.entries(AvatarTextures).map(([key, { src }]) => ( +
+ {""} +
+ ))} +
+
= ({ -
- {Object.entries(AvatarTextures).map(([key, { src }]) => ( -
- -
- ))} -
); }; diff --git a/components/(customization)/trophycustomization/page.tsx b/components/(customization)/trophycustomization/page.tsx index 610a420..69143c5 100644 --- a/components/(customization)/trophycustomization/page.tsx +++ b/components/(customization)/trophycustomization/page.tsx @@ -87,7 +87,9 @@ export const TrophyCustomization: FC = ({ } return ( -
+
+ {/* Avatar Customization Section */} +
@@ -105,12 +107,12 @@ export const TrophyCustomization: FC = ({ role="combobox" className={cn( "w-[300px] justify-between", - !field.value && "text-muted-foreground" + !field.value && "text-muted-foreground", )} > {field.value ? playerTrophySelectionData.statictrophies.find( - (part) => part.id === field.value + (part) => part.id === field.value, )?.str : "Select Trophy"} @@ -136,12 +138,12 @@ export const TrophyCustomization: FC = ({ "mr-2 h-4 w-4", part.id === field.value ? "opacity-100" - : "opacity-0" + : "opacity-0", )} /> {part.str} - ) + ), )} diff --git a/components/navigationbar/desktopNavBar.tsx b/components/navigationbar/desktopNavBar.tsx index eaa1072..f27be3c 100644 --- a/components/navigationbar/desktopNavBar.tsx +++ b/components/navigationbar/desktopNavBar.tsx @@ -2,7 +2,6 @@ import Link from "next/link"; import { usePathname } from "next/navigation"; -import { ModeToggle } from "../darkmode"; const NAV_ITEMS = [ { href: "/home", label: "Home" }, diff --git a/components/navigationbar/navigationbar.tsx b/components/navigationbar/navigationbar.tsx index be0489b..384fcd0 100644 --- a/components/navigationbar/navigationbar.tsx +++ b/components/navigationbar/navigationbar.tsx @@ -23,7 +23,7 @@ const HeaderNavigation = async () => { return ( <> {user && ( -
+
@@ -81,7 +81,7 @@ const HeaderNavigation = async () => { )} -