zat.dev/zds
atproto pds · mirror of https://tangled.org/zat.dev/zds
zds 0.25.1 Latest 2 packages, all images
0
0
pub const favicon =
\\<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">
\\ <rect width="128" height="128" rx="28" fill="#0b0b0f"/>
\\ <g fill="#90d3a6">
\\ <rect x="34" y="34" width="60" height="16" rx="5"/>
\\ <rect x="34" y="56" width="60" height="16" rx="5"/>
\\ <rect x="34" y="78" width="60" height="16" rx="5"/>
\\ </g>
\\ <g fill="#0b0b0f">
\\ <circle cx="44" cy="42" r="3.5"/>
\\ <circle cx="44" cy="64" r="3.5"/>
\\ <circle cx="44" cy="86" r="3.5"/>
\\ </g>
\\</svg>
;
pub const css =
\\:root {
\\ --bg: #070807; --panel: #101210; --panel-2: #151915; --line: #273026;
\\ --text: #f0f1ec; --muted: #aaa69b; --dim: #69645c; --accent: #91adff;
\\ --green: #39c178; --pink: #f05f8e; --focus: #c9d7ff; --glass: rgba(255,255,255,.085);
\\ --glass-a: #39c178; --glass-b: #91adff; --glass-c: #f05f8e; --glass-d: #f5d85d;
\\ --accent-bg: color-mix(in srgb, var(--glass-a) 13%, var(--bg));
\\ --accent-panel: color-mix(in srgb, var(--glass-a) 9%, var(--panel));
\\ --accent-panel-2: color-mix(in srgb, var(--glass-b) 8%, var(--panel-2));
\\ color-scheme: dark;
\\}
\\html[data-theme="dark"] {
\\ --bg: #070807; --panel: #101210; --panel-2: #151915; --line: #273026;
\\ --text: #f0f1ec; --muted: #aaa69b; --dim: #69645c; --accent: #91adff;
\\ --green: #39c178; --pink: #f05f8e; --focus: #c9d7ff; --glass: rgba(255,255,255,.085);
\\ --glass-a: #39c178; --glass-b: #91adff; --glass-c: #f05f8e; --glass-d: #f5d85d;
\\ --accent-bg: color-mix(in srgb, var(--glass-a) 13%, var(--bg));
\\ --accent-panel: color-mix(in srgb, var(--glass-a) 9%, var(--panel));
\\ --accent-panel-2: color-mix(in srgb, var(--glass-b) 8%, var(--panel-2));
\\ color-scheme: dark;
\\}
\\@media (prefers-color-scheme: light) {
\\ :root {
\\ --bg: #f6f4ed; --panel: #fffdf7; --panel-2: #ece8dd; --line: #d8d0c0;
\\ --text: #161412; --muted: #625c53; --dim: #8f8679; --accent: #315dcb;
\\ --green: #1b7340; --pink: #b72e5c; --focus: #163f9f; --glass: rgba(255,255,255,.72);
\\ --glass-a: #1b7340; --glass-b: #315dcb; --glass-c: #b72e5c; --glass-d: #b88713;
\\ --accent-bg: color-mix(in srgb, var(--glass-a) 11%, var(--bg));
\\ --accent-panel: color-mix(in srgb, var(--glass-a) 5%, var(--panel));
\\ --accent-panel-2: color-mix(in srgb, var(--glass-b) 5%, var(--panel-2)); color-scheme: light;
\\ }
\\}
\\html[data-theme="light"] {
\\ --bg: #f6f4ed; --panel: #fffdf7; --panel-2: #ece8dd; --line: #d8d0c0;
\\ --text: #161412; --muted: #625c53; --dim: #8f8679; --accent: #315dcb;
\\ --green: #1b7340; --pink: #b72e5c; --focus: #163f9f; --glass: rgba(255,255,255,.72);
\\ --glass-a: #1b7340; --glass-b: #315dcb; --glass-c: #b72e5c; --glass-d: #b88713;
\\ --accent-bg: color-mix(in srgb, var(--glass-a) 11%, var(--bg));
\\ --accent-panel: color-mix(in srgb, var(--glass-a) 5%, var(--panel));
\\ --accent-panel-2: color-mix(in srgb, var(--glass-b) 5%, var(--panel-2));
\\ color-scheme: light;
\\}
\\* { box-sizing: border-box; }
\\html { min-height: 100%; background: var(--accent-bg); overflow-x: hidden; }
\\body {
\\ position: relative; margin: 0; min-height: 100vh; overflow-x: hidden; background:
\\ radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--signal-a, var(--green)) 15%, transparent), transparent 35%),
\\ radial-gradient(circle at 94% 18%, color-mix(in srgb, var(--signal-b, var(--accent)) 13%, transparent), transparent 32%),
\\ linear-gradient(135deg, var(--accent-bg), var(--bg) 58%);
\\ color: var(--text);
\\ font: 15px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
\\}
\\body::before, body::after {
\\ content: ""; position: fixed; inset: -18vmax; z-index: 0; pointer-events: none;
\\}
\\body::before {
\\ background:
\\ linear-gradient(108deg, transparent 0 22%, rgba(255,255,255,.10) 24%, transparent 27% 52%, rgba(255,255,255,.055) 54%, transparent 58%),
\\ linear-gradient(72deg, transparent 0 38%, color-mix(in srgb, var(--signal-b, var(--accent)) 11%, transparent) 44%, transparent 52%);
\\ filter: blur(20px) saturate(1.15); opacity: .7; transform: translate3d(-4%, 0, 0) rotate(-4deg);
\\ animation: light-drift 18s ease-in-out infinite alternate;
\\}
\\body::after {
\\ background:
\\ radial-gradient(ellipse at 22% 32%, rgba(255,255,255,.09), transparent 28%),
\\ radial-gradient(ellipse at 72% 18%, color-mix(in srgb, var(--signal-a, var(--green)) 14%, transparent), transparent 31%),
\\ radial-gradient(ellipse at 66% 78%, color-mix(in srgb, var(--signal-c, var(--pink)) 12%, transparent), transparent 30%);
\\ filter: blur(34px); opacity: .52; animation: frost-breathe 24s ease-in-out infinite alternate;
\\}
\\@keyframes light-drift {
\\ from { transform: translate3d(-5%, -1%, 0) rotate(-5deg) scale(1.02); }
\\ to { transform: translate3d(5%, 2%, 0) rotate(4deg) scale(1.08); }
\\}
\\@keyframes frost-breathe {
\\ from { transform: translate3d(0, -2%, 0) scale(1); opacity: .42; }
\\ to { transform: translate3d(-2%, 2%, 0) scale(1.06); opacity: .64; }
\\}
\\a { color: inherit; }
\\a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
\\.shell { position: relative; z-index: 1; width: min(100%, 780px); margin: 0 auto; padding: 18px 16px 34px; }
\\header {
\\ position: relative; z-index: 10; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px;
\\ min-height: 44px; margin: 0 0 26px; padding: 4px 0;
\\ color: var(--muted); font-size: 13px;
\\}
\\.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; }
\\.brand:hover { opacity: 0.82; }
\\nav { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
\\nav a, .settings { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
\\.account-link, .settings {
\\ display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 10px;
\\ border: 1px solid transparent; border-radius: 10px; transition: color 0.12s, border-color 0.12s, background 0.12s;
\\}
\\.account-link { color: var(--text); font-weight: 700; }
\\.account-link svg, .settings svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
\\.account-link img.drawing-icon { width: 28px; height: 28px; }
\\.account-link:hover, .settings:hover { color: var(--text); border-color: color-mix(in srgb, var(--line) 80%, transparent); background: color-mix(in srgb, var(--accent-panel) 55%, transparent); }
\\.account-link:focus-visible, .settings:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
\\.settings.menu-toggle { padding-right: 12px; }
\\.hero { margin: 52px 0 24px; container-type: inline-size; }
\\h1 { margin: 0; color: var(--text); font-size: clamp(36px, 11vw, 74px); line-height: 0.95; letter-spacing: 0; }
\\.lede { margin: 14px 0 0; max-width: 47ch; color: var(--muted); font-size: 15px; }
\\.lede a, .lede code { color: var(--green); }
\\.scope { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 16px 0 0; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--accent-panel) 70%, transparent); color: var(--muted); font-size: 12px; }
\\.scope .avatar { width: 24px; height: 24px; font-size: 11px; }
\\.scope b { color: var(--text); font-weight: 600; }
\\.scope span:not(.avatar) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
\\.scope a { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; color: var(--muted); }
\\.scope a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 10%, transparent); }
\\.scope svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
\\.entropy { width: 100%; margin-top: 22px; display: grid; gap: 8px; }
\\.entropy-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
\\.entropy-label { color: var(--muted); font-size: 11px; }
\\.entropy-label b { color: var(--text); font-weight: 600; }
\\.ranges { display: inline-flex; border: 1px solid color-mix(in srgb, var(--line) 80%, white 8%); border-radius: 8px; overflow: hidden; }
\\.ranges a { padding: 5px 10px; color: var(--muted); font-size: 11px; text-decoration: none; }
\\.ranges a + a { border-left: 1px solid color-mix(in srgb, var(--line) 80%, white 8%); }
\\.ranges a:hover { color: var(--text); }
\\.ranges a[aria-current] { color: var(--text); background: color-mix(in srgb, var(--accent-panel) 80%, var(--text) 6%); }
\\.entropy-bars {
\\ position: relative; display: flex; align-items: end; gap: 2px; min-height: 60px; padding-bottom: 5px;
\\ border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent); touch-action: pan-y;
\\}
\\.entropy-bars::before {
\\ content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 1px;
\\ background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--line) 65%, transparent), transparent);
\\ opacity: .8;
\\}
\\.entropy-bars i {
\\ position: relative; flex: 1 1 0; min-width: 2px; height: var(--h); min-height: 4px;
\\ border-radius: 7px 7px 2px 2px; background:
\\ linear-gradient(180deg, var(--glass-d) 0%, var(--glass-a) 42%, var(--glass-b) 72%, var(--glass-c) 100%);
\\ box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 5px 18px color-mix(in srgb, var(--glass-b) 18%, transparent);
\\ opacity: .74;
\\ transition: opacity .16s ease, transform .16s ease, filter .16s ease;
\\}
\\.entropy-bars i.on { opacity: 1; transform: translateY(-3px); filter: saturate(1.18) brightness(1.05); }
\\.entropy-bars i.on { outline: 1px solid var(--text); outline-offset: 2px; }
\\.entropy-axis { display: flex; justify-content: space-between; color: var(--dim); font-size: 10px; }
\\.entropy-read { min-height: 15px; margin: 0; color: var(--muted); font-size: 11px; }
\\.signal-empty { color: var(--dim); font-size: 11px; }
\\@media (prefers-reduced-motion: reduce) {
\\ body::before, body::after { animation: none; }
\\ .entropy-label, .entropy-bars i { transition: none; }
\\}
\\.pulse {
\\ margin: 0 0 30px; padding: 14px;
\\ position: relative; border: 1px solid color-mix(in srgb, var(--line) 60%, white 10%); border-radius: 12px; background:
\\ linear-gradient(112deg, rgba(255,255,255,.105), transparent 18% 72%, rgba(255,255,255,.055)),
\\ linear-gradient(135deg, color-mix(in srgb, var(--signal-a, var(--green)) 12%, transparent), transparent 46%),
\\ linear-gradient(315deg, color-mix(in srgb, var(--signal-c, var(--pink)) 10%, transparent), transparent 44%),
\\ color-mix(in srgb, var(--accent-panel) 72%, transparent);
\\ overflow: hidden; max-width: 100%; backdrop-filter: blur(24px) saturate(1.18); -webkit-backdrop-filter: blur(24px) saturate(1.18);
\\ box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -24px 60px rgba(255,255,255,.035), 0 20px 54px rgba(0,0,0,.16);
\\}
\\.pulse > div { min-width: 0; }
\\.pulse-kicker { color: var(--dim); font-size: 11px; text-transform: lowercase; }
\\.pulse-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
\\.pulse-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
\\.pulse-path code { color: var(--accent); }
\\.pulse-link {
\\ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px;
\\ max-width: 100%; margin-top: 3px; color: var(--text); text-decoration: none;
\\ overflow-wrap: anywhere; word-break: break-word; line-height: 1.35;
\\}
\\.pulse-link span { min-width: 0; }
\\.pulse-link:hover code { color: var(--green); }
\\.pulse-link code { color: var(--accent); }
\\.pulse-link em { justify-self: end; color: var(--dim); font-size: 10px; font-style: normal; white-space: nowrap; }
\\.pulse-link:hover em { color: var(--muted); }
\\.pulse-cid { color: var(--dim); font-size: 11px; overflow-wrap: anywhere; word-break: break-word; line-height: 1.35; }
\\.grid { display: grid; gap: 28px; }
\\section { margin-top: 0; }
\\.section-title { display: flex; align-items: center; min-height: 32px; margin: 0 0 10px; color: var(--dim); font-size: 12px; font-weight: 400; text-transform: lowercase; }
\\.residents { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
\\.resident { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); }
\\.resident .pick { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 11px 12px; min-width: 0; padding: 14px 0; text-decoration: none; }
\\.resident .pick:hover .handle, .resident.picked .handle { color: var(--accent); }
\\.resident.picked { background: linear-gradient(90deg, color-mix(in srgb, var(--accent-panel) 75%, transparent), transparent); }
\\.resident .profile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--dim); }
\\.resident .profile:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
\\.resident .profile svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
\\.avatar {
\\ width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line);
\\ border-radius: 8px; background: linear-gradient(135deg, var(--accent-panel-2), color-mix(in srgb, var(--green) 18%, var(--accent-panel)));
\\ color: var(--text); text-transform: lowercase; overflow: hidden;
\\}
\\.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
\\.who { min-width: 0; }
\\.handle, .did { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
\\.handle { color: var(--text); font-size: 14px; }
\\.did { color: var(--dim); font-size: 11px; }
\\.meta { grid-column: 2; display: flex; align-items: center; gap: 9px; color: var(--dim); font-size: 11px; line-height: 1; }
\\.meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
\\.meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 999px; background: var(--line); }
\\.collections-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
\\.collections-head .section-title { margin: 0; }
\\.filter { display: flex; align-items: center; gap: 6px; flex: 0 1 200px; min-width: 0; height: 32px; padding: 0 8px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 80%, white 8%); border-radius: 8px; background: color-mix(in srgb, var(--panel) 70%, transparent); color: var(--dim); }
\\.filter:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
\\.filter svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
\\.filter input { width: 125%; min-width: 0; margin-right: -25%; padding: 6px 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 16px; transform: scale(.8); transform-origin: left center; }
\\.filter input::placeholder { color: var(--dim); }
\\.collections { display: grid; gap: 7px; list-style: none; margin: 0; padding: 0; }
\\.collections:not(.all) [data-rest], .collection.miss { display: none; }
\\.collections-foot { margin: 10px 0 0; color: var(--dim); font-size: 12px; }
\\.collections-foot a { color: var(--muted); }
\\.collections-foot a:hover { color: var(--text); }
\\.collection { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0 10px; border-bottom: 1px solid var(--line); overflow: hidden; }
\\.collection a { min-width: 0; color: var(--text); text-decoration: none; }
\\.collection a:hover { color: var(--accent); }
\\.collection code { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
\\.collection span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
\\.collection i { position: absolute; left: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--glass-c) 0%, var(--glass-b) 48%, var(--glass-a) 100%); }
\\.empty { color: var(--muted); margin: 0; }
\\.sheet { position: fixed; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overscroll-behavior: contain; touch-action: none; }
\\.sheet.open { display: flex; }
\\html.sheet-open, html.sheet-open body { overflow: hidden; }
\\.sheet-card { width: min(100%, 440px); border: 1px solid color-mix(in srgb, var(--line) 80%, white 8%); border-radius: 18px; background:
\\ radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--green) 16%, transparent), transparent 34%),
\\ linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.035)),
\\ color-mix(in srgb, var(--accent-bg) 90%, transparent);
\\ box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 24px 80px rgba(0, 0, 0, 0.42); overflow: hidden; backdrop-filter: blur(22px) saturate(1.16); -webkit-backdrop-filter: blur(22px) saturate(1.16);
\\ display: flex; flex-direction: column; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
\\.sheet-card:focus { outline: none; }
\\.sheet-head { flex: none; }
\\.client-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
\\@media (max-width: 600px) {
\\ .sheet { align-items: flex-end; padding: 0; }
\\ .sheet-card { width: 100%; max-height: 88vh; max-height: 88dvh; border-radius: 18px 18px 0 0; border-bottom: 0; }
\\ .client-body { padding-bottom: calc(17px + env(safe-area-inset-bottom)); }
\\}
\\.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px 12px; border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent); }
\\.sheet-head h2 { margin: 0; font-size: 13px; font-weight: 600; text-transform: lowercase; }
\\.close { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid color-mix(in srgb, var(--line) 76%, transparent); border-radius: 999px; background:
\\ radial-gradient(circle at 28% 18%, rgba(255,255,255,.18), transparent 32%),
\\ color-mix(in srgb, var(--accent-panel) 72%, transparent); color: var(--muted); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
\\.close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
\\.close:hover { color: var(--text); border-color: color-mix(in srgb, var(--green) 50%, var(--line)); }
\\.system-links { display: grid; gap: 9px; }
\\.system-links a { display: grid; gap: 2px; padding: 11px 12px; border: 1px solid color-mix(in srgb, var(--line) 80%, white 5%); border-radius: 12px; background: color-mix(in srgb, var(--accent-panel) 72%, transparent); text-decoration: none; }
\\.system-links a:hover { border-color: color-mix(in srgb, var(--signal-a, var(--green)) 56%, var(--line)); }
\\.system-links strong { color: var(--text); font-size: 12px; }
\\.system-links span { color: var(--dim); font-size: 11px; }
\\.logo-links { margin-bottom: 16px; }
\\.logo-links a { grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 12px; }
\\.logo-links img { width: 24px; height: 24px; object-fit: contain; justify-self: center; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
\\.logo-links a > span { display: grid; gap: 2px; min-width: 0; }
\\.system-links + .pref-label, .system-links + .pref-section { margin-top: 18px; }
\\h3.pref-label { margin: 0 0 10px; font-weight: 400; }
\\.pref-section h3.pref-label { margin: 0; }
\\.client-grid { margin-bottom: 18px; }
\\.client-body { padding: 15px 16px 17px; }
\\.hint { margin: 0 0 12px; color: var(--dim); font-size: 11px; }
\\.pref-section { display: grid; gap: 10px; margin-bottom: 16px; }
\\.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
\\.pref-label { color: var(--dim); font-size: 11px; text-transform: lowercase; }
\\#accent-value { color: var(--dim); font-size: 11px; }
\\.hue-slider { width: 100%; margin: 0; accent-color: var(--glass-a); cursor: pointer; }
\\.hue-slider::-webkit-slider-runnable-track {
\\ height: 10px; border: 1px solid color-mix(in srgb, var(--line) 80%, white 8%); border-radius: 999px;
\\ background: linear-gradient(90deg, hsl(0 80% 62%), hsl(60 82% 62%), hsl(120 76% 56%), hsl(180 78% 58%), hsl(240 82% 68%), hsl(300 78% 64%), hsl(360 80% 62%));
\\}
\\.hue-slider::-webkit-slider-thumb {
\\ appearance: none; width: 20px; height: 20px; margin-top: -6px; border: 1px solid rgba(255,255,255,.42);
\\ border-radius: 999px; background: var(--glass-a); box-shadow: 0 3px 12px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.34);
\\}
\\.hue-slider::-moz-range-track {
\\ height: 10px; border: 1px solid color-mix(in srgb, var(--line) 80%, white 8%); border-radius: 999px;
\\ background: linear-gradient(90deg, hsl(0 80% 62%), hsl(60 82% 62%), hsl(120 76% 56%), hsl(180 78% 58%), hsl(240 82% 68%), hsl(300 78% 64%), hsl(360 80% 62%));
\\}
\\.hue-slider::-moz-range-thumb {
\\ width: 18px; height: 18px; border: 1px solid rgba(255,255,255,.42); border-radius: 999px;
\\ background: var(--glass-a); box-shadow: 0 3px 12px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.34);
\\}
\\.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
\\.theme-option { min-height: 42px; border: 1px solid color-mix(in srgb, var(--line) 82%, white 6%); border-radius: 12px; background: color-mix(in srgb, var(--accent-panel) 72%, transparent); color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.10); }
\\.theme-option:hover, .theme-option.active { color: var(--text); border-color: color-mix(in srgb, var(--signal-a, var(--green)) 62%, var(--line)); }
\\.theme-option.active { background: linear-gradient(145deg, color-mix(in srgb, var(--signal-a, var(--green)) 18%, transparent), color-mix(in srgb, var(--signal-b, var(--accent)) 8%, transparent)), color-mix(in srgb, var(--accent-panel) 82%, transparent); }
\\.client-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 9px; }
\\.client { display: grid; justify-items: center; gap: 8px; min-height: 82px; padding: 11px 8px 10px; border: 1px solid color-mix(in srgb, var(--line) 82%, white 6%); border-radius: 13px; background:
\\ radial-gradient(circle at 30% 18%, rgba(255,255,255,.14), transparent 34%),
\\ linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.025)),
\\ color-mix(in srgb, var(--accent-panel) 78%, transparent);
\\ color: var(--muted); font: inherit; font-size: 10px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
\\.client:hover, .client.active { color: var(--text); border-color: color-mix(in srgb, var(--green) 65%, var(--line)); }
\\.client.active { background:
\\ linear-gradient(145deg, color-mix(in srgb, var(--green) 20%, transparent), color-mix(in srgb, var(--accent) 8%, transparent)),
\\ color-mix(in srgb, var(--accent-panel) 82%, transparent); }
\\.client-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--glass) 62%, var(--accent-panel)); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 18px rgba(0,0,0,.16); }
\\.client img { width: 25px; height: 25px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.28)); }
\\.client span:last-child { white-space: nowrap; }
\\@media (min-width: 680px) {
\\ .shell { padding-top: 24px; }
\\ nav { gap: 6px; }
\\ .pulse-link, .pulse-cid { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal; }
\\ .grid { grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr); align-items: start; }
\\ .resident .pick { grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; }
\\ .meta { grid-column: auto; justify-content: flex-end; }
\\}
\\@media (max-width: 430px) {
\\ .shell { padding-left: 14px; padding-right: 14px; }
\\ header { gap: 8px; }
\\ .account-link, .settings { padding: 0 8px; }
\\}
;
pub const script =
\\(function() {
\\ var key = 'zds.preferredClient';
\\ var themeKey = 'zds.theme';
\\ var accentKey = 'zds.accentHue';
\\ var clients = [
\\ { value: 'bsky', label: 'Bluesky', icon: 'https://web-cdn.bsky.app/static/apple-touch-icon.png', url: function(handle, did) { return 'https://bsky.app/profile/' + handle; } },
\\ { value: 'blacksky', label: 'Blacksky', icon: 'https://blacksky.community/static/apple-touch-icon.png', url: function(handle, did) { return 'https://blacksky.community/profile/' + handle; } },
\\ { value: 'witchsky', label: 'Witchsky', icon: 'https://witchsky.app/static/favicon.ico', url: function(handle, did) { return 'https://witchsky.app/profile/' + handle; } },
\\ { value: 'reddwarf', label: 'Red Dwarf', icon: 'https://reddwarf.app/redstar.png', url: function(handle, did) { return 'https://reddwarf.app/profile/' + handle; } },
\\ { value: 'pdsls', label: 'PDSls', icon: 'https://pdsls.dev/favicon.ico', url: function(handle, did) { return 'https://pdsls.dev/at/' + did + '/app.bsky.actor.profile/self'; } },
\\ { value: 'atme', label: '@me', icon: 'https://at-me.zzstoatzz.io/favicon.svg', url: function(handle, did) { return 'https://at-me.zzstoatzz.io/view/?handle=' + encodeURIComponent(handle); } }
\\ ];
\\ function read() { try { return localStorage.getItem(key); } catch (_) { return null; } }
\\ function write(value) { try { localStorage.setItem(key, value); } catch (_) {} }
\\ function readTheme() { try { return localStorage.getItem(themeKey) || 'system'; } catch (_) { return 'system'; } }
\\ function writeTheme(value) { try { value === 'system' ? localStorage.removeItem(themeKey) : localStorage.setItem(themeKey, value); } catch (_) {} }
\\ function readAccent() { try { return localStorage.getItem(accentKey) || '154'; } catch (_) { return '154'; } }
\\ function writeAccent(value) { try { localStorage.setItem(accentKey, value); } catch (_) {} }
\\ function clampHue(value) {
\\ var hue = Number(value);
\\ if (!Number.isFinite(hue)) hue = 154;
\\ return ((Math.round(hue) % 360) + 360) % 360;
\\ }
\\ function hsl(hue, saturation, lightness) { return 'hsl(' + clampHue(hue) + ' ' + saturation + '% ' + lightness + '%)'; }
\\ function applyAccent(value) {
\\ var hue = clampHue(value);
\\ document.documentElement.style.setProperty('--glass-a', hsl(hue, 72, 58));
\\ document.documentElement.style.setProperty('--glass-b', hsl(hue + 76, 84, 72));
\\ document.documentElement.style.setProperty('--glass-c', hsl(hue + 144, 78, 66));
\\ document.documentElement.style.setProperty('--glass-d', hsl(hue + 214, 82, 68));
\\ document.documentElement.style.setProperty('--signal-a', hsl(hue, 72, 58));
\\ document.documentElement.style.setProperty('--signal-b', hsl(hue + 76, 84, 72));
\\ document.documentElement.style.setProperty('--signal-c', hsl(hue + 144, 78, 66));
\\ var slider = document.getElementById('accent-hue');
\\ var output = document.getElementById('accent-value');
\\ if (slider) slider.value = String(hue);
\\ if (output) output.textContent = String(hue) + 'deg';
\\ }
\\ function applyTheme(value) {
\\ if (value === 'light' || value === 'dark') document.documentElement.dataset.theme = value;
\\ else delete document.documentElement.dataset.theme;
\\ document.querySelectorAll('.theme-option').forEach(function(btn) { btn.classList.toggle('active', btn.dataset.theme === value); });
\\ }
\\ function preferred() { var value = read(); return clients.find(function(c) { return c.value === value; }) || clients[0]; }
\\ function syncLinks() {
\\ var client = preferred();
\\ document.querySelectorAll('[data-profile-handle]').forEach(function(a) {
\\ a.href = client.url(a.getAttribute('data-profile-handle'), a.getAttribute('data-profile-did'));
\\ a.title = 'open in ' + client.label;
\\ });
\\ document.querySelectorAll('.client').forEach(function(btn) { btn.classList.toggle('active', btn.dataset.client === client.value); });
\\ }
\\ var systemSheet = document.getElementById('system-sheet');
\\ var grid = document.getElementById('client-grid');
\\ clients.forEach(function(client) {
\\ var btn = document.createElement('button');
\\ btn.type = 'button'; btn.className = 'client'; btn.dataset.client = client.value;
\\ btn.innerHTML = '<span class="client-icon"><img alt="" src="' + client.icon + '"></span><span>' + client.label + '</span>';
\\ btn.addEventListener('click', function() { write(client.value); syncLinks(); });
\\ grid.appendChild(btn);
\\ });
\\ document.querySelectorAll('.theme-option').forEach(function(btn) {
\\ btn.addEventListener('click', function() { writeTheme(btn.dataset.theme); applyTheme(btn.dataset.theme); });
\\ });
\\ var accent = document.getElementById('accent-hue');
\\ if (accent) accent.addEventListener('input', function() { writeAccent(accent.value); applyAccent(accent.value); });
\\ var opener = null;
\\ var keyboard = false;
\\ document.addEventListener('keydown', function() { keyboard = true; });
\\ document.addEventListener('pointerdown', function() { keyboard = false; });
\\ function openSheet(el, trigger) {
\\ opener = trigger || document.activeElement;
\\ el.classList.add('open');
\\ el.querySelector('.client-body').scrollTop = 0;
\\ document.documentElement.classList.add('sheet-open');
\\ el.querySelector('.sheet-card').focus({ preventScroll: true });
\\ }
\\ function closeSheet(el) {
\\ if (!el.classList.contains('open')) return;
\\ el.classList.remove('open');
\\ if (!document.querySelector('.sheet.open')) document.documentElement.classList.remove('sheet-open');
\\ if (keyboard && opener && opener.focus) opener.focus();
\\ opener = null;
\\ }
\\ var systemButton = document.getElementById('system');
\\ systemButton.addEventListener('click', function() { openSheet(systemSheet, systemButton); });
\\ document.getElementById('close-system').addEventListener('click', function() { closeSheet(systemSheet); });
\\ systemSheet.addEventListener('click', function(event) { if (event.target === systemSheet) closeSheet(systemSheet); });
\\ document.addEventListener('keydown', function(event) { if (event.key === 'Escape') closeSheet(systemSheet); });
\\ // The chart and the collection filter bind once per element, and read their
\\ // rows when used, so a swapped-in time range (swap.js) works without a reload.
\\ function bindActivity() {
\\ var activity = document.querySelector('[data-activity]');
\\ var strip = activity && activity.querySelector('.entropy-bars');
\\ if (!strip || strip.dataset.bound) return;
\\ strip.dataset.bound = '1';
\\ var picked = -1;
\\ var bars = function() { return strip.querySelectorAll('i'); };
\\ var pick = function(index) {
\\ var all = bars(), readout = activity.querySelector('.entropy-read');
\\ if (!all.length || !readout) return;
\\ picked = Math.max(0, Math.min(all.length - 1, index));
\\ all.forEach(function(bar, i) { bar.classList.toggle('on', i === picked); });
\\ readout.textContent = all[picked].getAttribute('data-label');
\\ };
\\ var fromPointer = function(event) {
\\ var best = 0, distance = Infinity;
\\ bars().forEach(function(bar, i) {
\\ var r = bar.getBoundingClientRect(), d = Math.abs(event.clientX - (r.left + r.width / 2));
\\ if (d < distance) { distance = d; best = i; }
\\ });
\\ pick(best);
\\ };
\\ strip.addEventListener('pointermove', fromPointer);
\\ strip.addEventListener('pointerdown', fromPointer);
\\ strip.addEventListener('keydown', function(event) {
\\ var last = bars().length - 1, at = picked < 0 ? last : picked;
\\ var next = { ArrowLeft: at - 1, ArrowRight: at + 1, Home: 0, End: last }[event.key];
\\ if (next === undefined) return;
\\ event.preventDefault();
\\ pick(next);
\\ });
\\ }
\\ var coll = null;
\\ function showCollections() {
\\ var list = document.querySelector('[data-collections]'), foot = document.querySelector('[data-collections-foot]');
\\ var filter = document.querySelector('[data-filter]');
\\ var query = filter.value.trim().toLowerCase(), rows = list.querySelectorAll('.collection'), shown = 0;
\\ rows.forEach(function(row) {
\\ var hit = !query || row.querySelector('code').textContent.toLowerCase().indexOf(query) !== -1;
\\ row.classList.toggle('miss', !hit);
\\ if (hit) shown++;
\\ });
\\ list.classList.toggle('all', coll.expanded || !!query);
\\ if (query) foot.textContent = shown + ' of ' + rows.length + ' collections';
\\ else foot.innerHTML = coll.footHtml;
\\ }
\\ function bindCollections() {
\\ var list = document.querySelector('[data-collections]');
\\ var filter = document.querySelector('[data-filter]');
\\ var foot = document.querySelector('[data-collections-foot]');
\\ if (!list || !filter || !foot) return;
\\ filter.parentNode.hidden = false;
\\ coll = { expanded: list.classList.contains('all'), footHtml: foot.innerHTML };
\\ if (filter.value) showCollections();
\\ if (filter.dataset.bound) return;
\\ filter.dataset.bound = '1';
\\ filter.addEventListener('input', showCollections);
\\ document.addEventListener('click', function(event) {
\\ if (!event.target.closest || !event.target.closest('[data-collections-foot] [data-show-all]')) return;
\\ event.preventDefault();
\\ coll.expanded = true;
\\ coll.footHtml = '';
\\ document.querySelector('[data-collections]').classList.add('all');
\\ document.querySelector('[data-collections-foot]').innerHTML = '';
\\ });
\\ }
\\ bindActivity();
\\ bindCollections();
\\ document.addEventListener('zds:swap', function() { bindActivity(); bindCollections(); syncLinks(); });
\\ applyTheme(readTheme());
\\ applyAccent(readAccent());
\\ syncLinks();
\\})();
\\
++ @embedFile("../../internal/web/swap.js");