From 6aa98d696f49b7277671403f6183fde418339935 Mon Sep 17 00:00:00 2001 From: zach Date: Mon, 16 Feb 2026 18:06:22 -0500 Subject: [PATCH] more card styling changes, moved card and cardgrid to componenets, added placeholder for filters/search --- src/assets/css/main.scss | 6 ++++-- src/pages/pokemon.astro | 22 +++++++++------------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/src/assets/css/main.scss b/src/assets/css/main.scss index 52b4f0b..8046131 100644 --- a/src/assets/css/main.scss +++ b/src/assets/css/main.scss @@ -1,17 +1,19 @@ @import '_bootstrap'; .copy-small { - font-size: 0.8rem; + font-size: 0.9rem; + opacity: .87; } .rarity-icon svg { - height: 16px; + height: 14.5px; width: auto; display: inline-block; } .price-label { color: hsl(122, 39%, 49%); + font-size: 0.825rem; } .price-label:nth-of-type(n+2) { diff --git a/src/pages/pokemon.astro b/src/pages/pokemon.astro index 0b18835..6a2e8ec 100644 --- a/src/pages/pokemon.astro +++ b/src/pages/pokemon.astro @@ -10,7 +10,7 @@ import { db } from '../db'; //const pokemon = await db.select().from(schema.cards).where(eq(schema.cards.productLineName, "pokemon")).limit(256); const pokemon = await db.query.cards.findMany({ where: { productLineName: "pokemon" }, - limit: 32, + limit: 320, with: { prices: true, } @@ -23,24 +23,20 @@ const order = ["Near Mint", "Lightly Played", "Moderately Played", "Heavily Play

Rigid's app thing

-
+
Inventory management placeholder
-
+
{pokemon.map((card) => (
{card.productName} -
-
{card.productName}
-
{card.number}
+
{card.productName}
+
+
{card.number}
+
-
-
- -
-
-
+
{card.prices .slice() .sort((a, b) => order.indexOf(a.condition) - order.indexOf(b.condition)) @@ -48,7 +44,7 @@ const order = ["Near Mint", "Lightly Played", "Moderately Played", "Heavily Play arr.findIndex(p => p.condition === price.condition) === index ) .map((price) => ( -
+
{price.condition.split(' ').map((w) => w[0]).join('')}
${price.marketPrice}