From d8484372d43370b62625d8e36026876d10bbcbc7 Mon Sep 17 00:00:00 2001 From: 8liam Date: Wed, 25 Nov 2026 23:31:56 +1000 Subject: [PATCH] feat(item-thumb): trade the halftone for topographic contours Thumbs and the inspect stage now share a contour-line mask (5.1 kB) that fades at the centre so the skin keeps contrast. The halftone class and component are renamed to backdrop. --- .../item-inspect-card.component.tsx | 4 +- .../item-thumb/item-thumb-halftone.svg | 105 ------------------ src/components/item-thumb/item-thumb-topo.svg | 24 ++++ .../item-thumb/item-thumb.component.tsx | 6 +- .../item-thumb/item-thumb.config.ts | 2 +- src/components/item-thumb/item-thumb.css | 8 +- 6 files changed, 34 insertions(+), 115 deletions(-) delete mode 100644 src/components/item-thumb/item-thumb-halftone.svg create mode 100644 src/components/item-thumb/item-thumb-topo.svg diff --git a/src/components/item-inspect-card/item-inspect-card.component.tsx b/src/components/item-inspect-card/item-inspect-card.component.tsx index c21cea7..95aef05 100644 --- a/src/components/item-inspect-card/item-inspect-card.component.tsx +++ b/src/components/item-inspect-card/item-inspect-card.component.tsx @@ -1,7 +1,7 @@ import { ImageOff } from "lucide-react"; import { Chip } from "~/components/chip/chip.component"; import { FloatBar } from "~/components/float-bar/float-bar.component"; -import { ItemThumbHalftone } from "~/components/item-thumb/item-thumb.component"; +import { ItemThumbBackdrop } from "~/components/item-thumb/item-thumb.component"; import { attachedCharmsValue } from "~/lib/items/charm-value"; import { floatRangeSpan, isOnScale, wearBandFor } from "~/lib/items/float-bar"; import { formatDateTime, formatFloatExact, formatMoney } from "~/utils/format"; @@ -48,7 +48,7 @@ export function ItemInspectCard({ item, currency, now }: ItemInspectCardProps) { return (
- + {item.rarityColor !== null && ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/components/item-thumb/item-thumb-topo.svg b/src/components/item-thumb/item-thumb-topo.svg new file mode 100644 index 0000000..d31cd0a --- /dev/null +++ b/src/components/item-thumb/item-thumb-topo.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/item-thumb/item-thumb.component.tsx b/src/components/item-thumb/item-thumb.component.tsx index a6f88c1..5d93fbd 100644 --- a/src/components/item-thumb/item-thumb.component.tsx +++ b/src/components/item-thumb/item-thumb.component.tsx @@ -5,11 +5,11 @@ import { ITEM_THUMB } from "./item-thumb.config"; import type { ItemThumbProps } from "./item-thumb.types"; /** Shared one-layer mask. Only the paint colour changes between items. */ -export function ItemThumbHalftone({ rarityColor }: Pick) { +export function ItemThumbBackdrop({ rarityColor }: Pick) { return ( ); @@ -27,7 +27,7 @@ export function ItemThumb({ const loaded = imageUrl !== null && (loadedUrl === imageUrl || isImageLoaded(imageUrl)); return (
- + {/* Rarity is item data: a 2px key along the bottom edge, never a wash. */} {showRarityBar && rarityColor && (