From 69ff5e14330ced1756c40a771ccbd71b42b649aa Mon Sep 17 00:00:00 2001 From: Sean S Date: Tue, 14 Jan 2025 17:03:18 -0500 Subject: [PATCH] small changes --- src/app/Builder/page.tsx | 185 +++++++++++++++++++++++++-------------- tailwind.config.ts | 10 +-- 2 files changed, 124 insertions(+), 71 deletions(-) diff --git a/src/app/Builder/page.tsx b/src/app/Builder/page.tsx index 9b8e50c..c25f6b1 100644 --- a/src/app/Builder/page.tsx +++ b/src/app/Builder/page.tsx @@ -1,100 +1,153 @@ -import { ChevronDownIcon } from "@heroicons/react/20/solid"; -import { getPSA, getLowerBuildKits, getGrips } from "@queries/PSA"; -import { psa } from "@schemas/schema"; -import partTypes from "src/data/parts_cats.json"; +import { PlusIcon } from "@heroicons/react/24/outline"; +import Link from 'next/link'; -export default async function BuilderPage() { - const psa = await getGrips(); +import { Fragment } from "react"; + +const partsData = [ + { + group: "Lower Parts", + parts: [ + { + name: "Lower Receiver", + link: "/lowers", + source: "Palmetto State Armory", + price: "199.99", + ship_price: "8.99", + }, + { + name: "Lower Parts Kit", + source: "-", + price: "-", + ship_price: "-", + }, + { + name: "Lower Parts Kit", + source: "-", + price: "-", + ship_price: "-", + }, + { + name: "Lower Parts Kit", + source: "-", + price: "-", + ship_price: "-", + }, + { + name: "Lower Parts Kit", + source: "-", + price: "-", + ship_price: "-", + }, + ], + }, + { + group: "Upper Parts", + parts: [ + { name: "Upper Reciever", source: "-", price: "-", ship_price: "-" }, + { name: "Barrel", source: "-", price: "-", ship_price: "-" }, + { name: "BCG", source: "-", price: "-", ship_price: "-" }, + { name: "Muzzle Device", source: "-", price: "-", ship_price: "-" }, + { + name: "Charging Handle", + source: "-", + price: "-", + ship_price: "-", + }, + ], + }, +]; + +export default function BuilderPage() { return ( -
+
-

Users

-

- A list of all the Grips We Could Find{" "} -

+

+ Choose your Components +

- - +
+ + {/* Need to Fix Headers to align with other product tables */} + - - {psa.map((psa) => ( - - - - - - + + {/* Need to fix this to pull in parts that a user chooses during build process */} + {partsData.map((group, groupIndex) => ( + + + + + {group.parts.map((part, partIndex) => ( + + + + + + + + ))} + ))}
- - Component - - - + Components - - Manufacturer - - - + Source - - Price - - - + Price - - Purchase - - - + Shipping + + Purchase
- {psa.productName} - - {psa.brandName} - - {psa.retailPrice} - - {psa.salePrice} -
+ {group.group} +
+ {part.name} + + {part.source} + + {part.price} + + {part.ship_price} + + +
diff --git a/tailwind.config.ts b/tailwind.config.ts index 4ee43d0..d607e67 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -53,11 +53,11 @@ export default { '5': 'hsl(var(--chart-5))' } }, - borderRadius: { - lg: 'var(--radius)', - md: 'calc(var(--radius) - 2px)', - sm: 'calc(var(--radius) - 4px)' - } + // borderRadius: { + // lg: 'var(--radius)', + // md: 'calc(var(--radius) - 2px)', + // sm: 'calc(var(--radius) - 4px)' + // } } }, plugins: [require("tailwindcss-animate")],