Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix(website): make the scroll hint a signal, and give it a screen to sit on
Etienne Lescot829e2858b8b1
diff --git a/website/src/pages/index.module.css b/website/src/pages/index.module.cssindex 67182e2ff..a1645a295 100644--- a/website/src/pages/index.module.css+++ b/website/src/pages/index.module.css@@ -11,7 +11,12 @@/* A full screen, as the design has it: the recreation is meant to begin onlyonce the hero has been scrolled past. */.hero {- min-height: 100vh;+ position: relative;+ /* One screen, navbar included. At a flat 100vh the hero is 60px taller than+ the viewport it is meant to fill, so its bottom edge — and the scroll hint+ pinned to it — sat below the fold, which is the one place an edge marker+ must not be. */+ min-height: calc(100vh - var(--ifm-navbar-height, 60px));display: flex;align-items: center;justify-content: center;@@ -395,17 +400,43 @@color: var(--os-fg-2);}+/* Pinned to the bottom of the first screen, where an edge belongs, rather than+ trailing the copy as one more paragraph. No media gate any more: it used to+ carry a claim that was only true where the driver runs, and "there is more+ below" is true everywhere. */.scrollHint {- margin: 28px 0 0;- font-size: 12.5px;+ position: absolute;+ left: 50%;+ /* 81px, the design's own offset. At 34 it clung to the edge with a void+ above it; this reads as the bottom of a screen rather than as the bottom+ of the window. */+ bottom: 81px;+ transform: translateX(-50%);+ margin: 0;+ display: flex;+ align-items: center;+ gap: 9px;+ font-size: 13px;+ font-weight: 500;color: var(--os-fg-2);+ animation: os-scroll-nudge 2.4s var(--ifm-transition-timing-default, ease-in-out) infinite;+}++/* The design's nudge: four pixels, slowly, which is enough to read as "keep+ going" and little enough not to nag. */+@keyframes os-scroll-nudge {+ 0%,+ 100% {+ transform: translateX(-50%) translateY(0);+ }++ 50% {+ transform: translateX(-50%) translateY(4px);+ }}-/* The claim is literal, so it is only made where it holds: the scene needs- 901px and a reader who has not asked for less motion, and below either of- those the driver never attaches and nothing rides the scroll. */-@media (max-width: 901px), (prefers-reduced-motion: reduce) {+@media (prefers-reduced-motion: reduce) {.scrollHint {- display: none;+ animation: none;}}diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsxindex 558f2c465..a72d08a38 100644--- a/website/src/pages/index.tsx+++ b/website/src/pages/index.tsx@@ -2,7 +2,7 @@ import Head from "@docusaurus/Head";import Link from "@docusaurus/Link";import Heading from "@theme/Heading";import Layout from "@theme/Layout";-import { Apple, AppWindow, CircleCheck, Download, TerminalSquare } from "lucide-react";+import { Apple, AppWindow, ArrowDown, CircleCheck, Download, TerminalSquare } from "lucide-react";import Editor from "../components/Editor";import Showcase from "../components/Showcase";@@ -48,14 +48,18 @@ export default function Home() {Read the docs</Link></div>- {/* The design's line here is "Scroll to ride the demo", which gives an- instruction the reader did not need and a reason they did not get.- This states the mechanism instead, and the mechanism is the reason:- scroll position IS the clock the edit runs on. Hidden where that- stops being true — below 901px, and under reduced motion, the driver- never attaches and the scrollbar is just a scrollbar. */}- <p className={styles.scrollHint}>Scroll — the scrollbar is the timeline</p></div>++ {/* An affordance, not a claim. It said "the scrollbar is the timeline",+ which is true and is still the wrong job for this line: what a+ reader needs at the fold is to know there is more below, and a+ sentence is a worse signal for that than an arrow. The design pins+ it to the bottom of the screen with a down arrow beside it, which+ is also what makes it read as an edge rather than as a caption. */}+ <p className={styles.scrollHint}>+ <ArrowDown size={15} strokeWidth={2} />+ Scroll down+ </p></header>{/* The argument, immediately after the hero. */}