mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-27 07:58:01 +01:00
* site: reach every platform without scripts The page is prerendered as the Mac page and only guesses the visitor's platform in a layout effect, so a browser without scripts claims a Mac, hides the Windows and Linux panels behind inert tabs, and leaves the architecture and package switches dead. A Windows or Linux visitor could not reach an installer. index.html now carries a <noscript> stylesheet that hides the switcher, the demo key, and the detected-platform line, and shows src/Download.tsx's plain list of every OS, architecture, and package under its own label, plus a neutral hero line naming Mac, Windows, and Linux (src/App.tsx). The list is hidden while scripts run and the prerendered markup is unchanged, so hydration and the interactive page are untouched. The list's commands wrap instead of truncating because it has no copy button. Verified with bun run build, bun test, tsc -b and headless Chromium with JavaScript off (Windows x64/ARM64 and Linux links visible, tabs, switches, and keycap hidden) and on (no console errors, layout identical). * site: name the no-script sections and download links The plain install list shown without scripts had three regions whose aria-label repeated their visible heading, and five links all named "Download". Point each section at its heading with aria-labelledby, and name every link after its platform and architecture, e.g. "Download Hex for Windows x64" and "Download Hex for macOS".
85 lines
3.7 KiB
HTML
85 lines
3.7 KiB
HTML
<!doctype html>
|
|
<html lang="en" class="scheme-only-dark">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="theme-color" content="#070707" />
|
|
<meta
|
|
name="description"
|
|
content="Hex is private, local voice dictation for Mac, Windows, and Linux. Hold a shortcut, speak, and Hex types what you said wherever your cursor is."
|
|
/>
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:title" content="Hex: local voice dictation" />
|
|
<meta
|
|
property="og:description"
|
|
content="Private, local voice dictation. Hold the shortcut, speak, and release."
|
|
/>
|
|
<meta property="og:site_name" content="Hex" />
|
|
<meta property="og:locale" content="en_US" />
|
|
<meta property="og:url" content="__ORIGIN__/" />
|
|
<meta property="og:image" content="__ORIGIN__/og.png?v=5" />
|
|
<meta property="og:image:type" content="image/png" />
|
|
<meta property="og:image:width" content="1200" />
|
|
<meta property="og:image:height" content="630" />
|
|
<meta property="og:image:alt" content="The Hex app icon beside the words: Hex. Local voice dictation for Mac, Windows, and Linux." />
|
|
<meta property="og:video" content="__ORIGIN__/og.mp4?v=1" />
|
|
<meta property="og:video:secure_url" content="__ORIGIN__/og.mp4?v=1" />
|
|
<meta property="og:video:type" content="video/mp4" />
|
|
<meta property="og:video:width" content="1200" />
|
|
<meta property="og:video:height" content="630" />
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<meta name="twitter:title" content="Hex: local voice dictation" />
|
|
<meta
|
|
name="twitter:description"
|
|
content="Private, local voice dictation. Hold the shortcut, speak, and release."
|
|
/>
|
|
<meta name="twitter:image" content="__ORIGIN__/og.png?v=5" />
|
|
<meta name="twitter:image:alt" content="The Hex app icon beside the words: Hex. Local voice dictation for Mac, Windows, and Linux." />
|
|
<link rel="canonical" href="__ORIGIN__/" />
|
|
<link rel="icon" href="%BASE_URL%favicon.svg" type="image/svg+xml" />
|
|
<link rel="alternate" type="text/markdown" href="%BASE_URL%llms.txt" title="llms.txt" />
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": "SoftwareApplication",
|
|
"name": "Hex",
|
|
"description": "Local voice dictation for Mac, Windows, and Linux.",
|
|
"url": "__ORIGIN__/",
|
|
"applicationCategory": "UtilitiesApplication",
|
|
"operatingSystem": "macOS 15, Windows 10, Windows 11, Linux",
|
|
"softwareVersion": "__HEX_VERSION__",
|
|
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" },
|
|
"author": { "@type": "Person", "name": "Kit Langton" }
|
|
}
|
|
</script>
|
|
<title>Hex: voice dictation for Mac, Windows, and Linux</title>
|
|
<!-- Scripting off: the hero's platform line is only the page's first guess,
|
|
and the install switcher's tabs and its architecture and package
|
|
switches are buttons that cannot work. Name every platform and show
|
|
every installer at once instead; src/styles.css keeps .hero__any and
|
|
.install__plain hidden while scripts run. The build puts its stylesheet
|
|
after this block, hence !important on the display switches. -->
|
|
<noscript>
|
|
<style>
|
|
.keycap,
|
|
.install__os,
|
|
.install__panels,
|
|
.hero__device {
|
|
display: none !important;
|
|
}
|
|
|
|
.hero__any {
|
|
display: block !important;
|
|
}
|
|
|
|
.install__plain {
|
|
display: flex !important;
|
|
}
|
|
</style>
|
|
</noscript>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|