From db60de782a2ea292a0ea709e9870be3a6ff60449 Mon Sep 17 00:00:00 2001 From: Laura Allison Obermaier Date: Fri, 28 Nov 2025 15:50:31 -0500 Subject: [PATCH 1/3] update colors demo --- packages/cloudflare-worker/src/demo/demo.html | 135 +++++++++++++++++- 1 file changed, 128 insertions(+), 7 deletions(-) diff --git a/packages/cloudflare-worker/src/demo/demo.html b/packages/cloudflare-worker/src/demo/demo.html index 4aacfb3..6f78ebf 100644 --- a/packages/cloudflare-worker/src/demo/demo.html +++ b/packages/cloudflare-worker/src/demo/demo.html @@ -36,8 +36,81 @@

LeetCode Stats Card

- - + +
+
+ bg0 + +
+
+ bg1 + +
+
+ text0 + +
+
+ text1 + +
+
+ color0 + +
+
+ color1 + +
+
+ color2 + +
+
+ color3 + +
+
@@ -283,6 +356,35 @@

LeetCode Stats Card

text-decoration: underline; } + .colors-grid { + display: grid; + grid-template-columns: repeat(8, minmax(0, 1fr)); + gap: 0.5rem; + } + + .color-field { + display: flex; + flex-direction: column; + align-items: flex-start; + font-size: 12px; + gap: 0.25rem; + } + + .color-field span { + opacity: 0.8; + } + + .color-field input[type="color"] { + width: 100%; + aspect-ratio: 1 / 1; + border: none; + border-radius: 8px; + cursor: pointer; + background: none; + padding: 0; + appearance: none; + } + @media (max-width: 600px) { body { padding: 0.5rem; @@ -362,6 +464,10 @@

LeetCode Stats Card

font-size: 0.9rem; margin: 1rem 0; } + + .colors-grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } }