aboutsummaryrefslogtreecommitdiffstats
path: root/web/index.html
diff options
context:
space:
mode:
authoruser <user@clank>2026-08-30 20:24:53 +0200
committeruser <user@clank>2026-08-30 20:24:53 +0200
commit65567cfbbc301e047cf1f84fdad305e28f199a4f (patch)
tree3bda3bab1e5992cf6e977fc712d4791cdfb1536c /web/index.html
parentweb: the magnet scroll goes (diff)
downloadslosh-65567cfbbc301e047cf1f84fdad305e28f199a4f.tar.gz
slosh-65567cfbbc301e047cf1f84fdad305e28f199a4f.tar.xz
slosh-65567cfbbc301e047cf1f84fdad305e28f199a4f.zip
web: the logo becomes geometry -- fonts cannot break rects
Android reports arrived of the logo rendering shattered, and the cause is the ascii itself: the default monospace there has no block glyphs, so every ▀▄█ falls back to whatever font volunteers, each with its own metrics, and the grid comes apart. No font stack fixes a missing glyph, and shipping a font is against the house rules. So the logo stops being text: web/gen-logo-mask turns logo.txt into an SVG of merged rects, inlined into site.css as a data URI and used as a CSS mask on an empty element. The animated background layers show through the mask exactly as they showed through background-clip: text, so every effect survives -- gradient slide, shine, hue, glow -- and two old hacks retire with the fonts: the letter-spacing pinstripe fix, and (after one round of seams at fractional mask scales) a vertical overlap baked into the rects. Same 318x84 box, same placement math, and a hero that reads as role=img with a label instead of seven rows of block glyphs.
Diffstat (limited to 'web/index.html')
-rw-r--r--web/index.html23
1 files changed, 5 insertions, 18 deletions
diff --git a/web/index.html b/web/index.html
index 9c3adf4..fc50242 100644
--- a/web/index.html
+++ b/web/index.html
@@ -14,29 +14,16 @@
v-centering leaves empty. It fades in when the hero scrolls away
(the observer at the bottom of the page) and is a road back up. -->
<a class="logo-float" href="#" aria-label="slosh — back to top">
-<pre aria-hidden="true">
-▄██████▄ ███ ▄██████▄ ▄██████▄ ▄██ ▄██
-███ ▀▀ ███ ███ ███ ███ ▀▀ ███ ███
-▀██████▄ ███ ▄▄▄ ███ ███ ▀██████▄ ████████
-▄▄ ███ ███ ███ ███ ███ ▄▄ ███ ███ ███
-▀██████▀ ███████▀ ▀██████▀ ███████▀ ███ ███
-▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
-▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
-</pre>
+<span class="logo-art"></span>
</a>
<main>
<header class="hero">
-<pre class="logo">
-▄██████▄ ███ ▄██████▄ ▄██████▄ ▄██ ▄██
-███ ▀▀ ███ ███ ███ ███ ▀▀ ███ ███
-▀██████▄ ███ ▄▄▄ ███ ███ ▀██████▄ ████████
-▄▄ ███ ███ ███ ███ ███ ▄▄ ███ ███ ███
-▀██████▀ ███████▀ ▀██████▀ ███████▀ ███ ███
-▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
-▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
-</pre>
+<!-- The logo as geometry (a masked div; see .logo-art in site.css): the
+ ascii original lives in logo.txt, but block glyphs do not survive every
+ platform's font fallback, and rects do. -->
+<div class="logo logo-art" role="img" aria-label="slosh"></div>
<p class="tagline">a modern terminal multiplexer written in C on top of
<a href="https://github.com/ghostty-org/ghostty">libghostty-vt</a>.</p>