diff --git a/components/shop/shop-content.tsx b/components/shop/shop-content.tsx index 7d11b90..2915702 100644 --- a/components/shop/shop-content.tsx +++ b/components/shop/shop-content.tsx @@ -70,9 +70,18 @@ function ShopItemCard({
-
+
{room ? ( -
+ item.image_path ? ( + // eslint-disable-next-line @next/next/no-img-element + + ) : ( +
+ ) ) : ( + + + + + + + + + + + + + diff --git a/public/shop/room-night.svg b/public/shop/room-night.svg new file mode 100644 index 0000000..74d0f30 --- /dev/null +++ b/public/shop/room-night.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/supabase/migrations/20260525100000_shop_catalog_upsert.sql b/supabase/migrations/20260525100000_shop_catalog_upsert.sql index 7490df7..95ae6e6 100644 --- a/supabase/migrations/20260525100000_shop_catalog_upsert.sql +++ b/supabase/migrations/20260525100000_shop_catalog_upsert.sql @@ -33,8 +33,8 @@ values ('head-5', 'Head 5', 'head', 50, '/character/head/head-5.png'), ('head-6', 'Head 6', 'head', 55, '/character/head/head-6.png'), ('head-7', 'Head 7', 'head', 60, '/character/head/head-7.png'), - ('room-night', 'Starlit Night', 'room', 40, ''), - ('room-forest', 'Mystic Forest', 'room', 50, '') + ('room-night', 'Starlit Night', 'room', 40, '/shop/room-night.svg'), + ('room-forest', 'Mystic Forest', 'room', 50, '/shop/room-forest.svg') on conflict (id) do update set name = excluded.name, diff --git a/supabase/migrations/20260525120000_room_shop_preview_paths.sql b/supabase/migrations/20260525120000_room_shop_preview_paths.sql new file mode 100644 index 0000000..62c8aee --- /dev/null +++ b/supabase/migrations/20260525120000_room_shop_preview_paths.sql @@ -0,0 +1,9 @@ +-- Placeholder shop preview images for paid room backgrounds. + +update public.shop_items +set image_path = '/shop/room-night.svg' +where id = 'room-night'; + +update public.shop_items +set image_path = '/shop/room-forest.svg' +where id = 'room-forest'; diff --git a/supabase/seed.sql b/supabase/seed.sql index a9eb64b..ceb6074 100644 --- a/supabase/seed.sql +++ b/supabase/seed.sql @@ -33,8 +33,8 @@ values ('head-5', 'Head 5', 'head', 50, '/character/head/head-5.png'), ('head-6', 'Head 6', 'head', 55, '/character/head/head-6.png'), ('head-7', 'Head 7', 'head', 60, '/character/head/head-7.png'), - ('room-night', 'Starlit Night', 'room', 40, ''), - ('room-forest', 'Mystic Forest', 'room', 50, '') + ('room-night', 'Starlit Night', 'room', 40, '/shop/room-night.svg'), + ('room-forest', 'Mystic Forest', 'room', 50, '/shop/room-forest.svg') on conflict (id) do update set name = excluded.name,