diff --git a/site/README.md b/site/README.md index 1dd921a..619ff6c 100644 --- a/site/README.md +++ b/site/README.md @@ -1,6 +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`; `public/brand/kofi-symbol.svg` is the official Ko-fi mark on the dialog's tip button. +`public/sponsor/` holds the two portrait crops used by the Sponsor pill and dialog in `public/index.html`; `public/brand/kofi-symbol.svg` is the official Ko-fi mark on the dialog's tip button. `public/brand/kureedo.svg` and `public/brand/genzui.svg` are the logos listed in the site select that the logo opens; their order and links are in the inline script at the end of `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/brand/genzui.svg b/site/public/brand/genzui.svg new file mode 100644 index 0000000..da82bf4 --- /dev/null +++ b/site/public/brand/genzui.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/site/public/brand/kureedo.svg b/site/public/brand/kureedo.svg new file mode 100644 index 0000000..5781ba4 --- /dev/null +++ b/site/public/brand/kureedo.svg @@ -0,0 +1,5 @@ + + Kureedo + + + diff --git a/site/public/index.html b/site/public/index.html index ebfab9a..f428cfa 100644 --- a/site/public/index.html +++ b/site/public/index.html @@ -218,8 +218,8 @@ .topnav.show { transform: none; } .topnav .in { max-width: 72rem; margin: 0 auto; padding: .5rem clamp(16px, 3vw, 2.5rem); display: flex; align-items: center; gap: 1rem 1.5rem; overflow-x: auto; } .topnav .brand { font-size: 1.1rem; margin-right: auto; text-decoration: none; color: var(--ink); white-space: nowrap; } - .topnav a:not(.brand):not(.tag) { font-size: .75rem; letter-spacing: .18em; color: var(--muted); text-decoration: none; text-transform: uppercase; white-space: nowrap; } - .topnav a:not(.brand):hover { color: var(--accent); } + .topnav .in > a:not(.brand):not(.tag) { font-size: .75rem; letter-spacing: .18em; color: var(--muted); text-decoration: none; text-transform: uppercase; white-space: nowrap; } + .topnav .in > a:not(.brand):hover { color: var(--accent); } .topnav .tag { padding: .2em .6em; } @media (prefers-reduced-motion: reduce) { .topnav { transition: none; } } @@ -515,6 +515,38 @@ .sponsor-tip { transition: transform .18s ease, box-shadow .18s ease; } .sponsor-tip:hover { transform: translateY(-1px); box-shadow: 0 8px 22px var(--tip-glow-hover); } } + /* Site select: the logo opens a menu of the sibling fonts. The menu is a popover, so it sits above the sticky nav and its scroll box. */ + .wordmark a { color: inherit; text-decoration: none; } + .site-select { display: inline-block; } + .site-select-trigger { + display: inline-flex; align-items: center; gap: .3em; margin: 0; padding: 0; border: 0; background: none; + color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; text-align: start; white-space: nowrap; cursor: pointer; + } + .site-select-trigger:hover { color: var(--accent); } + .site-select-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; } + .site-select-chev { flex: none; width: .9rem; height: .9rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; transition: transform .15s ease; } + .wordmark .site-select-chev { width: clamp(1.1rem, 2.2vw, 1.6rem); height: clamp(1.1rem, 2.2vw, 1.6rem); margin-top: .5em; color: var(--muted); } + .site-select-trigger[aria-expanded="true"] .site-select-chev { transform: rotate(180deg); } + @media (max-width: 400px) { .wordmark .site-select-trigger { gap: .1em; } .wordmark .site-select-trigger small { margin-left: 0; } } + .site-select-menu { + position: fixed; inset: auto; margin: 0; padding: .35rem; min-width: 15rem; max-width: calc(100vw - 16px); + border: 1px solid var(--ink); background: var(--panel); color: var(--ink); box-shadow: 6px 6px 0 var(--shadow); + font-size: 1rem; line-height: 1.4; letter-spacing: 0; text-transform: none; text-align: start; + } + .site-select-menu:popover-open { display: flex; flex-direction: column; } + .site-select-menu a { display: flex; align-items: center; gap: .75rem; padding: .55rem .7rem; color: var(--ink); text-decoration: none; } + .site-select-menu a:hover, .site-select-menu a:focus-visible { background: var(--well); color: var(--accent); outline: none; } + .site-select-menu a:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); } + .site-select-menu img { flex: none; width: 28px; height: 28px; } + .site-select-name { flex: 1; min-width: 0; } + .site-select-name small { margin-inline-start: .6em; font-size: .72em; letter-spacing: .1em; color: var(--muted); } + .site-select-tick { flex: none; width: 1rem; height: 1rem; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: square; stroke-linejoin: miter; visibility: hidden; } + .site-select-menu a[aria-current="true"] .site-select-tick { visibility: visible; } + .site-select-menu hr { margin: .35rem .2rem; border: 0; border-top: 1px solid var(--rule); } + .site-select-menu a.more { font-size: .9rem; } + .site-select-menu a.more span[lang="en"] { display: block; font-size: .78rem; color: var(--muted); } + .site-select-menu a.more svg { flex: none; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; } + @media (prefers-reduced-motion: reduce) { .site-select-chev { transition: none; } } @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); } } @@ -524,7 +556,7 @@