From e59627742bce47685b97be42f944a91fc812f1d0 Mon Sep 17 00:00:00 2001 From: Dan Reeves Date: Thu, 12 Oct 2023 01:41:22 +0100 Subject: [PATCH] Store style fixes --- app/routes/armoury.$character.$store.tsx | 134 +++++++++++++---------- 1 file changed, 78 insertions(+), 56 deletions(-) diff --git a/app/routes/armoury.$character.$store.tsx b/app/routes/armoury.$character.$store.tsx index b870cd6..9a5f0be 100644 --- a/app/routes/armoury.$character.$store.tsx +++ b/app/routes/armoury.$character.$store.tsx @@ -1,13 +1,9 @@ -import { Checkbox, Form, FormGroup, Select } from "~/components/Form" +import { Form } from "~/components/Form" import { Form as RemixForm, useLoaderData, useNavigation, } from "@remix-run/react" -import { - ChevronDoubleUpIcon, - CircleStackIcon, -} from "@heroicons/react/24/outline" import type { ActionArgs, LoaderArgs } from "@remix-run/node" import { redirect, json } from "@remix-run/node" import { z } from "zod" @@ -28,6 +24,20 @@ import { Img } from "~/components/Img" import { t } from "~/data/localization.server" import { getWeaponTemplate } from "~/data/weaponTemplates.server" import { twMerge } from "tailwind-merge" +import { Checkbox } from "~/components/ui/checkbox" +import { Label } from "~/components/ui/label" +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "~/components/ui/select" +import { SelectGroup } from "@radix-ui/react-select" +import { titleCase } from "~/utils/titleCase" +import { ChevronsUp, Database } from "lucide-react" +import { Button } from "~/components/ui/button" +import { cn } from "~/lib/utils" let storeSlugToType: Record = { exchange: "credits", @@ -299,15 +309,15 @@ export async function loader({ request, params }: LoaderArgs) { } let rarityBorder: Record = { - 1: "border-l-neutral-600 from-neutral-100", - 2: "border-l-green-600 from-green-50", - 3: "border-l-blue-600 from-blue-50", - 4: "border-l-purple-600 from-purple-50", - 5: "border-l-orange-600 from-orange-50", + 1: "border-l-foreground/60", + 2: "border-l-green-600", + 3: "border-l-blue-600", + 4: "border-l-purple-600", + 5: "border-l-orange-600", } let rarityColor: Record = { - 1: "text-neutral-800", + 1: "text-foreground/60", 2: "text-green-800", 3: "text-blue-800", 4: "text-purple-800", @@ -321,16 +331,60 @@ export default function Exchange() { let { offers, wallet } = useLoaderData() return ( - <> +
+
+
+ +
+ {["melee", "ranged", "curio"].map((kind) => ( +
+ + +
+ ))} +
+
+ +
+ + +
+ + {wallet && wallet.balance ? ( +
+
+
+
+ ) : null} +
+ {offers.map((offer) => (
-
-
) }