From d7ce0ddf831cde4157c29769ee53344bdab14a42 Mon Sep 17 00:00:00 2001 From: callumalpass Date: Tue, 24 Nov 2026 21:31:39 +1100 Subject: [PATCH] Remove homepage beta disclaimers and use an icon-only video play button --- src/pages/index.astro | 5 ++-- src/styles/home.css | 59 +++++++++++++++++++++++++++---------------- 2 files changed, 39 insertions(+), 25 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 51c184c..749e828 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -57,7 +57,8 @@ import AppIcon from "../components/AppIcon.astro"; const play = document.createElement("button"); play.type = "button"; play.className = "home-film__play"; - play.innerHTML = 'Watch the two-minute film'; + play.setAttribute("aria-label", "Play video"); + play.innerHTML = ''; video.controls = false; frame.append(play); play.addEventListener("click", () => { @@ -68,7 +69,6 @@ import AppIcon from "../components/AppIcon.astro"; }); })(); -

mdbase is in beta. Keep independent backups of important collections.

@@ -135,7 +135,6 @@ the field visit.

Create an account to open your first collection in the Editor. To sync a folder on your computer, install the desktop app. Apps receive no access until you approve them.

-
Status
Connect is in beta and has no availability guarantee. Service incidents are summarised on the incidents page.
Source
The specification, Connect, Reader and Writer are open source under the MIT licence, on GitHub.
Developers
Any app can work with a collection. Read the SDK documentation and the specification.
diff --git a/src/styles/home.css b/src/styles/home.css index ca902da..df487a7 100644 --- a/src/styles/home.css +++ b/src/styles/home.css @@ -399,13 +399,7 @@ mask-composite: intersect; } -/* Status line, record file, app list and closing facts. */ -#intro .chapter__inner > p.home-status { - margin-top: 1.4rem; - color: var(--color-text-muted); - font-size: 0.88rem; -} - +/* Record file, app list and closing facts. */ .home-body .chapter code { font-family: var(--mono); font-size: 0.86em; @@ -459,27 +453,48 @@ The backgrounds are the film's own canvas in each cut. */ .home-film video { display: block; width: 100%; height: auto; background: light-dark(#fff, oklch(18.7% 0.002 286)); } -/* The film's opening still, with the apps' primary button to start it. */ +/* The film's opening still, with a centered play button covering the frame. */ .home-film__frame { position: relative; } .home-film__play { position: absolute; - bottom: 14px; - left: 14px; - display: inline-flex; - padding: 0.5rem 0.9rem 0.5rem 0.7rem; - align-items: center; - gap: 0.45rem; - color: var(--color-on-accent); - background: var(--color-accent); + inset: 0; + display: grid; + place-items: center; + padding: 0; + background: transparent; border: 0; - border-radius: var(--radius-sm); - box-shadow: var(--elevation-low); - font: 500 0.88rem/1 var(--sans); cursor: pointer; } -.home-film__play:hover { background: var(--color-accent-strong); } -.home-film__play:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; } -.home-film__play svg { width: 14px; height: 14px; fill: currentColor; } +.home-film__play-icon { + display: grid; + width: 56px; + height: 56px; + place-items: center; + color: var(--color-on-accent); + background: var(--color-accent); + border-radius: 999px; + box-shadow: var(--elevation-raised); + transition: background-color 140ms ease, transform 140ms ease; +} +.home-film__play:hover .home-film__play-icon { + background: var(--color-accent-strong); + transform: scale(1.05); +} +.home-film__play:focus-visible { outline: none; } +.home-film__play:focus-visible .home-film__play-icon { + outline: 2px solid var(--color-accent); + outline-offset: 3px; +} +.home-film__play svg { + width: 22px; + height: 22px; + fill: currentColor; + transform: translateX(1px); +} +@media (prefers-reduced-motion: reduce) { + .home-film__play-icon { transition: none; } + .home-film__play:hover .home-film__play-icon { transform: none; } +} /* The opening chapter starts under the header so the film is in view without scrolling. */ @media (width > 820px) {