From b00045d064b26117ba5e7b5cf210d8297cc12dd3 Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Sat, 6 Jun 2026 14:26:47 -0700 Subject: [PATCH] buy.kidlisp.com: fix /$code deep-link flash + larger color-coded keep text Deep-linking to /$code showed the home grid first, then jumped to the listing modal once all fetches resolved. Now an early head guard + CSS force-open the opaque modal before first paint, and preloadDeepLink() opens the modal shell synchronously at boot (real content fills in once listings load; falls back to the shop if the code matches nothing). Also enlarged + color-coded the keep/modal text: title 21px, price 23px gold, seller 13px pink, permalink 14px, objkt link pink / tzkt link cyan. Co-Authored-By: Claude Opus 4.8 (1M context) --- system/public/kidlisp.com/buy.html | 62 ++++++++++++++++++++++++------ 1 file changed, 50 insertions(+), 12 deletions(-) diff --git a/system/public/kidlisp.com/buy.html b/system/public/kidlisp.com/buy.html index 94a91c715a..b631bc61c3 100644 --- a/system/public/kidlisp.com/buy.html +++ b/system/public/kidlisp.com/buy.html @@ -3,6 +3,12 @@ + Buy KidLisp Keeps @@ -280,6 +286,8 @@ flex-direction: column; } .modal-overlay.open { display: flex; } + /* Deep-link: show the opaque modal from first paint so the home grid never flashes */ + html.deeplink .modal-overlay { display: flex; } .modal { flex: 1; @@ -300,7 +308,7 @@ } .modal-title { - font-size: 16px; + font-size: 21px; font-weight: 700; color: var(--purple); min-width: 0; @@ -345,9 +353,9 @@ } .modal-price { - font-size: 18px; + font-size: 23px; font-weight: 700; - color: var(--blue); + color: var(--gold); } .modal-info { @@ -359,15 +367,15 @@ } .modal-seller { - font-size: 10px; - color: var(--text2); + font-size: 13px; + color: var(--neon-pink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .modal-permalink { - font-size: 10px; + font-size: 14px; font-family: var(--font-mono); color: var(--neon-cyan); cursor: pointer; @@ -396,7 +404,7 @@ .buy-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; } .buy-status { - font-size: 11px; + font-size: 13px; color: var(--text2); min-height: 16px; width: 100%; @@ -406,14 +414,18 @@ .modal-links { display: flex; - gap: 12px; - font-size: 11px; + gap: 16px; + font-size: 15px; + font-weight: 600; } .modal-links a { color: var(--text2); text-decoration: none; } - .modal-links a:hover { color: var(--accent); } + /* Color-coded explorer links */ + .modal-links a:nth-child(1) { color: var(--purple); } /* objkt */ + .modal-links a:nth-child(2) { color: var(--neon-cyan); } /* tzkt */ + .modal-links a:hover { text-decoration: underline; filter: brightness(1.2); } /* ── Empty / loading ── */ .loading { @@ -725,7 +737,7 @@ - +