tip #43: Lightbox for item images
This commit is contained in:
@@ -35,3 +35,4 @@ Going forward, new tips are pushed automatically by the `mc_survival_tips.py` cr
|
|||||||
- [Tip #40](tips/2026-07-21-040-i18n-add-english-ui-translation.md) (2026-07-21) — **i18n**: Add English UI translation
|
- [Tip #40](tips/2026-07-21-040-i18n-add-english-ui-translation.md) (2026-07-21) — **i18n**: Add English UI translation
|
||||||
- [Tip #41](tips/2026-07-22-041-social-dynamic-og-image-share-previews.md) (2026-07-22) — **social**: Dynamic OG-Image share previews
|
- [Tip #41](tips/2026-07-22-041-social-dynamic-og-image-share-previews.md) (2026-07-22) — **social**: Dynamic OG-Image share previews
|
||||||
- [Tip #42](tips/2026-07-23-042-data-most-viewed-recipes-widget.md) (2026-07-23) — **data**: Most-Viewed Recipes widget
|
- [Tip #42](tips/2026-07-23-042-data-most-viewed-recipes-widget.md) (2026-07-23) — **data**: Most-Viewed Recipes widget
|
||||||
|
- [Tip #43](tips/2026-07-24-043-visual-lightbox-for-item-images.md) (2026-07-24) — **visual**: Lightbox for item images
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
tip_number: 43
|
||||||
|
date: 2026-07-24
|
||||||
|
category: visual
|
||||||
|
status: pending
|
||||||
|
---
|
||||||
|
|
||||||
|
# Tip #43 — Lightbox for item images
|
||||||
|
|
||||||
|
**Date:** 2026-07-24
|
||||||
|
**Category:** visual
|
||||||
|
**Source:** MC-Survival Wiki Daily Tip (cron @ 18:00 MESZ)
|
||||||
|
|
||||||
|
## Lightbox for item images
|
||||||
|
|
||||||
|
A lightbox opens a high-resolution version of an item image in a Radix Dialog modal, with the full description and a row of related recipes, plus keyboard arrow navigation between items. It solves the 'icons are too small to see' problem on dense item pages, where a 32x32 pixel thumbnail hides the visual details that make items recognizable. The signal is interaction analytics: image clicks on the item grid are already common, but today they do nothing — a lightbox turns those dead clicks into a richer browsing experience. Using Radix Dialog (already a dep) means no new modal library, and arrow-key navigation inside the lightbox is the small touch that makes it feel like a real gallery rather than a popup.
|
||||||
|
|
||||||
|
## Implementation tips
|
||||||
|
|
||||||
|
1. Click an item image → modal with the high-res version, full description, and 'related recipes'.
|
||||||
|
2. Use Radix Dialog (already a dep) — don't introduce a new modal library.
|
||||||
|
3. Add 'next/prev' keyboard arrows inside the lightbox for browsing related items.
|
||||||
Reference in New Issue
Block a user