aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruser <user@clank>2026-08-24 12:30:02 +0200
committeruser <user@clank>2026-08-24 12:30:02 +0200
commitf608fe9bac2500512775450a5dce578f1b0ce8ec (patch)
tree503ab686e42dda1238ef25fcc2a2f12a6faa0d1f
parentslosh: the config watcher speaks kqueue on macOS (diff)
downloadslosh-f608fe9bac2500512775450a5dce578f1b0ce8ec.tar.gz
slosh-f608fe9bac2500512775450a5dce578f1b0ce8ec.tar.xz
slosh-f608fe9bac2500512775450a5dce578f1b0ce8ec.zip
www: the front door says coming soon
The site is not finished -- the demo video is still being cut and the public repo URL does not exist yet -- so what slosh.foo serves is one self-contained page in the session-drawn look: tab strip, a focused pane that runs $ slosh and prints the announcement as its output, status line, the sl0p palette. No scripts, nothing fetched. web/build-site assembles just that page by default now; FULL=1 builds the real site (front page + docs + demo) while it is being finished. Drop the gate when the real thing ships.
-rw-r--r--web/README.md10
-rwxr-xr-xweb/build-site8
-rw-r--r--web/coming-soon.html167
3 files changed, 183 insertions, 2 deletions
diff --git a/web/README.md b/web/README.md
index deaab69..e509cb0 100644
--- a/web/README.md
+++ b/web/README.md
@@ -14,11 +14,17 @@ demo, assembled into a single static site:
## Build
```sh
-make www # everything -> build/www (same as web/build-site)
-NO_DEMO=1 web/build-site # without the demo (it cross-compiles a guest)
+make www # for now: the coming-soon page -> build/www
+FULL=1 web/build-site # the real site (front page + docs + demo)
+NO_DEMO=1 FULL=1 web/build-site # ...without the demo (it cross-compiles a guest)
web/demo/serve --dir build/www
```
+Until the site is finished, the default build is `coming-soon.html` alone
+(one self-contained file, same session-drawn look). Deploying is copying
+`build/www` to `/opt/slosh` on the box; drop the gate in `build-site` when
+the real thing ships.
+
The output is only static files. Any host that serves a directory works, with
the one condition the webdemo README already states: `.wasm` must be served as
`application/wasm`.
diff --git a/web/build-site b/web/build-site
index 9066456..098b412 100755
--- a/web/build-site
+++ b/web/build-site
@@ -22,6 +22,14 @@ out="$root/build/www"
rm -rf "$out"
mkdir -p "$out"
+# For now slosh.foo is a coming-soon page; the full site is assembled only
+# when asked (FULL=1) while it is being finished.
+if [ "${FULL:-0}" != 1 ]; then
+ cp "$here/coming-soon.html" "$out/index.html"
+ echo "build-site: $out (coming soon -- FULL=1 for the real site)"
+ exit 0
+fi
+
# The front page.
cp "$here/index.html" "$here/site.css" "$here/install.sh" "$out/"
diff --git a/web/coming-soon.html b/web/coming-soon.html
new file mode 100644
index 0000000..28d3879
--- /dev/null
+++ b/web/coming-soon.html
@@ -0,0 +1,167 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>slosh — coming soon</title>
+<meta name="description" content="slosh: a terminal multiplexer — panes, tabs, sessions you can detach from. Coming soon.">
+<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='3' y='2' width='7' height='12' fill='%23ff5fd7'/></svg>">
+<style>
+/* slosh.foo, while the site is being finished. Drawn like a session --
+ * the tab strip, one focused pane, the status line -- in the palette of
+ * contrib/themes/sl0p.kdl. One file, no scripts, nothing fetched. */
+
+:root {
+ --bg: #0b0b0e;
+ --panel: #141418;
+ --fg: #e8e8ea;
+ --dim: #8a8a95;
+ --faint: #45454a;
+ --pink: #ff5fd7;
+ --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas,
+ "DejaVu Sans Mono", monospace;
+}
+
+* { box-sizing: border-box; }
+html, body { height: 100%; }
+
+body {
+ display: flex;
+ flex-direction: column;
+ margin: 0;
+ background: var(--bg);
+ color: var(--fg);
+ font: 14px/1.6 var(--mono);
+ -webkit-font-smoothing: antialiased;
+}
+
+/* ---- the tab strip -------------------------------------------------- */
+
+.tabs {
+ display: flex;
+ border-bottom: 1px solid var(--panel);
+ font-size: 13px;
+ line-height: 2.6;
+}
+.tabs span { padding: 0 1.2em; }
+.tab-active { background: var(--pink); color: var(--panel); }
+.tab-idle { color: var(--faint); }
+
+/* ---- the pane ------------------------------------------------------- */
+
+main {
+ flex: 1;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 1.5rem;
+}
+
+.pane {
+ position: relative;
+ width: min(36rem, 100%);
+ padding: 2.4rem 2.2rem 2.1rem;
+ border: 1px solid var(--pink);
+ border-radius: 4px;
+}
+
+.pane-title {
+ position: absolute;
+ top: -0.8em;
+ left: 1.1rem;
+ padding: 0 0.5em;
+ background: var(--bg);
+ color: #fff;
+ font-size: 13px;
+}
+
+/* the command types itself... */
+.cmdline {
+ margin: 0;
+ overflow: hidden;
+ white-space: nowrap;
+ width: 7ch;
+ animation: type 1.05s steps(7) 0.4s both;
+}
+.cmdline .prompt { color: var(--faint); }
+
+/* ...and the rest is its output */
+.out { animation: appear 0s 1.7s both; }
+
+h1 {
+ margin: 1.3rem 0 0;
+ color: var(--pink);
+ font-size: clamp(2.4rem, 8vw, 3.2rem);
+ font-weight: 600;
+ letter-spacing: 0.04em;
+ line-height: 1;
+}
+
+.tagline {
+ margin: 0.7rem 0 0;
+ max-width: 28rem;
+ color: var(--dim);
+}
+
+.soon { margin: 2.2rem 0 0; }
+
+.cursor {
+ display: inline-block;
+ width: 0.6em;
+ height: 1.15em;
+ margin-left: 0.15em;
+ vertical-align: text-bottom;
+ background: var(--pink);
+ animation: blink 1.1s steps(1) infinite;
+}
+
+@keyframes type { from { width: 0; } }
+@keyframes appear { from { opacity: 0; visibility: hidden; } }
+@keyframes blink { 50% { opacity: 0; } }
+
+@media (prefers-reduced-motion: reduce) {
+ .cmdline, .out, .cursor { animation: none; }
+}
+
+/* ---- the status line ------------------------------------------------ */
+
+.foot {
+ display: flex;
+ justify-content: space-between;
+ gap: 1.5rem;
+ padding: 0 1.1rem;
+ border-top: 1px solid var(--panel);
+ color: var(--faint);
+ font-size: 12.5px;
+ line-height: 2.2;
+}
+
+</style>
+</head>
+<body>
+
+<nav class="tabs" aria-hidden="true">
+ <span class="tab-active">slosh</span>
+ <span class="tab-idle">soon</span>
+</nav>
+
+<main>
+ <section class="pane" aria-label="slosh, coming soon">
+ <span class="pane-title">slosh.foo</span>
+ <p class="cmdline"><span class="prompt">$</span> slosh</p>
+ <div class="out">
+ <h1>slosh</h1>
+ <p class="tagline">A terminal multiplexer — panes, tabs, sessions you
+ can detach from. Written in C on libghostty-vt.</p>
+ <p class="soon">coming soon<span class="cursor"></span></p>
+ </div>
+ </section>
+</main>
+
+<footer class="foot">
+ <span>one static binary</span>
+ <span>hot pink on near-black</span>
+</footer>
+
+</body>
+</html>