From ba4a0dc828a636a340d406d63f648a3aab603d52 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Thu, 4 Jun 2026 20:28:56 -0400 Subject: [PATCH] feat(badges): static RGB gradient for punch holes on print, cycling on screen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Each rainbow-enabled slot now has a companion print-only div with an inline SVG linearGradient (R→Y→G→C→B→M spectrum). On screen: the animated hue-rotate div cycles. On print: CSS hides the animated div and shows the static gradient instead. X lines print in semi-transparent black over the gradient fill for visibility. Co-Authored-By: Claude Sonnet 4.6 --- .../[badge_id]/ae_comp__badge_obj_view.svelte | 53 +++++++++++++++++-- 1 file changed, 49 insertions(+), 4 deletions(-) diff --git a/src/routes/events/[event_id]/(badges)/badges/[badge_id]/ae_comp__badge_obj_view.svelte b/src/routes/events/[event_id]/(badges)/badges/[badge_id]/ae_comp__badge_obj_view.svelte index 3e9e5120..3b27f79a 100644 --- a/src/routes/events/[event_id]/(badges)/badges/[badge_id]/ae_comp__badge_obj_view.svelte +++ b/src/routes/events/[event_id]/(badges)/badges/[badge_id]/ae_comp__badge_obj_view.svelte @@ -710,6 +710,18 @@ const code_to_icon: { + {#if punch_holes_left_rainbow} + + {/if} {/if} {#if punch_holes_right}
+ {#if punch_holes_right_rainbow} + + {/if} {/if} {#if punch_holes_center}
+ {#if punch_holes_center_rainbow} + + {/if} {/if}