Skip to content

A lightweight, macOS-style dock for Windows 11, with glass visuals, smooth magnification, and Genie effect.

feat: update version to 0.1.0 and restructure index page components

CristianOlivera184855cd1b38e
diff --git a/muelle/src/assets/brand/muelle-app.webp b/muelle/src/assets/brand/muelle-app.webp
new file mode 100644
index 0000000..c8e28e5
Binary files /dev/null and b/muelle/src/assets/brand/muelle-app.webp differ
diff --git a/muelle/src/components/sections/Hero.astro b/muelle/src/components/sections/Hero.astro
index 68fff03..88dd877 100644
--- a/muelle/src/components/sections/Hero.astro
+++ b/muelle/src/components/sections/Hero.astro
@@ -32,7 +32,7 @@ import { site } from "@/data/site";
Download for Windows
<Icon name="arrow-right" size={18} />
</Button>
- <Button href="#how" variant="secondary">See how it works</Button>
+ <Button href="#dock" variant="secondary">Take a look</Button>
</div>
<div data-hero-mock>
diff --git a/muelle/src/components/showcase/Customize.astro b/muelle/src/components/showcase/Customize.astro
new file mode 100644
index 0000000..1e20e3c
--- /dev/null
+++ b/muelle/src/components/showcase/Customize.astro
@@ -0,0 +1,190 @@
+---
+import { Image } from "astro:assets";
+import wallpaper from "@/assets/wallpapers/desktop-02.jpg";
+import Section from "@/components/layout/Section.astro";
+import SectionIntro from "@/components/showcase/SectionIntro.astro";
+import {
+ customizeIntro,
+ previewIcons,
+ settingsDefaults as d,
+ settingsText,
+ type SettingsKey,
+} from "@/data/showcase";
+import "@/styles/showcase.css";
+
+const t = settingsText.en;
+const tx = (key: SettingsKey) => ({ "data-t": key });
+const checked = (on: boolean) => (on ? "true" : "false");
+---
+
+<Section id="customize">
+ <SectionIntro {...customizeIntro} />
+
+ <div class="custom" data-customize data-r>
+ <div class="mac-window settings" role="group" aria-label="Muelle Settings, interactive replica">
+ <aside class="settings-side">
+ <div class="mac-lights" aria-hidden="true"><i></i><i></i><i></i></div>
+ <nav class="settings-nav">
+ <button type="button" data-pane="dock" aria-current="page">
+ <span class="settings-glyph" aria-hidden="true">▭</span>
+ <span {...tx("dock")}>{t.dock}</span>
+ </button>
+ <button type="button" data-pane="system">
+ <span class="settings-glyph" aria-hidden="true">⚙</span>
+ <span {...tx("system")}>{t.system}</span>
+ </button>
+ </nav>
+ </aside>
+
+ <div class="settings-main">
+ <p class="settings-title" data-pane-title>{t.dock}</p>
+
+ <div class="settings-body" data-view="dock">
+ <div class="settings-card">
+ <div class="settings-row">
+ <span class="settings-label" {...tx("size")}>{t.size}</span>
+ <span class="mac-range-wrap">
+ <small {...tx("small")}>{t.small}</small>
+ <input
+ type="range"
+ class="mac-range"
+ aria-label={t.size}
+ data-setting="iconSize"
+ min={d.iconSizeMin}
+ max={d.iconSizeMax}
+ value={d.iconSize}
+ />
+ <small {...tx("large")}>{t.large}</small>
+ </span>
+ </div>
+ <div class="settings-row">
+ <span class="settings-text">
+ <span class="settings-label" {...tx("magnification")}>{t.magnification}</span>
+ <span class="settings-hint" {...tx("magnificationHint")}>{t.magnificationHint}</span>
+ </span>
+ <button
+ type="button"
+ role="switch"
+ class="mac-switch"
+ aria-checked={checked(d.magnification)}
+ aria-label={t.magnification}
+ data-setting="magnification"><i></i></button
+ >
+ </div>
+ <div class="settings-row">
+ <span class="settings-label" {...tx("magnifiedSize")}>{t.magnifiedSize}</span>
+ <span class="mac-range-wrap">
+ <small {...tx("small")}>{t.small}</small>
+ <input
+ type="range"
+ class="mac-range"
+ aria-label={t.magnifiedSize}
+ data-setting="magnifiedSize"
+ min={d.iconSize}
+ max={d.magnifiedSizeMax}
+ value={d.magnifiedSize}
+ />
+ <small {...tx("large")}>{t.large}</small>
+ </span>
+ </div>
+ </div>
+
+ <div class="settings-card">
+ {
+ (
+ [
+ ["autoHide", "autoHideHint", d.autoHide],
+ ["menuBar", "menuBarHint", d.menuBar],
+ ["menuBarAutoHide", "menuBarAutoHideHint", d.menuBarAutoHide],
+ ["genie", "genieHint", d.genie],
+ ] as const
+ ).map(([key, hint, on]) => (
+ <div class="settings-row" data-row={key}>
+ <span class="settings-text">
+ <span class="settings-label" {...tx(key)}>
+ {t[key]}
+ </span>
+ <span class="settings-hint" {...tx(hint)}>
+ {t[hint]}
+ </span>
+ </span>
+ <button
+ type="button"
+ role="switch"
+ class="mac-switch"
+ aria-checked={checked(on)}
+ aria-label={t[key]}
+ data-setting={key}
+ >
+ <i />
+ </button>
+ </div>
+ ))
+ }
+ </div>
+ </div>
+
+ <div class="settings-body" data-view="system" hidden>
+ <div class="settings-card">
+ <div class="settings-row">
+ <span class="settings-label" {...tx("autostart")}>{t.autostart}</span>
+ <button
+ type="button"
+ role="switch"
+ class="mac-switch"
+ aria-checked={checked(d.autostart)}
+ aria-label={t.autostart}
+ data-setting="autostart"><i></i></button
+ >
+ </div>
+ <div class="settings-row">
+ <span class="settings-label" {...tx("language")}>{t.language}</span>
+ <span class="mac-seg" role="radiogroup" aria-label={t.language}>
+ <button type="button" role="radio" aria-checked="true" data-lang="auto" {...tx("languageAuto")}
+ >{t.languageAuto}</button
+ >
+ <button type="button" role="radio" aria-checked="false" data-lang="es">Español</button>
+ <button type="button" role="radio" aria-checked="false" data-lang="en">English</button>
+ </span>
+ </div>
+ </div>
+ <div class="settings-card">
+ <div class="settings-row">
+ <span class="settings-text">
+ <span class="settings-label" {...tx("updates")}>{t.updates}</span>
+ <span class="settings-hint" data-update-status>{t.updatesCurrent}</span>
+ </span>
+ <button type="button" class="mac-button" data-update {...tx("updatesCheck")}>{t.updatesCheck}</button>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div class="preview" data-preview aria-label="Live preview of the dock" role="img">
+ <Image src={wallpaper} alt="" class="preview-wall" widths={[480, 960]} sizes="(min-width: 1024px) 480px, 100vw" />
+ <div class="preview-bar" data-preview-bar>
+ <b>File Explorer</b>
+ <span class="tabular-nums" data-clock>9:41</span>
+ </div>
+ <div class="preview-dock" data-preview-dock>
+ {previewIcons.map((icon) => <Image src={icon} alt="" width={128} height={128} />)}
+ </div>
+ </div>
+
+ <script type="application/json" is:inline data-settings-text set:html={JSON.stringify(settingsText)} />
+ </div>
+</Section>
+
+<script>
+ import { initCustomize } from "@/scripts/customize";
+ import { initReveal } from "@/scripts/reveal";
+ import { initClock } from "@/scripts/clock";
+
+ const section = document.querySelector<HTMLElement>("#customize");
+ if (section) {
+ initReveal(section);
+ initCustomize(section);
+ }
+ initClock();
+</script>
diff --git a/muelle/src/components/showcase/DockAnatomy.astro b/muelle/src/components/showcase/DockAnatomy.astro
new file mode 100644
index 0000000..29cdcbd
--- /dev/null
+++ b/muelle/src/components/showcase/DockAnatomy.astro
@@ -0,0 +1,79 @@
+---
+import { Image } from "astro:assets";
+import Section from "@/components/layout/Section.astro";
+import SectionIntro from "@/components/showcase/SectionIntro.astro";
+import { type AnatomyGroup, anatomy, anatomyIntro } from "@/data/showcase";
+import "@/styles/showcase.css";
+
+/* Columns of the grid: one per group, plus one for each divider. */
+const columns: (AnatomyGroup | "divider")[] = anatomy.flatMap((group) =>
+ group.divider ? ["divider" as const, group] : [group],
+);
+---
+
+<Section id="dock">
+ <SectionIntro {...anatomyIntro} />
+
+ <div class="anatomy-scroll" data-r>
+ <div class="anatomy" style={`--columns: ${columns.length}`}>
+ <div class="anatomy-glass" aria-hidden="true"></div>
+ {
+ columns.map((column, index) =>
+ column === "divider" ? (
+ <div class="anatomy-divider" style={`grid-column: ${index + 1}`} aria-hidden="true" />
+ ) : (
+ <>
+ <figure class="anatomy-tiles" style={`grid-column: ${index + 1}`}>
+ {column.tiles.map((tile) =>
+ tile.kind === "app" ? (
+ <span class="anatomy-tile">
+ <Image src={tile.icon} alt={tile.label} width={128} height={128} />
+ {tile.open && <i class="anatomy-dot" aria-hidden="true" />}
+ </span>
+ ) : tile.kind === "start" ? (
+ <span class="anatomy-tile anatomy-start" role="img" aria-label="Start">
+ <svg viewBox="0 0 24 24" aria-hidden="true">
+ <rect x="2" y="2" width="9.5" height="9.5" rx="1.2" />
+ <rect x="12.5" y="2" width="9.5" height="9.5" rx="1.2" />
+ <rect x="2" y="12.5" width="9.5" height="9.5" rx="1.2" />
+ <rect x="12.5" y="12.5" width="9.5" height="9.5" rx="1.2" />
+ </svg>
+ </span>
+ ) : (
+ <span class="anatomy-tile anatomy-window" role="img" aria-label="Minimized window">
+ <span class="anatomy-window-bar">
+ <i />
+ <i />
+ <i />
+ </span>
+ <span class="anatomy-window-line" />
+ <span class="anatomy-window-line short" />
+ <span class="anatomy-window-line" />
+ </span>
+ ),
+ )}
+ </figure>
+ <p
+ class:list={["anatomy-label", column.side === "top" ? "is-top" : "is-bottom"]}
+ style={`grid-column: ${index + 1}`}
+ >
+ <span class="anatomy-text">
+ <b>{column.label}</b>
+ <span>{column.detail}</span>
+ </span>
+ <span class="anatomy-bracket" aria-hidden="true" />
+ </p>
+ </>
+ ),
+ )
+ }
+ </div>
+ </div>
+</Section>
+
+<script>
+ import { initReveal } from "@/scripts/reveal";
+
+ const section = document.querySelector<HTMLElement>("#dock");
+ if (section) initReveal(section);
+</script>
diff --git a/muelle/src/components/showcase/Download.astro b/muelle/src/components/showcase/Download.astro
new file mode 100644
index 0000000..fc66948
--- /dev/null
+++ b/muelle/src/components/showcase/Download.astro
@@ -0,0 +1,57 @@
+---
+import { Image } from "astro:assets";
+import appIcon from "@/assets/brand/muelle-app.webp";
+import Section from "@/components/layout/Section.astro";
+import Button from "@/components/ui/Button.astro";
+import Icon from "@/components/ui/Icon.astro";
+import { download } from "@/data/showcase";
+import { site } from "@/data/site";
+import "@/styles/showcase.css";
+---
+
+<Section id="download" class="pb-10">
+ <div class="get" data-r>
+ <Image src={appIcon} alt="" class="get-icon" width={160} height={160} />
+ <h2 class="get-name">{download.name}</h2>
+ <p class="get-tagline">{download.tagline}</p>
+
+ <ul class="get-meta" aria-label="About this download">
+ {download.meta.map((item) => <li>{item}</li>)}
+ </ul>
+
+ <div class="get-actions">
+ <Button href={site.download}>
+ {download.cta}
+ <Icon name="arrow-right" size={18} />
+ </Button>
+ <a class="get-link" href={site.releases} target="_blank" rel="noopener noreferrer">
+ {download.releases}
+ <Icon name="arrow-up-right" size={14} />
+ </a>
+ </div>
+ </div>
+
+ <ol class="get-steps">
+ {
+ download.steps.map(({ title, body }) => (
+ <li data-r>
+ <b>{title}</b>
+ <span>{body}</span>
+ </li>
+ ))
+ }
+ </ol>
+
+ <details class="get-source" data-r>
+ <summary>{download.source.summary}</summary>
+ <p>{download.source.note}</p>
+ <pre><code>{download.source.commands.map((line) => `> ${line}`).join("\n")}</code></pre>
+ </details>
+</Section>
+
+<script>
+ import { initReveal } from "@/scripts/reveal";
+
+ const section = document.querySelector<HTMLElement>("#download");
+ if (section) initReveal(section);
+</script>
diff --git a/muelle/src/components/showcase/Reversible.astro b/muelle/src/components/showcase/Reversible.astro
new file mode 100644
index 0000000..2cb19df
--- /dev/null
+++ b/muelle/src/components/showcase/Reversible.astro
@@ -0,0 +1,112 @@
+---
+import { Image } from "astro:assets";
+import wallpaper from "@/assets/wallpapers/desktop-05.jpg";
+import Section from "@/components/layout/Section.astro";
+import SectionIntro from "@/components/showcase/SectionIntro.astro";
+import { previewIcons, safetyFacts, safetyIntro, taskbarIcons } from "@/data/showcase";
+import "@/styles/showcase.css";
+---
+
+<Section id="safety">
+ <SectionIntro {...safetyIntro} />
+
+ <div class="flip" data-flip data-r>
+ <div class="flip-control">
+ <span id="flip-label">Muelle</span>
+ <button
+ type="button"
+ role="switch"
+ class="mac-switch is-large"
+ aria-checked="false"
+ aria-labelledby="flip-label"
+ data-flip-switch
+ >
+ <i></i>
+ </button>
+ </div>
+
+ <div class="flip-desk" data-state="off" aria-live="polite">
+ <Image src={wallpaper} alt="" class="flip-wall" widths={[640, 1280]} sizes="(min-width: 1024px) 900px, 100vw" />
+
+ <div class="flip-menubar" aria-hidden="true">
+ <b>Muelle</b>
+ <span class="tabular-nums" data-clock>9:41</span>
+ </div>
+
+ <div class="flip-dock" aria-hidden="true">
+ {previewIcons.map((icon) => <Image src={icon} alt="" width={96} height={96} />)}
+ </div>
+
+ <div class="flip-taskbar" aria-hidden="true">
+ <span class="flip-taskbar-apps">
+ <svg viewBox="0 0 24 24" class="flip-start">
+ <rect x="2" y="2" width="9.5" height="9.5" rx="1" />
+ <rect x="12.5" y="2" width="9.5" height="9.5" rx="1" />
+ <rect x="2" y="12.5" width="9.5" height="9.5" rx="1" />
+ <rect x="12.5" y="12.5" width="9.5" height="9.5" rx="1" />
+ </svg>
+ {taskbarIcons.map((icon) => <Image src={icon} alt="" width={64} height={64} />)}
+ </span>
+ <span class="flip-taskbar-clock tabular-nums" data-clock>9:41</span>
+ </div>
+
+ <p class="sr-only" data-flip-status>The Windows taskbar is showing.</p>
+ </div>
+ </div>
+
+ <ul class="facts">
+ {
+ safetyFacts.map(({ title, body }, index) => (
+ <li data-r>
+ <span class="facts-mark" aria-hidden="true">
+ {index + 1}
+ </span>
+ <b>{title}</b>
+ <p>{body}</p>
+ </li>
+ ))
+ }
+ </ul>
+</Section>
+
+<script>
+ import { initReveal } from "@/scripts/reveal";
+ import { initClock } from "@/scripts/clock";
+ import { prefersReducedMotion } from "@/lib/motion";
+
+ const section = document.querySelector<HTMLElement>("#safety");
+ const desk = section?.querySelector<HTMLElement>(".flip-desk");
+ const toggle = section?.querySelector<HTMLButtonElement>("[data-flip-switch]");
+ const status = section?.querySelector<HTMLElement>("[data-flip-status]");
+
+ if (section && desk && toggle) {
+ initReveal(section);
+ initClock();
+
+ const set = (on: boolean) => {
+ toggle.setAttribute("aria-checked", String(on));
+ desk.dataset.state = on ? "on" : "off";
+ if (status) {
+ status.textContent = on ? "Muelle is running: dock and menu bar." : "The Windows taskbar is showing.";
+ }
+ };
+
+ toggle.addEventListener("click", () => set(toggle.getAttribute("aria-checked") !== "true"));
+
+ // Muelle switches itself on the first time the desk comes into view, so the
+ // change is seen once without a click; after that the switch is the visitor's.
+ if (!prefersReducedMotion()) {
+ const observer = new IntersectionObserver(
+ ([entry]) => {
+ if (!entry?.isIntersecting) return;
+ observer.disconnect();
+ window.setTimeout(() => set(true), 700);
+ },
+ { threshold: 0.6 },
+ );
+ observer.observe(desk);
+ } else {
+ set(true);
+ }
+ }
+</script>
diff --git a/muelle/src/components/showcase/SectionIntro.astro b/muelle/src/components/showcase/SectionIntro.astro
new file mode 100644
index 0000000..caaf67a
--- /dev/null
+++ b/muelle/src/components/showcase/SectionIntro.astro
@@ -0,0 +1,17 @@
+---
+/** Centered opening of a section, the way Apple product pages introduce a feature. */
+interface Props {
+ eyebrow: string;
+ title: string;
+ lead: string;
+ class?: string;
+}
+
+const { eyebrow, title, lead, class: className } = Astro.props;
+---
+
+<header class:list={["intro", className]} data-r>
+ <p class="intro-eyebrow">{eyebrow}</p>
+ <h2 class="intro-title">{title}</h2>
+ <p class="intro-lead">{lead}</p>
+</header>
diff --git a/muelle/src/data/navigation.ts b/muelle/src/data/navigation.ts
index 7a029c5..0f17afe 100644
--- a/muelle/src/data/navigation.ts
+++ b/muelle/src/data/navigation.ts
@@ -1,18 +1,19 @@
import { site } from "@/data/site";
export const navigation = [
- { label: "How", href: "#how" },
- { label: "Features", href: "#features" },
- { label: "Install", href: "#install" },
+ { label: "Dock", href: "#dock" },
+ { label: "Settings", href: "#customize" },
+ { label: "Reversible", href: "#safety" },
] as const;
export const footerGroups = [
{
title: "Product",
links: [
- { label: "How it works", href: "#how", external: false },
- { label: "Features", href: "#features", external: false },
- { label: "Install", href: "#install", external: false },
+ { label: "The Dock", href: "#dock", external: false },
+ { label: "Settings", href: "#customize", external: false },
+ { label: "Reversible", href: "#safety", external: false },
+ { label: "Download", href: "#download", external: false },
],
},
{
diff --git a/muelle/src/data/showcase.ts b/muelle/src/data/showcase.ts
new file mode 100644
index 0000000..18ef92a
--- /dev/null
+++ b/muelle/src/data/showcase.ts
@@ -0,0 +1,209 @@
+import type { ImageMetadata } from "astro";
+import downloads from "@/assets/icons/downloads.webp";
+import fileExplorer from "@/assets/icons/file-explorer.webp";
+import microsoftPhotos from "@/assets/icons/microsoft-photos.webp";
+import microsoftStore from "@/assets/icons/microsoft-store.webp";
+import microsoftTeams from "@/assets/icons/microsoft-teams.webp";
+import recycleBin from "@/assets/icons/recycle-bin.webp";
+import settings from "@/assets/icons/settings.webp";
+import windowsMediaPlayer from "@/assets/icons/windows-media-player.webp";
+import windowsTerminal from "@/assets/icons/windows-terminal.webp";
+import { figures } from "@/data/stats";
+import { site } from "@/data/site";
+
+/* ---------------------------------------------------------------- Anatomy */
+
+/** A tile of the annotated dock: an app icon, or one of the two drawn tiles. */
+export type AnatomyTile =
+ | { kind: "app"; icon: ImageMetadata; label: string; open?: boolean }
+ | { kind: "start" }
+ | { kind: "window" };
+
+/** One labelled group of the dock; labels alternate above and below the glass. */
+export interface AnatomyGroup {
+ label: string;
+ detail: string;
+ side: "top" | "bottom";
+ tiles: AnatomyTile[];
+ /** A thin divider is drawn before this group, as in the real dock. */
+ divider?: boolean;
+}
+
+export const anatomyIntro = {
+ eyebrow: "The Dock",
+ title: "Everything in its place.",
+ lead: "Your apps, your files and your open windows, in one glass shelf at the bottom of the screen. Every part of it works like you expect from a Mac.",
+} as const;
+
+export const anatomy: AnatomyGroup[] = [
+ { label: "Start", detail: "The Windows Start menu, always first", side: "top", tiles: [{ kind: "start" }] },
+ {
+ label: "Pinned apps",
+ detail: "Drag to reorder. A dot marks the open ones",
+ side: "bottom",
+ tiles: [
+ { kind: "app", icon: fileExplorer, label: "File Explorer", open: true },
+ { kind: "app", icon: microsoftStore, label: "Microsoft Store" },
+ { kind: "app", icon: windowsTerminal, label: "Terminal", open: true },
+ { kind: "app", icon: settings, label: "Settings" },
+ ],
+ },
+ {
+ label: "Recent apps",
+ detail: "The last three you used",
+ side: "top",
+ tiles: [
+ { kind: "app", icon: microsoftPhotos, label: "Photos", open: true },
+ { kind: "app", icon: windowsMediaPlayer, label: "Media Player" },
+ { kind: "app", icon: microsoftTeams, label: "Teams" },
+ ],
+ },
+ {
+ label: "Downloads",
+ detail: "Drop files straight in",
+ side: "bottom",
+ divider: true,
+ tiles: [{ kind: "app", icon: downloads, label: "Downloads" }],
+ },
+ { label: "Minimized", detail: "A live thumbnail of the window", side: "top", tiles: [{ kind: "window" }] },
+ {
+ label: "Recycle Bin",
+ detail: "Drop files to delete them",
+ side: "bottom",
+ tiles: [{ kind: "app", icon: recycleBin, label: "Recycle Bin" }],
+ },
+];
+
+/* -------------------------------------------------------------- Customize */
+
+export const customizeIntro = {
+ eyebrow: "Settings",
+ title: "Make it yours.",
+ lead: "A real settings window, in English or Spanish. Every change reaches the dock the moment you make it. Try it here.",
+} as const;
+
+/** The preview dock in the Customize scene. */
+export const previewIcons: ImageMetadata[] = [
+ fileExplorer,
+ microsoftStore,
+ windowsTerminal,
+ microsoftPhotos,
+ settings,
+ downloads,
+ recycleBin,
+];
+
+/** Same defaults as the app (`crates/muelle-config`). */
+export const settingsDefaults = {
+ iconSize: 48,
+ iconSizeMin: 32,
+ iconSizeMax: 96,
+ magnification: true,
+ magnifiedSize: 77,
+ magnifiedSizeMax: 160,
+ autoHide: false,
+ menuBar: true,
+ menuBarAutoHide: false,
+ genie: false,
+ autostart: true,
+} as const;
+
+/** The Settings app's own strings (`apps/settings/src/i18n`), in both languages. */
+export const settingsText = {
+ en: {
+ title: "Muelle Settings",
+ dock: "Dock",
+ system: "System",
+ size: "Size",
+ small: "Small",
+ large: "Large",
+ magnification: "Magnification",
+ magnificationHint: "Icons grow as the pointer passes over them.",
+ magnifiedSize: "Magnified size",
+ autoHide: "Automatically hide and show the Dock",
+ autoHideHint: "It reappears when you touch the bottom edge of the screen.",
+ menuBar: "Menu bar",
+ menuBarHint: "Time, battery, and access to the Windows quick settings and notifications.",
+ menuBarAutoHide: "Automatically hide and show the menu bar",
+ menuBarAutoHideHint: "It reappears when you touch the top edge of the screen.",
+ genie: "Genie effect when minimizing",
+ genieHint: "While it is on, windows do not use the Windows animations for maximizing or closing.",
+ autostart: "Open Muelle at login",
+ language: "Language",
+ languageAuto: "Automatic",
+ updates: "Updates",
+ updatesCurrent: `Muelle ${site.version} is up to date.`,
+ updatesChecking: "Checking for updates…",
+ updatesCheck: "Check",
+ },
+ es: {
+ title: "Ajustes de Muelle",
+ dock: "Dock",
+ system: "Sistema",
+ size: "Tamaño",
+ small: "Pequeño",
+ large: "Grande",
+ magnification: "Ampliación",
+ magnificationHint: "Los iconos crecen al pasar el puntero sobre ellos.",
+ magnifiedSize: "Tamaño ampliado",
+ autoHide: "Ocultar y mostrar el Dock automáticamente",
+ autoHideHint: "Reaparece al tocar el borde inferior de la pantalla.",
+ menuBar: "Barra superior",
+ menuBarHint: "Hora, batería y acceso a los ajustes rápidos y las notificaciones de Windows.",
+ menuBarAutoHide: "Ocultar y mostrar la barra superior automáticamente",
+ menuBarAutoHideHint: "Reaparece al tocar el borde superior de la pantalla.",
+ genie: "Efecto genio al minimizar",
+ genieHint: "Mientras está activo, las ventanas no usan las animaciones de Windows al maximizar ni al cerrar.",
+ autostart: "Abrir Muelle al iniciar sesión",
+ language: "Idioma",
+ languageAuto: "Automático",
+ updates: "Actualizaciones",
+ updatesCurrent: `Muelle ${site.version} está al día.`,
+ updatesChecking: "Buscando actualizaciones…",
+ updatesCheck: "Buscar",
+ },
+} as const;
+
+export type SettingsKey = keyof (typeof settingsText)["en"];
+
+/* ----------------------------------------------------------------- Safety */
+
+export const safetyIntro = {
+ eyebrow: "Reversible",
+ title: "Your taskbar is never gone. Just tucked away.",
+ lead: "Muelle hides the Windows taskbar while it runs and gives it back the moment it stops. Flip the switch and see.",
+} as const;
+
+/** The taskbar shown when Muelle is off. */
+export const taskbarIcons: ImageMetadata[] = [fileExplorer, microsoftStore, windowsTerminal, microsoftPhotos, settings];
+
+export const safetyFacts = [
+ { title: "Quit any time", body: "Right-click the dock and choose Quit Muelle. The taskbar is back at once." },
+ { title: "Even if it stops", body: "A tiny guardian process watches the dock and restores the taskbar if it ever stops." },
+ { title: "Uninstall cleanly", body: "Windows Settings → Apps → Muelle. Windows is left exactly as it was." },
+] as const;
+
+/* --------------------------------------------------------------- Download */
+
+export const download = {
+ name: site.name,
+ tagline: site.tagline,
+ meta: [
+ `Version ${site.version}`,
+ "Windows 11 · 64-bit",
+ `${figures.installer.value} ${figures.installer.unit}`,
+ `Free · ${site.license}`,
+ ],
+ cta: "Download for Windows",
+ releases: "All versions on GitHub",
+ steps: [
+ { title: "Open the installer", body: "Per user. No admin rights, no wizard." },
+ { title: "If SmartScreen asks", body: "It is not signed yet: More info → Run anyway." },
+ { title: "That's it", body: "The dock appears and starts with Windows from now on." },
+ ],
+ source: {
+ summary: "Build it from source",
+ note: "Needs Windows 11, Rust (MSVC) and the Visual Studio C++ build tools.",
+ commands: [`git clone ${site.repository}`, "cd Muelle", "cargo run --release -p muelle"],
+ },
+} as const;
diff --git a/muelle/src/data/site.ts b/muelle/src/data/site.ts
index 704de5c..d41e90f 100644
--- a/muelle/src/data/site.ts
+++ b/muelle/src/data/site.ts
@@ -16,6 +16,6 @@ export const site = {
releases: "https://github.com/crafter-station/Muelle/releases",
download: "https://github.com/crafter-station/Muelle/releases/latest/download/Muelle-Setup.exe",
issues: "https://github.com/crafter-station/Muelle/issues",
- version: "0.1",
+ version: "0.1.0",
license: "MIT",
} as const;
diff --git a/muelle/src/pages/index.astro b/muelle/src/pages/index.astro
index bc36964..0d36f7a 100644
--- a/muelle/src/pages/index.astro
+++ b/muelle/src/pages/index.astro
@@ -1,11 +1,11 @@
---
import SiteFooter from "@/components/layout/SiteFooter.astro";
import SiteHeader from "@/components/layout/SiteHeader.astro";
-import ClosingCta from "@/components/sections/ClosingCta.astro";
-import Features from "@/components/sections/Features.astro";
import Hero from "@/components/sections/Hero.astro";
-import HowItWorks from "@/components/sections/HowItWorks.astro";
-import Install from "@/components/sections/Install.astro";
+import Customize from "@/components/showcase/Customize.astro";
+import DockAnatomy from "@/components/showcase/DockAnatomy.astro";
+import Download from "@/components/showcase/Download.astro";
+import Reversible from "@/components/showcase/Reversible.astro";
import { site } from "@/data/site";
import BaseLayout from "@/layouts/BaseLayout.astro";
---
@@ -15,10 +15,10 @@ import BaseLayout from "@/layouts/BaseLayout.astro";
<main>
<Hero />
- <HowItWorks />
- <Features />
- <Install />
- <ClosingCta />
+ <DockAnatomy />
+ <Customize />
+ <Reversible />
+ <Download />
</main>
<SiteFooter />
diff --git a/muelle/src/scripts/customize.ts b/muelle/src/scripts/customize.ts
new file mode 100644
index 0000000..b6518c8
--- /dev/null
+++ b/muelle/src/scripts/customize.ts
@@ -0,0 +1,191 @@
+import { prefersReducedMotion } from "@/lib/motion";
+
+/** The preview desk is smaller than a screen, so the dock is drawn at this share of its size. */
+const PREVIEW_SCALE = 0.7;
+/** Width of the magnified area around the pointer, in preview pixels. */
+const SIGMA = 46;
+/** How close to an edge the pointer must be to reveal an auto-hidden bar. */
+const EDGE = 34;
+const CHECK_MS = 1100;
+
+type Strings = Record<string, string>;
+
+/**
+ * The Settings replica: switches, sliders, the language picker and the update check
+ * all behave like the app, and the preview desk follows them as the dock would.
+ */
+export function initCustomize(root: HTMLElement) {
+ const scene = root.querySelector<HTMLElement>("[data-customize]");
+ const preview = root.querySelector<HTMLElement>("[data-preview]");
+ const dock = root.querySelector<HTMLElement>("[data-preview-dock]");
+ const bar = root.querySelector<HTMLElement>("[data-preview-bar]");
+ const textNode = root.querySelector<HTMLScriptElement>("[data-settings-text]");
+ if (!scene || !preview || !dock || !bar || !textNode) return;
+
+ const texts = JSON.parse(textNode.textContent ?? "{}") as Record<"en" | "es", Strings>;
+ let strings = texts.en;
+ const icons = [...dock.querySelectorAll<HTMLImageElement>("img")];
+ const ranges = new Map(
+ [...scene.querySelectorAll<HTMLInputElement>("input[data-setting]")].map((input) => [
+ input.dataset.setting ?? "",
+ input,
+ ]),
+ );
+ const switches = new Map(
+ [...scene.querySelectorAll<HTMLButtonElement>("button[role=switch]")].map((button) => [
+ button.dataset.setting ?? "",
+ button,
+ ]),
+ );
+
+ const isOn = (key: string) => switches.get(key)?.getAttribute("aria-checked") === "true";
+ const value = (key: string) => Number(ranges.get(key)?.value ?? 0);
+
+ const paintRange = (input: HTMLInputElement) => {
+ const min = Number(input.min);
+ const max = Number(input.max);
+ input.style.setProperty("--p", String((Number(input.value) - min) / (max - min || 1)));
+ };
+
+ /* ---- Preview -------------------------------------------------------- */
+
+ let pointerX: number | null = null;
+ let nearBottom = false;
+ let nearTop = false;
+
+ const layoutDock = () => {
+ const size = value("iconSize") * PREVIEW_SCALE;
+ const peak = value("magnifiedSize") * PREVIEW_SCALE;
+ const magnify = isOn("magnification") && pointerX !== null && !prefersReducedMotion();
+ const centers = icons.map((_, index) => {
+ // Centres of the resting row: the magnified widths are derived from these.
+ const gap = 6;
+ const rowWidth = icons.length * size + (icons.length - 1) * gap;
+ const left = (dock.parentElement?.clientWidth ?? 0) / 2 - rowWidth / 2;
+ return left + index * (size + gap) + size / 2;
+ });
+ icons.forEach((icon, index) => {
+ let width = size;
+ if (magnify && pointerX !== null) {
+ const distance = pointerX - centers[index];
+ width = size + (Math.max(peak, size) - size) * Math.exp(-(distance * distance) / (2 * SIGMA * SIGMA));
+ }
+ icon.style.width = `${width}px`;
+ icon.style.height = `${width}px`;
+ });
+ dock.style.setProperty("--rest", `${size}px`);
+ };
+
+ const applyBars = () => {
+ const dockHidden = isOn("autoHide") && !nearBottom;
+ const barShown = isOn("menuBar") && (!isOn("menuBarAutoHide") || nearTop);
+ dock.classList.toggle("is-hidden", dockHidden);
+ bar.classList.toggle("is-hidden", !barShown);
+ const autoRow = scene.querySelector<HTMLElement>("[data-row=menuBarAutoHide]");
+ if (autoRow) autoRow.hidden = !isOn("menuBar");
+ };
+
+ preview.addEventListener("pointermove", (event) => {
+ const rect = preview.getBoundingClientRect();
+ const y = event.clientY - rect.top;
+ nearBottom = rect.height - y < EDGE + (isOn("autoHide") ? 0 : 60);
+ nearTop = y < EDGE;
+ pointerX = nearBottom ? event.clientX - rect.left : null;
+ applyBars();
+ layoutDock();
+ });
+ preview.addEventListener("pointerleave", () => {
+ pointerX = null;
+ nearBottom = false;
+ nearTop = false;
+ applyBars();
+ layoutDock();
+ });
+
+ /* ---- Controls ------------------------------------------------------- */
+
+ const syncMagnified = () => {
+ const magnified = ranges.get("magnifiedSize");
+ if (!magnified) return;
+ // As in the app: the magnified size never goes below the icon size.
+ magnified.min = String(value("iconSize"));
+ if (Number(magnified.value) < value("iconSize")) magnified.value = String(value("iconSize"));
+ magnified.disabled = !isOn("magnification");
+ paintRange(magnified);
+ };
+
+ ranges.forEach((input) => {
+ paintRange(input);
+ input.addEventListener("input", () => {
+ paintRange(input);
+ syncMagnified();
+ layoutDock();
+ });
+ });
+
+ switches.forEach((button) => {
+ button.addEventListener("click", () => {
+ button.setAttribute("aria-checked", String(!isOn(button.dataset.setting ?? "")));
+ syncMagnified();
+ applyBars();
+ layoutDock();
+ });
+ });
+
+ /* ---- Panes and language ---------------------------------------------- */
+
+ const title = scene.querySelector<HTMLElement>("[data-pane-title]");
+ let pane = "dock";
+ const showPane = (next: string) => {
+ pane = next;
+ scene.querySelectorAll<HTMLElement>("[data-view]").forEach((view) => {
+ view.hidden = view.dataset.view !== next;
+ });
+ scene.querySelectorAll<HTMLButtonElement>("[data-pane]").forEach((button) => {
+ if (button.dataset.pane === next) button.setAttribute("aria-current", "page");
+ else button.removeAttribute("aria-current");
+ });
+ if (title) title.textContent = strings[next] ?? next;
+ };
+ scene.querySelectorAll<HTMLButtonElement>("[data-pane]").forEach((button) => {
+ button.addEventListener("click", () => showPane(button.dataset.pane ?? "dock"));
+ });
+
+ const status = scene.querySelector<HTMLElement>("[data-update-status]");
+ const setLanguage = (choice: string) => {
+ const resolved = choice === "auto" ? (navigator.language.toLowerCase().startsWith("es") ? "es" : "en") : choice;
+ strings = texts[resolved === "es" ? "es" : "en"];
+ scene.querySelectorAll<HTMLElement>("[data-t]").forEach((node) => {
+ const text = strings[node.dataset.t ?? ""];
+ if (text) node.textContent = text;
+ });
+ scene.querySelectorAll<HTMLElement>("[aria-label]").forEach((node) => {
+ const key = node.dataset.setting;
+ if (key && strings[key]) node.setAttribute("aria-label", strings[key]);
+ });
+ if (status) status.textContent = strings.updatesCurrent;
+ scene.querySelectorAll<HTMLButtonElement>("[data-lang]").forEach((button) => {
+ button.setAttribute("aria-checked", String(button.dataset.lang === choice));
+ });
+ showPane(pane);
+ };
+ scene.querySelectorAll<HTMLButtonElement>("[data-lang]").forEach((button) => {
+ button.addEventListener("click", () => setLanguage(button.dataset.lang ?? "auto"));
+ });
+
+ const check = scene.querySelector<HTMLButtonElement>("[data-update]");
+ check?.addEventListener("click", () => {
+ if (!status) return;
+ check.disabled = true;
+ status.textContent = strings.updatesChecking;
+ window.setTimeout(() => {
+ status.textContent = strings.updatesCurrent;
+ check.disabled = false;
+ }, CHECK_MS);
+ });
+
+ syncMagnified();
+ applyBars();
+ layoutDock();
+ window.addEventListener("resize", layoutDock, { passive: true });
+}
diff --git a/muelle/src/scripts/reveal.ts b/muelle/src/scripts/reveal.ts
index 283b5a9..6f3e52a 100644
--- a/muelle/src/scripts/reveal.ts
+++ b/muelle/src/scripts/reveal.ts
@@ -34,22 +34,4 @@ export function initReveal(root: HTMLElement) {
}),
});
});
-
- const pipe = root.querySelector<HTMLElement>(".pipe");
- if (!pipe) return;
-
- // The connectors read `--w` from the node, so they grow out of it.
- ScrollTrigger.create({
- trigger: pipe,
- start: "top 75%",
- once: true,
- onEnter: () => {
- // The connector's CSS default is already 1, so it has to be driven from 0 to grow.
- gsap.fromTo(
- pipe.querySelectorAll(".node"),
- { "--w": 0 },
- { "--w": 1, duration: 0.8, stagger: 0.1, ease: "power2.out" },
- );
- },
- });
}
diff --git a/muelle/src/styles/showcase.css b/muelle/src/styles/showcase.css
new file mode 100644
index 0000000..0947a2c
--- /dev/null
+++ b/muelle/src/styles/showcase.css
@@ -0,0 +1,995 @@
+/* The four product scenes after the hero: anatomy, settings, reversible, download.
+ macOS idioms throughout: window chrome, switches, sliders, disclosure. */
+
+:root {
+ --mac-accent: #0a84ff;
+ --mac-window: rgb(255 255 255 / 0.86);
+ --mac-sidebar: rgb(240 238 232 / 0.75);
+ --mac-card: rgb(255 255 255 / 0.9);
+ --mac-hairline: rgb(0 0 0 / 0.09);
+ --mac-track: rgb(0 0 0 / 0.14);
+ --mac-segment: #ffffff;
+ --glass: rgb(255 255 255 / 0.28);
+ --glass-edge: rgb(255 255 255 / 0.55);
+}
+
+@media (prefers-color-scheme: dark) {
+ :root {
+ --mac-window: rgb(32 34 36 / 0.92);
+ --mac-sidebar: rgb(44 46 48 / 0.7);
+ --mac-card: rgb(255 255 255 / 0.05);
+ --mac-hairline: rgb(255 255 255 / 0.08);
+ --mac-track: rgb(255 255 255 / 0.2);
+ --mac-segment: rgb(255 255 255 / 0.2);
+ --glass: rgb(40 40 44 / 0.4);
+ --glass-edge: rgb(255 255 255 / 0.18);
+ }
+}
+
+/* ---------------------------------------------------------------- Intro */
+
+.intro {
+ max-width: 760px;
+ margin: 0 auto;
+ text-align: center;
+}
+
+.intro-eyebrow {
+ margin-bottom: 14px;
+ font-size: 1.0625rem;
+ font-weight: 700;
+ background: var(--gradient-primary);
+ background-clip: text;
+ color: transparent;
+}
+
+.intro-title {
+ font-size: clamp(2.5rem, 6.4vw, 4.75rem);
+}
+
+.intro-lead {
+ max-width: 600px;
+ margin: 22px auto 0;
+ font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
+ line-height: 1.5;
+ color: var(--color-mute);
+}
+
+/* ---------------------------------------------------------------- Anatomy */
+
+.anatomy-scroll {
+ margin-top: 72px;
+ overflow-x: auto;
+ padding: 0 4px 12px;
+ scrollbar-width: thin;
+}
+
+.anatomy {
+ --tile: clamp(46px, 5.2vw, 64px);
+ position: relative;
+ display: grid;
+ grid-template-columns: repeat(var(--columns), auto);
+ grid-template-rows: auto auto auto;
+ justify-content: center;
+ align-items: center;
+ column-gap: 16px;
+ width: max-content;
+ min-width: 100%;
+ /* Room for the outermost labels, which are wider than a one-icon group. */
+ padding: 0 64px;
+}
+
+/* The glass spans every column of the middle row, behind the tiles. */
+.anatomy-glass {
+ grid-row: 2;
+ grid-column: 1 / -1;
+ align-self: stretch;
+ margin: 0 -14px;
+ border: 1px solid var(--glass-edge);
+ border-radius: 26px;
+ background: var(--glass);
+ backdrop-filter: blur(24px) saturate(170%);
+ box-shadow:
+ 0 30px 60px rgb(0 0 0 / 0.16),
+ inset 0 1px 0 rgb(255 255 255 / 0.35);
+}
+
+.anatomy::before {
+ /* A soft wallpaper glow under the glass, so it reads as glass on any theme. */
+ content: "";
+ position: absolute;
+ inset: 25% 10%;
+ z-index: -1;
+ border-radius: 50%;
+ background: radial-gradient(closest-side, rgb(249 124 3 / 0.28), rgb(10 132 255 / 0.12), transparent);
+ filter: blur(30px);
+}
+
+.anatomy-tiles {
+ grid-row: 2;
+ position: relative;
+ display: flex;
+ gap: 8px;
+ margin: 0;
+ padding: 12px 0 16px;
+}
+
+.anatomy-tile {
+ position: relative;
+ display: grid;
+ place-items: center;
+ width: var(--tile);
+ height: var(--tile);
+}
+
+.anatomy-tile img {
+ width: 100%;
+ height: 100%;
+}
+
+.anatomy-dot {
+ position: absolute;
+ bottom: -9px;
+ left: 50%;
+ width: 5px;
+ height: 5px;
+ translate: -50% 0;
+ border-radius: 50%;
+ background: var(--color-fg);
+ opacity: 0.7;
+}
+
+.anatomy-start {
+ corner-shape: squircle;
+ border-radius: 22%;
+ background: linear-gradient(160deg, #3c9bff, #0062d1);
+ box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35);
+}
+
+.anatomy-start svg {
+ width: 52%;
+ fill: #fff;
+}
+
+.anatomy-window {
+ display: flex;
+ flex-direction: column;
+ gap: 5px;
+ place-items: stretch;
+ padding: 7px;
+ corner-shape: squircle;
+ border-radius: 18%;
+ background: #fffdf7;
+ box-shadow: 0 4px 10px rgb(0 0 0 / 0.18);
+}
+
+.anatomy-window-bar {
+ display: flex;
+ gap: 3px;
+ margin-bottom: 2px;
+}
+
+.anatomy-window-bar i {
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ background: #ff5f57;
+}
+
+.anatomy-window-bar i:nth-child(2) {
+ background: #febc2e;
+}
+
+.anatomy-window-bar i:nth-child(3) {
+ background: #28c840;
+}
+
+.anatomy-window-line {
+ height: 4px;
+ border-radius: 2px;
+ background: rgb(0 0 0 / 0.14);
+}
+
+.anatomy-window-line.short {
+ width: 60%;
+}
+
+.anatomy-divider {
+ grid-row: 2;
+ align-self: stretch;
+ width: 1px;
+ margin: 14px 0 18px;
+ background: color-mix(in srgb, var(--color-mute) 50%, transparent);
+}
+
+/* A label sits above or below its group. It does not count towards the column
+ width (the tiles set it), so its text may spread wider than a one-icon group,
+ and the bracket under it spans exactly the group's icons. */
+.anatomy-label {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ contain: inline-size;
+ margin: 0;
+ font-size: 0.8125rem;
+ line-height: 1.35;
+ text-align: center;
+}
+
+.anatomy-label.is-top {
+ grid-row: 1;
+ align-self: end;
+ padding-bottom: 12px;
+}
+
+.anatomy-label.is-bottom {
+ grid-row: 3;
+ flex-direction: column-reverse;
+ align-self: start;
+ padding-top: 20px;
+}
+
+.anatomy-text {
+ display: grid;
+ gap: 2px;
+ width: 150px;
+}
+
+.anatomy-text b {
+ font-size: 0.9375rem;
+ letter-spacing: -0.01em;
+}
+
+.anatomy-text span {
+ color: var(--color-mute);
+}
+
+.anatomy-bracket {
+ align-self: stretch;
+ height: 9px;
+ margin: 10px 2px 0;
+ border: 1.5px solid color-mix(in srgb, var(--color-mute) 45%, transparent);
+ border-bottom: 0;
+ border-radius: 6px 6px 0 0;
+}
+
+.anatomy-label.is-bottom .anatomy-bracket {
+ margin: 0 2px 10px;
+ border: 1.5px solid color-mix(in srgb, var(--color-mute) 45%, transparent);
+ border-top: 0;
+ border-radius: 0 0 6px 6px;
+}
+
+/* -------------------------------------------------------------- Customize */
+
+.custom {
+ display: grid;
+ gap: 28px;
+ align-items: center;
+ margin-top: 64px;
+}
+
+@media (min-width: 1024px) {
+ .custom {
+ grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
+ gap: 40px;
+ }
+}
+
+.mac-window {
+ overflow: hidden;
+ border: 1px solid var(--mac-hairline);
+ corner-shape: squircle;
+ border-radius: 22px;
+ background: var(--mac-window);
+ box-shadow:
+ 0 40px 90px rgb(0 0 0 / 0.18),
+ 0 0 0 0.5px rgb(0 0 0 / 0.1);
+ backdrop-filter: blur(30px);
+}
+
+.mac-lights {
+ display: flex;
+ gap: 8px;
+}
+
+.mac-lights i {
+ width: 12px;
+ height: 12px;
+ border-radius: 50%;
+ background: #ff5f57;
+ box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.15);
+}
+
+.mac-lights i:nth-child(2) {
+ background: #febc2e;
+}
+
+.mac-lights i:nth-child(3) {
+ background: #28c840;
+}
+
+.settings {
+ display: grid;
+ grid-template-columns: 170px minmax(0, 1fr);
+ min-height: 470px;
+ font-size: 13px;
+ text-align: left;
+}
+
+.settings-side {
+ padding: 16px 10px;
+ border-right: 1px solid var(--mac-hairline);
+ background: var(--mac-sidebar);
+}
+
+.settings-nav {
+ display: grid;
+ gap: 2px;
+ margin-top: 26px;
+}
+
+.settings-nav button {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ padding: 6px 8px;
+ border-radius: 7px;
+ text-align: left;
+ cursor: pointer;
+}
+
+.settings-nav button:hover {
+ background: var(--mac-hairline);
+}
+
+.settings-nav button[aria-current="page"] {
+ background: var(--mac-accent);
+ color: #fff;
+}
+
+.settings-glyph {
+ display: grid;
+ place-items: center;
+ width: 20px;
+ height: 20px;
+ border-radius: 5px;
+ background: rgb(120 120 128 / 0.5);
+ color: #fff;
+ font-size: 12px;
+}
+
+.settings-main {
+ min-width: 0;
+ padding: 14px 20px 22px;
+}
+
+.settings-title {
+ margin: 2px 0 16px;
+ font-size: 15px;
+ font-weight: 700;
+}
+
+.settings-body {
+ display: grid;
+ gap: 14px;
+}
+
+.settings-card {
+ border: 1px solid var(--mac-hairline);
+ border-radius: 10px;
+ background: var(--mac-card);
+}
+
+.settings-row {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 16px;
+ min-height: 46px;
+ padding: 9px 12px;
+}
+
+.settings-row + .settings-row {
+ border-top: 1px solid var(--mac-hairline);
+}
+
+.settings-row[hidden] {
+ display: none;
+}
+
+.settings-text {
+ display: grid;
+ gap: 2px;
+ min-width: 0;
+}
+
+.settings-label {
+ font-weight: 500;
+}
+
+.settings-hint {
+ font-size: 11.5px;
+ line-height: 1.35;
+ color: var(--color-mute);
+}
+
+.mac-switch {
+ position: relative;
+ flex: none;
+ width: 38px;
+ height: 22px;
+ border-radius: 999px;
+ background: var(--mac-track);
+ cursor: pointer;
+ transition: background-color 0.2s;
+}
+
+.mac-switch i {
+ position: absolute;
+ top: 2px;
+ left: 2px;
+ width: 18px;
+ height: 18px;
+ border-radius: 50%;
+ background: #fff;
+ box-shadow: 0 1px 3px rgb(0 0 0 / 0.3);
+ transition: translate 0.22s cubic-bezier(0.3, 1.4, 0.6, 1);
+}
+
+.mac-switch[aria-checked="true"] {
+ background: var(--mac-accent);
+}
+
+.mac-switch[aria-checked="true"] i {
+ translate: 16px 0;
+}
+
+.mac-switch.is-large {
+ width: 52px;
+ height: 30px;
+}
+
+.mac-switch.is-large i {
+ width: 26px;
+ height: 26px;
+}
+
+.mac-switch.is-large[aria-checked="true"] i {
+ translate: 22px 0;
+}
+
+.mac-switch:focus-visible,
+.mac-button:focus-visible,
+.mac-seg button:focus-visible,
+.mac-range:focus-visible,
+.settings-nav button:focus-visible {
+ outline: 2px solid var(--mac-accent);
+ outline-offset: 2px;
+}
+
+.mac-range-wrap {
+ display: flex;
+ flex: 0 1 260px;
+ align-items: center;
+ gap: 8px;
+ font-size: 11px;
+ color: var(--color-mute);
+}
+
+.mac-range {
+ --p: 0.5;
+ flex: 1;
+ min-width: 70px;
+ height: 4px;
+ border-radius: 2px;
+ appearance: none;
+ background: linear-gradient(
+ to right,
+ var(--mac-accent) calc(var(--p) * 100%),
+ var(--mac-track) calc(var(--p) * 100%)
+ );
+ cursor: pointer;
+}
+
+.mac-range:disabled {
+ opacity: 0.4;
+ cursor: default;
+}
+
+.mac-range::-webkit-slider-thumb {
+ width: 18px;
+ height: 18px;
+ border-radius: 50%;
+ appearance: none;
+ background: #fff;
+ box-shadow:
+ 0 1px 3px rgb(0 0 0 / 0.35),
+ 0 0 0 0.5px rgb(0 0 0 / 0.1);
+}
+
+.mac-range::-moz-range-thumb {
+ width: 18px;
+ height: 18px;
+ border: 0;
+ border-radius: 50%;
+ background: #fff;
+ box-shadow: 0 1px 3px rgb(0 0 0 / 0.35);
+}
+
+.mac-seg {
+ display: flex;
+ padding: 2px;
+ border-radius: 7px;
+ background: var(--mac-hairline);
+}
+
+.mac-seg button {
+ padding: 3px 10px;
+ border-radius: 5px;
+ font-size: 12px;
+ cursor: pointer;
+}
+
+.mac-seg button[aria-checked="true"] {
+ background: var(--mac-segment);
+ box-shadow: 0 1px 2px rgb(0 0 0 / 0.18);
+}
+
+.mac-button {
+ flex: none;
+ padding: 4px 14px;
+ border-radius: 6px;
+ background: var(--mac-segment);
+ box-shadow:
+ 0 0 0 0.5px var(--mac-hairline),
+ 0 1px 2px rgb(0 0 0 / 0.14);
+ cursor: pointer;
+}
+
+.mac-button:disabled {
+ opacity: 0.5;
+}
+
+/* The preview desk the settings act on. */
+.preview {
+ position: relative;
+ aspect-ratio: 4 / 3;
+ overflow: hidden;
+ corner-shape: squircle;
+ border-radius: 22px;
+ box-shadow: 0 30px 70px rgb(0 0 0 / 0.22);
+}
+
+.preview-wall {
+ position: absolute;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+}
+
+.preview-bar {
+ position: absolute;
+ inset: 0 0 auto;
+ display: flex;
+ justify-content: space-between;
+ height: 24px;
+ padding: 0 12px;
+ align-items: center;
+ font-size: 11px;
+ color: #fff;
+ background: rgb(0 0 0 / 0.26);
+ backdrop-filter: blur(14px) saturate(160%);
+ transition: translate 0.3s ease;
+}
+
+.preview-bar.is-hidden {
+ translate: 0 -100%;
+}
+
+.preview-dock {
+ position: absolute;
+ bottom: 10px;
+ left: 50%;
+ display: flex;
+ align-items: flex-end;
+ gap: 6px;
+ padding: 6px 8px;
+ translate: -50% 0;
+ border: 1px solid rgb(255 255 255 / 0.4);
+ border-radius: 16px;
+ background: rgb(255 255 255 / 0.22);
+ backdrop-filter: blur(20px) saturate(170%);
+ box-shadow: 0 12px 30px rgb(0 0 0 / 0.25);
+ transition: translate 0.32s ease;
+}
+
+.preview-dock.is-hidden {
+ translate: -50% calc(100% + 14px);
+}
+
+.preview-dock img {
+ display: block;
+ /* The JS sets each size; this only smooths it. */
+ transition:
+ width 0.12s ease-out,
+ height 0.12s ease-out;
+}
+
+/* ------------------------------------------------------------- Reversible */
+
+.flip {
+ max-width: 980px;
+ margin: 56px auto 0;
+}
+
+.flip-control {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 14px;
+ margin-bottom: 22px;
+ font-size: 1.0625rem;
+ font-weight: 700;
+ cursor: pointer;
+}
+
+.flip-desk {
+ position: relative;
+ aspect-ratio: 16 / 8;
+ min-height: 260px;
+ overflow: hidden;
+ corner-shape: squircle;
+ border-radius: 26px;
+ box-shadow: 0 40px 90px rgb(0 0 0 / 0.25);
+}
+
+.flip-wall {
+ position: absolute;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+}
+
+.flip-menubar,
+.flip-dock,
+.flip-taskbar {
+ position: absolute;
+ transition:
+ translate 0.55s cubic-bezier(0.22, 1, 0.36, 1),
+ opacity 0.4s ease;
+}
+
+.flip-menubar {
+ inset: 0 0 auto;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ height: 28px;
+ padding: 0 16px;
+ font-size: 12px;
+ color: #fff;
+ background: rgb(0 0 0 / 0.28);
+ backdrop-filter: blur(14px) saturate(160%);
+}
+
+.flip-dock {
+ bottom: 14px;
+ left: 50%;
+ translate: -50% 0;
+ display: flex;
+ gap: clamp(4px, 1vw, 8px);
+ padding: clamp(5px, 1vw, 8px) clamp(6px, 1.2vw, 10px);
+ border: 1px solid rgb(255 255 255 / 0.4);
+ border-radius: 20px;
+ background: rgb(255 255 255 / 0.22);
+ backdrop-filter: blur(20px) saturate(170%);
+ box-shadow: 0 14px 34px rgb(0 0 0 / 0.28);
+}
+
+.flip-dock img {
+ width: clamp(22px, 5.4vw, 50px);
+ height: auto;
+}
+
+.flip-taskbar {
+ inset: auto 0 0;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: 48px;
+ background: rgb(32 32 36 / 0.82);
+ backdrop-filter: blur(20px);
+ border-top: 1px solid rgb(255 255 255 / 0.08);
+}
+
+.flip-taskbar-apps {
+ display: flex;
+ align-items: center;
+ gap: 14px;
+}
+
+.flip-taskbar-apps img {
+ width: 26px;
+ height: 26px;
+}
+
+.flip-start {
+ width: 22px;
+ fill: #4cc2ff;
+}
+
+.flip-taskbar-clock {
+ position: absolute;
+ right: 16px;
+ font-size: 12px;
+ color: #fff;
+}
+
+/* Off: the Windows taskbar. On: menu bar and dock. */
+.flip-desk[data-state="off"] .flip-menubar {
+ translate: 0 -100%;
+ opacity: 0;
+}
+
+.flip-desk[data-state="off"] .flip-dock {
+ translate: -50% calc(100% + 30px);
+ opacity: 0;
+}
+
+.flip-desk[data-state="on"] .flip-dock {
+ translate: -50% 0;
+}
+
+.flip-desk[data-state="on"] .flip-taskbar {
+ translate: 0 100%;
+ opacity: 0;
+}
+
+.facts {
+ display: grid;
+ gap: 28px;
+ margin: 56px auto 0;
+ padding: 0;
+ list-style: none;
+}
+
+@media (min-width: 768px) {
+ .facts {
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: 40px;
+ }
+}
+
+.facts li {
+ display: grid;
+ gap: 6px;
+}
+
+.facts-mark {
+ display: grid;
+ place-items: center;
+ width: 28px;
+ height: 28px;
+ margin-bottom: 6px;
+ border-radius: 50%;
+ background: var(--gradient-primary);
+ color: var(--color-ink);
+ font-size: 13px;
+ font-weight: 800;
+}
+
+.facts b {
+ font-size: 1.125rem;
+ letter-spacing: -0.02em;
+}
+
+.facts p {
+ margin: 0;
+ line-height: 1.5;
+ color: var(--color-mute);
+}
+
+/* --------------------------------------------------------------- Download */
+
+.get {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ text-align: center;
+}
+
+.get-icon {
+ width: 132px;
+ height: 132px;
+ filter: drop-shadow(0 22px 34px rgb(118 76 214 / 0.35));
+}
+
+.get-name {
+ margin-top: 26px;
+ font-size: clamp(2.75rem, 6vw, 4.25rem);
+}
+
+.get-tagline {
+ margin-top: 12px;
+ font-size: 1.25rem;
+ color: var(--color-mute);
+}
+
+.get-meta {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ gap: 8px;
+ margin: 26px 0 0;
+ padding: 0;
+ list-style: none;
+}
+
+.get-meta li {
+ padding: 6px 12px;
+ border: 1px solid var(--color-line);
+ border-radius: 999px;
+ font-size: 0.8125rem;
+ color: var(--color-mute);
+}
+
+.get-actions {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: center;
+ gap: 22px;
+ margin-top: 30px;
+}
+
+.get-link {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+ font-weight: 600;
+ color: var(--color-fg);
+ text-underline-offset: 4px;
+}
+
+.get-link:hover {
+ text-decoration: underline;
+}
+
+.get-steps {
+ display: grid;
+ gap: 18px;
+ max-width: 900px;
+ margin: 64px auto 0;
+ padding: 0;
+ list-style: none;
+ counter-reset: step;
+}
+
+@media (min-width: 768px) {
+ .get-steps {
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: 28px;
+ }
+}
+
+.get-steps li {
+ display: grid;
+ align-content: start;
+ gap: 4px;
+ padding-top: 16px;
+ border-top: 1px solid var(--color-line);
+ counter-increment: step;
+}
+
+.get-steps li::before {
+ content: counter(step);
+ font-size: 0.8125rem;
+ font-weight: 800;
+ color: var(--color-mute);
+}
+
+.get-steps b {
+ font-size: 1rem;
+}
+
+.get-steps span {
+ line-height: 1.45;
+ color: var(--color-mute);
+}
+
+.get-source {
+ max-width: 900px;
+ margin: 40px auto 0;
+ border-top: 1px solid var(--color-line);
+ padding-top: 16px;
+}
+
+.get-source summary {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ font-weight: 700;
+ cursor: pointer;
+ list-style: none;
+}
+
+.get-source summary::-webkit-details-marker {
+ display: none;
+}
+
+/* The macOS disclosure triangle. */
+.get-source summary::before {
+ content: "";
+ border-left: 6px solid currentColor;
+ border-top: 4.5px solid transparent;
+ border-bottom: 4.5px solid transparent;
+ transition: rotate 0.2s ease;
+}
+
+.get-source[open] summary::before {
+ rotate: 90deg;
+}
+
+.get-source p {
+ margin: 12px 0;
+ color: var(--color-mute);
+}
+
+.get-source pre {
+ margin: 0;
+ overflow-x: auto;
+ padding: 16px 18px;
+ border-radius: 12px;
+ background: #16181a;
+ color: #e9e7e1;
+ font-family: var(--font-mono);
+ font-size: 0.8125rem;
+ line-height: 1.7;
+}
+
+@media (max-width: 640px) {
+ .settings {
+ grid-template-columns: 1fr;
+ }
+
+ .settings-side {
+ display: flex;
+ align-items: center;
+ gap: 16px;
+ border-right: 0;
+ border-bottom: 1px solid var(--mac-hairline);
+ }
+
+ .settings-nav {
+ display: flex;
+ margin-top: 0;
+ }
+
+ .settings-row:has(.mac-range-wrap) {
+ flex-wrap: wrap;
+ }
+
+ .mac-range-wrap {
+ flex-basis: 100%;
+ }
+
+ .flip-desk {
+ aspect-ratio: 4 / 3;
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .mac-switch,
+ .mac-switch i,
+ .preview-bar,
+ .preview-dock,
+ .preview-dock img,
+ .flip-menubar,
+ .flip-dock,
+ .flip-taskbar {
+ transition: none;
+ }
+}