← Files Sulekha EventsARCHIVED FILE
source/public/events-widget.html
6.55 KB · Nov 30, 2026 · 07:53 UTC
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Sulekha Events</title>
<style>
:root {
color-scheme: light dark;
font-family: ui-sans-serif, system-ui, sans-serif;
--brand-red: #c71920;
--brand-amber: #ffbd08;
--brand-gradient: linear-gradient(135deg, #ffbd08 0%, #ff8a00 35%, #ed3917 60%, #c71920 85%);
--brand-gradient-hover: linear-gradient(135deg, #e6aa07 0%, #e67c00 35%, #d53315 60%, #b3161d 85%);
--brand-blue: #82aaba;
--brand-text: light-dark(#b5161d, #ff999d);
--brand-tint: light-dark(#fff5e5, #352820);
--brand-border: light-dark(#d7e2e7, #45565e);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: light-dark(#17202a, #f5f2ec); background: transparent; }
main { max-width: 1000px; margin: auto; padding: 16px 0; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; margin-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: var(--brand-gradient); color: white; font-weight: 800; }
h1 { margin: 0; font-size: 16px; font-weight: 600; }
#count, .meta { color: light-dark(#62676e, #c4c8ce); font-size: 13px; line-height: 1.6; }
#empty { padding: 8px 16px; font-size: 14px; line-height: 1.5; }
#search-note { margin: 0 16px 12px; }
#grid, #related-grid, #venue-grid { display: flex; gap: 20px; overflow-x: auto; padding: 0 16px 16px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: thin; }
.event-card { border: 1px solid var(--brand-border); border-radius: 18px; overflow: hidden; background: light-dark(#fff, #24282d); flex: 0 0 min(80vw, 300px); min-width: 0; display: flex; flex-direction: column; scroll-snap-align: start; }
.event-image { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 18px; background: var(--brand-tint); }
.event-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-fallback { display: block; width: 100%; height: 100%; }
#related-section, #venue-section { margin-top: 20px; }
#related-title, #venue-title { margin: 0 16px 4px; font-size: 16px; }
.related-description { margin: 0 16px 12px; }
.content { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.price { font-size: 15px; font-weight: 600; }
.status { color: var(--brand-text); font-size: 12px; }
h2 { margin: 5px 0 6px; font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; }
.footer { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 20px; margin-top: auto; }
button, input { font: inherit; }
button { cursor: pointer; }
.primary, .modal-actions button { border: 0; border-radius: 999px; padding: 11px 18px; color: #fff; background: var(--brand-gradient); font-size: 14px; font-weight: 600; }
.primary:hover, .modal-actions button:hover { background: var(--brand-gradient-hover); }
button:focus-visible, input:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; }
.link-modal { width: min(460px, calc(100vw - 24px)); border: 1px solid var(--brand-border); border-radius: 18px; padding: 20px; color: inherit; background: light-dark(#fff, #24282d); }
.link-modal::backdrop { background: #0008; }
.modal-header { display: flex; justify-content: space-between; gap: 16px; }
.modal-close { border: 0; background: transparent; color: inherit; font-size: 24px; }
.event-url { width: 100%; margin: 18px 0 14px; padding: 11px; border: 1px solid #888; border-radius: 10px; color: inherit; background: transparent; font-size: 13px; }
.modal-actions { display: flex; gap: 9px; flex-wrap: wrap; }
</style>
</head>
<body>
<main>
<header><div class="brand"><span class="brand-mark" aria-hidden="true">S</span><h1>Sulekha Events</h1></div><span id="count"></span></header>
<p id="search-note" class="meta" role="status" hidden></p>
<div id="empty" role="status">No matching events found.</div>
<section id="grid" hidden aria-live="polite"></section>
<section id="related-section" aria-labelledby="related-title" hidden>
<h2 id="related-title">Artists & tours</h2>
<p class="meta related-description">Explore artist and tour pages for more performances.</p>
<div id="related-grid" aria-label="Artists and tours — scroll to browse" tabindex="0"></div>
</section>
<section id="venue-section" aria-labelledby="venue-title" hidden>
<h2 id="venue-title">Venues</h2>
<p class="meta related-description">Explore venues and their event listings.</p>
<div id="venue-grid" aria-label="Venues — scroll to browse" tabindex="0"></div>
</section>
</main>
<template id="default-artwork">
<svg class="image-fallback" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300" role="img" aria-label="Sulekha default artwork">
<rect width="300" height="300" fill="#fff3e2"/>
<circle cx="265" cy="35" r="120" fill="#ffdfaa"/>
<circle cx="20" cy="275" r="105" fill="#f7d1bf"/>
<rect x="70" y="67" width="160" height="132" rx="28" fill="#b81d2b"/>
<path d="M156 98v58m0-49 34-8v48" fill="none" stroke="#fff3e2" stroke-width="9" stroke-linecap="round" stroke-linejoin="round"/>
<ellipse cx="144" cy="158" rx="16" ry="12" fill="#fff3e2"/>
<ellipse cx="178" cy="149" rx="16" ry="12" fill="#fff3e2"/>
<text x="150" y="235" text-anchor="middle" font-family="system-ui,sans-serif" font-size="21" font-weight="700" fill="#8e2931">Sulekha Events</text>
</svg>
</template>
<dialog id="link-modal" class="link-modal" aria-labelledby="modal-title">
<div class="modal-header"><h2 id="modal-title">Event link</h2><button class="modal-close" type="button" aria-label="Close">×</button></div>
<input id="event-url" class="event-url" readonly aria-label="Event URL" />
<div class="modal-actions"><button id="copy-link" type="button">Copy link</button><button id="share-link" type="button">Share</button><button id="open-link" class="secondary" type="button">Open event</button></div>
<p id="modal-status" class="meta" role="status"></p>
</dialog>
<script>__WIDGET_SCRIPT__</script>
</body>
</html>
SHA-256: 3a5e7db4d5b82b1b7afec9f13435334ffde3d4cb10f7a0f4ddc4a55889819353