From 1fc3c051ee742efa781a6caf50c36b0cf8a72570 Mon Sep 17 00:00:00 2001 From: mkpoli Date: Fri, 30 Oct 2026 05:21:34 +0900 Subject: [PATCH 1/8] feat(site): add a Sponsor pill and dialog --- site/README.md | 1 + site/public/index.html | 125 +++++++++++++++++++++- site/public/sponsor/sponsor-face.webp | Bin 0 -> 3914 bytes site/public/sponsor/sponsor-portrait.webp | Bin 0 -> 29850 bytes 4 files changed, 125 insertions(+), 1 deletion(-) create mode 100644 site/public/sponsor/sponsor-face.webp create mode 100644 site/public/sponsor/sponsor-portrait.webp diff --git a/site/README.md b/site/README.md index 56fed6c..d51d77b 100644 --- a/site/README.md +++ b/site/README.md @@ -1,5 +1,6 @@ Static specimen site for Kureedo, served at https://kureedo.mkpo.li on Cloudflare Workers (static assets only, no worker script). Deploy with `bunx wrangler deploy` from this directory; `public/fonts/` and `public/images/` are copies of `../fonts/` and `../docs/images/`, and `KureedoKanji-Subset.woff2` is `pyftsubset ../fonts/KureedoFull-Regular.ttf --unicodes=U+5B50,U+4E95 --flavor=woff2 --layout-features=''` (the 子 and 井 of the comparison row). +`public/sponsor/` holds the two portrait crops used by the Sponsor pill and dialog in `public/index.html`. The custom domain is declared in `wrangler.jsonc`, so the DNS record is created on deploy. After a release: update the version, sizes and asset URLs in the download block of `public/index.html` (`gh release view --json tagName,assets`), copy the new webfont into `public/fonts/` (the "latest" alias) and into a new `public/vX.Y.Z/` folder, add `public/vX.Y.Z/kureedo.css` pinned to that folder, point `public/kureedo.css` and the snippets in the ウェブフォント配信 section at the new version, add the `/vX.Y.Z/*` block to `public/_headers`, and regenerate the glyph grids (one per Unicode block, cells Klee One lacks marked) with `../.venv/bin/python scripts/glyphs.py` (it rewrites the block between the `glyphs:start` and `glyphs:end` markers). diff --git a/site/public/index.html b/site/public/index.html index 98f9dd4..8e7a4e3 100644 --- a/site/public/index.html +++ b/site/public/index.html @@ -71,6 +71,9 @@ --shadow: #1a1613; --dot: #cbc2af; --button-ink: #faf7f0; + --sp-pill-a: #ffe6ef; --sp-pill-b: #fff0e0; --sp-line: #ffc2d6; --sp-text: #c2185b; --sp-heart: #ff4f88; + --sp-glow: #ffd9e5; --sp-box: #fff1f5; --sp-num-bg: #c2185b; --sp-num-ink: #fff1f5; --sp-ring: #faf7f0; + --sp-veil: rgba(26, 22, 19, .5); } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { @@ -87,6 +90,9 @@ --shadow: #574c40; --dot: #2c2620; --button-ink: #14110e; + --sp-pill-a: #3a1a28; --sp-pill-b: #33231a; --sp-line: #6e3450; --sp-text: #ff8fb5; --sp-heart: #ff4f88; + --sp-glow: #4a2234; --sp-box: #2a1a22; --sp-num-bg: #ff8fb5; --sp-num-ink: #2a0f1a; --sp-ring: #1c1813; + --sp-veil: rgba(0, 0, 0, .6); } } :root[data-theme="dark"] { @@ -103,6 +109,9 @@ --shadow: #574c40; --dot: #2c2620; --button-ink: #14110e; + --sp-pill-a: #3a1a28; --sp-pill-b: #33231a; --sp-line: #6e3450; --sp-text: #ff8fb5; --sp-heart: #ff4f88; + --sp-glow: #4a2234; --sp-box: #2a1a22; --sp-num-bg: #ff8fb5; --sp-num-ink: #2a0f1a; --sp-ring: #1c1813; + --sp-veil: rgba(0, 0, 0, .6); } * { box-sizing: border-box; } html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; } @@ -189,7 +198,7 @@ } .tag:hover { color: var(--accent); border-color: var(--accent); } .tag[aria-pressed="true"], .tag.on { background: var(--ink); color: var(--button-ink); border-color: var(--ink); } - #theme { margin-bottom: .6rem; } + .mast-actions { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; } #theme .moon { display: none; } :root[data-theme="dark"] #theme .sun { display: none; } :root[data-theme="dark"] #theme .moon { display: inline; } @@ -423,6 +432,89 @@ .snippet .copy { position: static; } .snippet pre { width: 100%; padding-right: 1.25rem; } } + + /* Sponsor: a pink pill led by the author's face, and the dialog it opens. */ + .sponsor { + display: inline-flex; align-items: center; gap: 9px; flex: none; height: 38px; padding: 0 15px 0 6px; + border: 1px solid var(--sp-line); border-radius: 999px; + background: linear-gradient(135deg, var(--sp-pill-a), var(--sp-pill-b)); color: var(--sp-text); + font: 700 13px/1 ui-sans-serif, system-ui, sans-serif; white-space: nowrap; cursor: pointer; + } + .sponsor:focus-visible, .sponsor-close:focus-visible, .sponsor-kofi:focus-visible, .sponsor-company:focus-visible { outline: 2px solid var(--sp-text); outline-offset: 2px; } + .sponsor-face { position: relative; flex: none; width: 24px; height: 24px; } + .sponsor-face img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--sp-ring), 0 0 0 2.5px var(--sp-line); } + .sponsor-face svg { position: absolute; inset-inline-end: -4px; bottom: -3px; width: 12px; height: 12px; fill: var(--sp-heart); stroke: var(--sp-ring); stroke-width: 2.5; paint-order: stroke; overflow: visible; transform-origin: 50% 60%; } + @media (max-width: 720px) { + .mast-row { flex-direction: column-reverse; align-items: stretch; gap: 0; } + .mast-actions { justify-content: flex-end; margin-bottom: .2rem; } + .sponsor { width: 38px; padding: 0; justify-content: center; } + .sponsor-label { display: none; } + } + .sponsor-dialog { + width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; margin: auto; + border: 1px solid var(--ink); border-radius: 16px; background: var(--panel); color: var(--ink); + box-shadow: 8px 8px 0 var(--shadow); overflow: auto; font-size: 14px; line-height: 1.65; + } + .sponsor-dialog::backdrop { background: var(--sp-veil); backdrop-filter: blur(6px); } + .sponsor-dialog header { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 0 24px; } + .sponsor-dialog h2, .sponsor-dialog h3 { display: block; margin: 0; text-transform: none; letter-spacing: 0; font-family: inherit; } + .sponsor-dialog h2 { font-size: 22px; font-weight: 700; color: var(--ink); } + .sponsor-dialog h2 span, .sponsor-dialog h3 span { margin-inline-start: .6em; font-size: .6em; font-weight: 400; color: var(--muted); } + .sponsor-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; } + .sponsor-close:hover { background: var(--well); color: var(--ink); } + .sponsor-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; } + .sponsor-sheet { display: flex; flex-direction: column; gap: 14px; padding: 4px 24px 22px; } + .sponsor-sheet p { margin: 0; } + .sponsor-en { display: block; margin-top: .2em; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .88em; line-height: 1.5; color: var(--muted); } + .sponsor-hero { position: relative; display: grid; place-items: center; height: 136px; background: radial-gradient(closest-side, var(--sp-glow), transparent); } + .sponsor-portrait { position: relative; width: 112px; height: 112px; } + .sponsor-portrait img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--sp-ring), 0 0 0 6px var(--sp-line), 0 10px 24px rgba(255, 79, 136, .3); } + .sponsor-portrait svg { position: absolute; inset-inline-end: -2px; bottom: 2px; width: 34px; height: 34px; fill: var(--sp-heart); stroke: var(--sp-ring); stroke-width: 2; paint-order: stroke; overflow: visible; transform-origin: 50% 60%; filter: drop-shadow(0 3px 6px rgba(255, 79, 136, .35)); } + .sponsor-portrait ellipse { fill: #fff; stroke: none; opacity: .6; } + .sponsor-spark { position: absolute; color: var(--sp-heart); opacity: .75; } + .sponsor-spark:nth-of-type(2) { top: 22px; inset-inline-start: calc(50% - 84px); font-size: 14px; } + .sponsor-spark:nth-of-type(3) { top: 12px; inset-inline-start: calc(50% + 66px); font-size: 10px; } + .sponsor-spark:nth-of-type(4) { bottom: 20px; inset-inline-start: calc(50% - 76px); font-size: 11px; } + .sponsor-ask { font-weight: 700; color: var(--sp-text); } + .sponsor-ask .sponsor-en { font-weight: 400; } + .sponsor-how { padding: 12px 14px; border: 1px dashed var(--sp-line); border-radius: 14px; background: var(--sp-box); } + .sponsor-how h3 { margin-bottom: 8px; font-size: 12px; font-weight: 700; color: var(--sp-text); } + .sponsor-how ol { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: step; } + .sponsor-how li { display: flex; align-items: baseline; gap: 8px; font-size: 13px; line-height: 1.45; counter-increment: step; } + .sponsor-how li::before { content: counter(step); display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--sp-num-bg); color: var(--sp-num-ink); font: 700 11px/1 ui-sans-serif, system-ui, sans-serif; transform: translateY(-1px); } + .sponsor-dialog .sponsor-kofi { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 999px; background: linear-gradient(135deg, #d81b60, #b0124f); color: #fff; text-decoration: none; box-shadow: 0 6px 16px rgba(216, 27, 96, .32); } + .sponsor-kofi .sponsor-en { color: inherit; opacity: .9; } + .sponsor-mark { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .22); } + .sponsor-mark svg, .sponsor-arrow, .sponsor-company svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } + .sponsor-mark svg { width: 20px; height: 20px; } + .sponsor-arrow { flex: none; width: 18px; height: 18px; } + .sponsor-arrow:dir(rtl) { transform: scaleX(-1); } + .sponsor-copy { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; } + .sponsor-copy strong { font-size: 13.5px; } + .sponsor-copy small { font-size: 12px; line-height: 1.4; } + .sponsor-kofi .sponsor-copy strong { font-size: 15px; } + .sponsor-dialog .sponsor-company { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; border-radius: 12px; color: var(--muted); text-decoration: none; } + .sponsor-company:hover { background: var(--well); color: var(--ink); } + .sponsor-company svg { flex: none; width: 16px; height: 16px; margin-top: 2px; } + .sponsor-company .sponsor-copy strong { font-size: 12.5px; color: var(--ink); } + .sponsor-company strong .sponsor-en { font-weight: 400; } + .sponsor-sheet .sponsor-thanks { font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; } + @media (prefers-reduced-motion: no-preference) { + .sponsor { transition: transform .18s ease, box-shadow .18s ease; } + .sponsor:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255, 79, 136, .28); } + .sponsor-face svg, .sponsor-portrait svg { animation: sponsor-beat 2.8s ease-in-out infinite; } + .sponsor:hover .sponsor-face svg, .sponsor:focus-visible .sponsor-face svg { animation: sponsor-bounce .6s ease-in-out infinite; } + .sponsor-spark { animation: sponsor-twinkle 2.4s ease-in-out infinite; } + .sponsor-spark:nth-of-type(3) { animation-delay: .8s; } + .sponsor-spark:nth-of-type(4) { animation-delay: 1.6s; } + .sponsor-dialog[open] { animation: sponsor-arrive .32s cubic-bezier(.2, .8, .2, 1); } + .sponsor-kofi { transition: transform .18s ease, box-shadow .18s ease; } + .sponsor-kofi:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(216, 27, 96, .42); } + } + @keyframes sponsor-beat { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.18); } 86% { transform: scale(.96); } 93% { transform: scale(1.1); } } + @keyframes sponsor-bounce { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-2px) scale(1.18) rotate(-8deg); } } + @keyframes sponsor-twinkle { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: .9; transform: scale(1); } } + @keyframes sponsor-arrive { from { opacity: 0; transform: translateY(14px) scale(.98); } } @@ -441,7 +533,10 @@

Kureedoクレード

+
+ +
Unicode 18.0 · Kana Extended-A拡張仮名 ㇰ–ㇿ · ㇷ゚ · カ゚ · v0.5.0 · OFL 1.1
@@ -1061,6 +1156,22 @@

ライセンスLicenceKureedo is an independent derivative of Klee One (Fontworks). Klee One © 2020 The Klee Project Authors; Klee is a trademark of Fontworks Inc. Kureedo has no connection to Fontworks.

+