A lightweight, macOS-style dock for Windows 11, with glass visuals, smooth magnification, and Genie effect.
refactor: remove unused UI components and related styles
CristianOlivera1e4d32be3c45f
diff --git a/muelle/src/assets/backgrounds/closing-cta.avif b/muelle/src/assets/backgrounds/closing-cta.avifdeleted file mode 100644index 7959d7b..0000000Binary files a/muelle/src/assets/backgrounds/closing-cta.avif and /dev/null differdiff --git a/muelle/src/assets/backgrounds/core-card-background.avif b/muelle/src/assets/backgrounds/core-card-background.avifdeleted file mode 100644index 02fb50b..0000000Binary files a/muelle/src/assets/backgrounds/core-card-background.avif and /dev/null differdiff --git a/muelle/src/components/sections/ClosingCta.astro b/muelle/src/components/sections/ClosingCta.astrodeleted file mode 100644index e68c62c..0000000--- a/muelle/src/components/sections/ClosingCta.astro+++ /dev/null@@ -1,32 +0,0 @@-----import Section from "@/components/layout/Section.astro";-import Button from "@/components/ui/Button.astro";-import Icon from "@/components/ui/Icon.astro";-import closingBackground from "@/assets/backgrounds/closing-cta.avif";-import { closing } from "@/data/install";-import { site } from "@/data/site";-import "@/styles/install.css";------<Section id="download" spacing={false} class="mask-b-from-70% mask-b-to-99%">- <div- class="end"- data-r- style={`--closing-background: url("${closingBackground.src}")`}- >- <h2>{closing.heading}</h2>- <p class="text-lg">{closing.body}</p>- <Button href={site.download} variant="inverse">- {closing.cta}- <Icon name="arrow-right" size={18} />- </Button>- <Icon name="anchor" size={320} class="cta-icon" />- </div>-</Section>--<script>- import { initReveal } from "@/scripts/reveal";-- const section = document.querySelector<HTMLElement>("#download");- if (section) initReveal(section);-</script>diff --git a/muelle/src/components/sections/Features.astro b/muelle/src/components/sections/Features.astrodeleted file mode 100644index a82e556..0000000--- a/muelle/src/components/sections/Features.astro+++ /dev/null@@ -1,65 +0,0 @@-----import Section from "@/components/layout/Section.astro";-import CodeCard from "@/components/ui/CodeCard.astro";-import FeatureCard from "@/components/ui/FeatureCard.astro";-import GlassSlab from "@/components/ui/GlassSlab.astro";-import MagnifyDemo from "@/components/ui/MagnifyDemo.astro";-import MenuBarPreview from "@/components/ui/MenuBarPreview.astro";-import Timeline from "@/components/ui/Timeline.astro";-import { features, material, menuBar, motion, safety, source } from "@/data/features";-import "@/styles/features.css";------<Section id="features">- <header- class="flex flex-col items-start gap-6 border-t border-line pt-3.5 pb-10 min-[900px]:flex-row min-[900px]:items-end min-[900px]:justify-between"- data-r- >- <h2 class="text-[clamp(2.125rem,4.6vw,3.75rem)]">- {features.heading}- <span class="block bg-gradient-to-r from-neutral-600 via-neutral-400 to-white bg-clip-text text-transparent">- {features.headingAccent}- </span>- </h2>- <span class="font-mono text-[11px] leading-[1.4] tracking-[0.08em] text-mute uppercase">- {features.eyebrow}- </span>- </header>-- <div class="bento">- <FeatureCard label={safety.label} title={safety.title} body={safety.body} wide>- <Timeline steps={safety.steps} />- </FeatureCard>-- <FeatureCard label={material.label} title={material.title} body={material.body} tilt>- <GlassSlab icons={material.icons} />- </FeatureCard>-- <FeatureCard label={motion.label} title={motion.title} body={motion.body}>- <MagnifyDemo icons={motion.icons} range={motion.range} />- </FeatureCard>-- <FeatureCard label={menuBar.label} title={menuBar.title} body={menuBar.body}>- <MenuBarPreview app={menuBar.app} time={menuBar.time} />- </FeatureCard>-- <FeatureCard label={source.label} title={source.title} body={source.body}>- <CodeCard commands={source.commands} />- </FeatureCard>- </div>-</Section>--<script>- import { initMagnifyDemo } from "@/scripts/magnify-demo";- import { initReveal } from "@/scripts/reveal";- import { initSpotlight } from "@/scripts/spotlight";- import { initTilt } from "@/scripts/tilt";-- const section = document.querySelector<HTMLElement>("#features");- if (section) {- initReveal(section);- initSpotlight(section);- initTilt(section);- initMagnifyDemo(section);- }-</script>diff --git a/muelle/src/components/sections/HowItWorks.astro b/muelle/src/components/sections/HowItWorks.astrodeleted file mode 100644index 9747e67..0000000--- a/muelle/src/components/sections/HowItWorks.astro+++ /dev/null@@ -1,31 +0,0 @@-----import Section from "@/components/layout/Section.astro";-import Pipeline from "@/components/ui/Pipeline.astro";-import { core, howItWorks, inputs, outputs } from "@/data/pipeline";------<Section id="how">- <header- class="flex flex-col items-start gap-6 border-t border-line pt-3.5 pb-10 min-[900px]:flex-row min-[900px]:items-end min-[900px]:justify-between"- data-r- >- <h2 class="text-[clamp(2.125rem,4.6vw,3.75rem)]">- {howItWorks.heading}- <span class="block bg-gradient-to-r from-neutral-600 via-neutral-400 to-white bg-clip-text text-transparent">- {howItWorks.headingAccent}- </span>- </h2>- <span class="font-mono text-[11px] leading-[1.4] tracking-[0.08em] text-mute uppercase">- {howItWorks.eyebrow}- </span>- </header>-- <Pipeline inputs={inputs} outputs={outputs} core={core} />-</Section>--<script>- import { initReveal } from "@/scripts/reveal";-- const section = document.querySelector<HTMLElement>("#how");- if (section) initReveal(section);-</script>diff --git a/muelle/src/components/sections/Install.astro b/muelle/src/components/sections/Install.astrodeleted file mode 100644index 4677915..0000000--- a/muelle/src/components/sections/Install.astro+++ /dev/null@@ -1,40 +0,0 @@-----import Section from "@/components/layout/Section.astro";-import Tabs from "@/components/ui/Tabs.astro";-import { install, installTabs } from "@/data/install";-import "@/styles/install.css";------<Section id="install">- <header- class="flex flex-col items-start gap-6 border-t border-line pt-3.5 pb-10 min-[900px]:flex-row min-[900px]:items-end min-[900px]:justify-between"- data-r- >- <h2 class="text-[clamp(2.125rem,4.6vw,3.75rem)]">- {install.heading}- <span class="block bg-gradient-to-r from-neutral-600 via-neutral-400 to-white bg-clip-text text-transparent">- {install.headingAccent}- </span>- </h2>- <span class="font-mono text-[11px] leading-[1.4] tracking-[0.08em] text-mute uppercase">- {install.eyebrow}- </span>- </header>-- <div data-r>- <Tabs tabs={installTabs} label="Install methods" />- </div>-</Section>--<script>- import { initCopy } from "@/scripts/copy";- import { initReveal } from "@/scripts/reveal";- import { initTabs } from "@/scripts/tabs";-- const section = document.querySelector<HTMLElement>("#install");- if (section) {- initReveal(section);- initTabs(section);- initCopy(section);- }-</script>diff --git a/muelle/src/components/ui/CodeCard.astro b/muelle/src/components/ui/CodeCard.astrodeleted file mode 100644index c23debd..0000000--- a/muelle/src/components/ui/CodeCard.astro+++ /dev/null@@ -1,17 +0,0 @@-----interface Props {- commands: string[];-}--const { commands } = Astro.props;------<div class="code">- {- commands.map((command) => (- <div>- <span>$</span> {command}- </div>- ))- }-</div>diff --git a/muelle/src/components/ui/CopyButton.astro b/muelle/src/components/ui/CopyButton.astrodeleted file mode 100644index 6be3406..0000000--- a/muelle/src/components/ui/CopyButton.astro+++ /dev/null@@ -1,15 +0,0 @@-----import Icon from "@/components/ui/Icon.astro";--interface Props {- value: string;-}--const { value } = Astro.props;------<button type="button" class="cp" data-copy={value} aria-label="Copy command">- <Icon name="copy" size={14} class="icon-copy" />- <Icon name="check" size={14} class="icon-check hidden" />- <span class="sr-only" role="status" data-copy-label>Copy command</span>-</button>diff --git a/muelle/src/components/ui/CoreCard.astro b/muelle/src/components/ui/CoreCard.astrodeleted file mode 100644index a75d150..0000000--- a/muelle/src/components/ui/CoreCard.astro+++ /dev/null@@ -1,110 +0,0 @@-----import { Image } from "astro:assets";-import coreCardBackground from "@/assets/backgrounds/core-card-background.avif";-import type { PipelineCore } from "@/data/pipeline";--interface Props {- core: PipelineCore;-}--const { core } = Astro.props;--const memory = `${core.memory.value} ${core.memory.unit}`;------<div- class="core flex flex-col gap-3 squircle-lg p-[18px]"- data-r- style={`background-image: linear-gradient(rgb(0 0 0 / 0.35), rgb(0 0 0 / 0.35)), url("${coreCardBackground.src}")`}->- <span class="label flex justify-between font-mono text-[11px] leading-[1.4] tracking-[0.08em] uppercase">- <span>{core.name}</span>- <span>{memory}</span>- </span>-- <div class="flex justify-center gap-2.5 squircle-md px-3 py-6">- {- core.icons.map((icon) => (- <Image- src={icon}- alt=""- aria-hidden="true"- class="w-12 drop-shadow-[0_3px_4px_rgba(0,0,0,0.35)]"- />- ))- }- </div>-- <span class="track h-1 overflow-hidden squircle-pill" aria-hidden="true">- <i class="progress"></i>- </span>-- <span class="label flex items-center font-mono text-[11px] leading-[1.4] tracking-[0.08em] uppercase">- <i class="alive" aria-hidden="true"></i>{core.status}- </span>-</div>--<style>- .core {- color: #fff;- background-position: center;- background-repeat: no-repeat;- background-size: cover;- }-- .core .label {- color: #fff;- }-- .mini {- background: linear-gradient(180deg, #143a55, #1c6a8a);- }-- .track {- background: rgb(255 255 255 / 0.3);- }-- .progress {- display: block;- height: 100%;- background: #fff;- animation: fill 3.2s ease-in-out infinite;- }-- .alive {- width: 6px;- height: 6px;- margin-right: 8px;- border-radius: 50%;- background: #1a9d6b;- animation: breathe 4s ease-in-out infinite;- }-- @keyframes fill {- 0% {- width: 4%;- }- 70%,- 100% {- width: 100%;- }- }-- @keyframes breathe {- 50% {- opacity: 0.25;- scale: 0.7;- }- }-- @media (prefers-reduced-motion: reduce) {- .progress {- width: 100%;- animation: none;- }-- .alive {- animation: none;- }- }-</style>diff --git a/muelle/src/components/ui/FeatureCard.astro b/muelle/src/components/ui/FeatureCard.astrodeleted file mode 100644index 8dd5e59..0000000--- a/muelle/src/components/ui/FeatureCard.astro+++ /dev/null@@ -1,28 +0,0 @@-----interface Props {- label: string;- title: string;- body: string;- /** Two columns wide on the desktop grid. */- wide?: boolean;- /** Tilts the child slab towards the pointer. */- tilt?: boolean;- class?: string;-}--const { label, title, body, wide = false, tilt = false, class: className } = Astro.props;------<article- class:list={["bento-card", wide && "bento-card--wide", className]}- data-spotlight- data-tilt={tilt ? "true" : undefined}- data-r->- <span class="font-mono text-[11px] leading-[1.4] tracking-[0.08em] text-mute uppercase">- {label}- </span>- <h3 class="mt-2 mb-1.5 text-xl tracking-[-0.03em]">{title}</h3>- <p class="mb-5 max-w-[380px] text-sm text-mute">{body}</p>- <slot />-</article>diff --git a/muelle/src/components/ui/GlassSlab.astro b/muelle/src/components/ui/GlassSlab.astrodeleted file mode 100644index b13d00a..0000000--- a/muelle/src/components/ui/GlassSlab.astro+++ /dev/null@@ -1,16 +0,0 @@-----import type { ImageMetadata } from "astro";-import { Image } from "astro:assets";--interface Props {- icons: ImageMetadata[];-}--const { icons } = Astro.props;------<div class="stage" aria-hidden="true">- <div class="slab">- {icons.map((icon) => <Image src={icon} alt="" class="w-44" />)}- </div>-</div>diff --git a/muelle/src/components/ui/MagnifyDemo.astro b/muelle/src/components/ui/MagnifyDemo.astrodeleted file mode 100644index 6ad2830..0000000--- a/muelle/src/components/ui/MagnifyDemo.astro+++ /dev/null@@ -1,37 +0,0 @@-----import type { ImageMetadata } from "astro";-import { Image } from "astro:assets";--interface Props {- icons: ImageMetadata[];- range: { min: number; max: number; value: number };-}--const { icons, range } = Astro.props;------<div class="md" data-magnify-row style={`--s: ${range.value}px`} aria-hidden="true">- {icons.map((icon) => <Image src={icon} alt="" class="md-icon" />)}-</div>--<div class="mt-3.5 flex items-baseline justify-between">- <label- class="font-mono text-[11px] leading-[1.4] tracking-[0.08em] text-mute uppercase"- for="icon-size">Icon size</label- >- <output- class="font-mono text-[11px] leading-[1.4] tracking-[0.08em] text-mute uppercase tabular-nums"- for="icon-size"- data-magnify-value>{range.value} px</output- >-</div>--<input- class="range"- id="icon-size"- type="range"- min={range.min}- max={range.max}- value={range.value}- data-magnify-range-/>diff --git a/muelle/src/components/ui/MenuBarPreview.astro b/muelle/src/components/ui/MenuBarPreview.astrodeleted file mode 100644index 3a11ba7..0000000--- a/muelle/src/components/ui/MenuBarPreview.astro+++ /dev/null@@ -1,21 +0,0 @@-----import Icon from "@/components/ui/Icon.astro";--interface Props {- app: string;- time: string;-}--const { app, time } = Astro.props;------<div class="mbar" aria-hidden="true">- <span class="flex items-center gap-2">- <Icon name="anchor" size={16} />- <b>{app}</b>- </span>- <span class="flex items-center gap-2">- <Icon name="battery" size={18} />- <span class="tabular-nums" data-clock>{time}</span>- </span>-</div>diff --git a/muelle/src/components/ui/Pipeline.astro b/muelle/src/components/ui/Pipeline.astrodeleted file mode 100644index d4a6df2..0000000--- a/muelle/src/components/ui/Pipeline.astro+++ /dev/null@@ -1,27 +0,0 @@-----import CoreCard from "@/components/ui/CoreCard.astro";-import PipelineNode from "@/components/ui/PipelineNode.astro";-import type { PipelineCore, PipelineStep } from "@/data/pipeline";--interface Props {- inputs: PipelineStep[];- outputs: PipelineStep[];- core: PipelineCore;-}--const { inputs, outputs, core } = Astro.props;------<div- class="pipe grid items-center gap-4 squircle-lg border border-line bg-card p-4 min-[900px]:grid-cols-[1fr_1.25fr_1fr] min-[900px]:gap-12 min-[900px]:p-10"->- <div class="flex flex-col gap-3.5">- {inputs.map((step) => <PipelineNode step={step} direction="in" />)}- </div>-- <CoreCard core={core} />-- <div class="flex flex-col gap-3.5">- {outputs.map((step) => <PipelineNode step={step} direction="out" />)}- </div>-</div>diff --git a/muelle/src/components/ui/PipelineNode.astro b/muelle/src/components/ui/PipelineNode.astrodeleted file mode 100644index 552f9ba..0000000--- a/muelle/src/components/ui/PipelineNode.astro+++ /dev/null@@ -1,60 +0,0 @@-----import type { PipelineStep } from "@/data/pipeline";--interface Props {- step: PipelineStep;- /** Which way the dashed connector points: into the core, or out of it. */- direction: "in" | "out";-}--const { step, direction } = Astro.props;------<div class:list={["node", direction]} data-r>- <span class="font-mono text-[11px] leading-[1.4] tracking-[0.08em] text-mute uppercase">- {step.label}- </span>- <b>{step.title}</b>- <small class="text-mute">{step.detail}</small>-</div>--<style>- .node {- display: flex;- position: relative;- flex-direction: column;- gap: 2px;- padding: 14px;- border: 1px solid var(--color-line);- border-radius: 12px;- corner-shape: squircle;- background: var(--color-bg);- }-- /* Dashed connector across the 48px gap towards the core card. */- .node::after {- content: "";- position: absolute;- top: 50%;- width: 48px;- border-top: 1px dashed var(--color-dim);- transform: scaleX(var(--w, 1));- transform-origin: left;- }-- .node.in::after {- left: 100%;- }-- .node.out::after {- right: 100%;- transform-origin: right;- }-- /* Stacked columns have no gap to cross; the connectors would only add noise. */- @media (max-width: 899px) {- .node::after {- display: none;- }- }-</style>diff --git a/muelle/src/components/ui/Tabs.astro b/muelle/src/components/ui/Tabs.astrodeleted file mode 100644index 1612407..0000000--- a/muelle/src/components/ui/Tabs.astro+++ /dev/null@@ -1,46 +0,0 @@-----import Terminal from "@/components/ui/Terminal.astro";-import type { InstallTab } from "@/data/install";--interface Props {- tabs: InstallTab[];- label: string;-}--const { tabs, label } = Astro.props;------<div class="inst" data-tabs>- <div class="tabs" role="tablist" aria-label={label}>- {- tabs.map((tab, index) => (- <button- type="button"- role="tab"- id={`tab-${tab.id}`}- aria-selected={index === 0 ? "true" : "false"}- aria-controls={`panel-${tab.id}`}- tabindex={index === 0 ? 0 : -1}- data-tab- >- {tab.label}- </button>- ))- }- </div>-- {- tabs.map((tab, index) => (- <div- role="tabpanel"- id={`panel-${tab.id}`}- aria-labelledby={`tab-${tab.id}`}- class="term"- hidden={index !== 0}- data-panel- >- <Terminal rows={tab.rows} />- </div>- ))- }-</div>diff --git a/muelle/src/components/ui/Terminal.astro b/muelle/src/components/ui/Terminal.astrodeleted file mode 100644index 5d94739..0000000--- a/muelle/src/components/ui/Terminal.astro+++ /dev/null@@ -1,30 +0,0 @@-----import CopyButton from "@/components/ui/CopyButton.astro";-import type { TerminalRow } from "@/data/install";--interface Props {- rows: TerminalRow[];-}--const { rows } = Astro.props;------<ol class="term-rows">- {- rows.map((row, index) => (- <li>- <span class="num" aria-hidden="true">- {String(index + 1).padStart(2, "0")}- </span>- {row.command ? (- <>- <code>{row.text}</code>- <CopyButton value={row.text} />- </>- ) : (- <p>{row.text}</p>- )}- </li>- ))- }-</ol>diff --git a/muelle/src/components/ui/Timeline.astro b/muelle/src/components/ui/Timeline.astrodeleted file mode 100644index 7abbdea..0000000--- a/muelle/src/components/ui/Timeline.astro+++ /dev/null@@ -1,23 +0,0 @@-----import type { TimelineStep } from "@/data/features";--interface Props {- steps: TimelineStep[];-}--const { steps } = Astro.props;------<ol class="tl">- {- steps.map((step) => (- <li class:list={[step.state === "live" && "is-live", step.state === "warn" && "is-warn"]}>- <span class="font-mono text-[11px] leading-[1.4] tracking-[0.08em] text-mute uppercase">- {step.time}- </span>- <b class="text-[15px]">{step.title}</b>- <small class="text-[12px] text-mute">{step.detail}</small>- </li>- ))- }-</ol>diff --git a/muelle/src/data/features.ts b/muelle/src/data/features.tsdeleted file mode 100644index 6b4aea2..0000000--- a/muelle/src/data/features.ts+++ /dev/null@@ -1,72 +0,0 @@-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 recycleBin from "@/assets/icons/recycle-bin.webp";-import windowsTerminal from "@/assets/icons/windows-terminal.webp";-import { site } from "@/data/site";--/** One beat of the "your taskbar always comes back" timeline. */-export interface TimelineStep {- time: string;- title: string;- detail: string;- state?: "live" | "warn";-}--export const features = {- eyebrow: "Features",- heading: "Small details.",- headingAccent: "Big difference.",-} as const;--export const safety = {- label: "Safety",- title: "Never stranded.",- body: "Muelle hides the Windows taskbar, never removes it. Quit, uninstall or even a crash: the taskbar comes back.",- steps: [- { time: "Quit", title: "You quit Muelle", detail: "From the Dock menu" },- { time: "Crash", title: "Dock stops", detail: "For any reason", state: "warn" },- { time: "At once // live", title: "Taskbar is back", detail: "A tiny guardian sees to it", state: "live" },- { time: "Uninstall", title: "Windows as it was", detail: "Nothing left behind" },- ] satisfies TimelineStep[],-};--export const material = {- label: "Material",- title: "Liquid glass.",- body: "Real system blur behind the glass, a light edge and a soft shadow. Tilt this one with your cursor.",- icons: [fileExplorer, microsoftPhotos, microsoftStore, windowsTerminal] as ImageMetadata[],-};--export const motion = {- label: "Motion",- title: "Follows your cursor.",- body: "Icons grow under the pointer on a smooth curve. Size and magnification are yours to set.",- icons: [- microsoftStore,- fileExplorer,- windowsTerminal,- microsoftPhotos,- downloads,- recycleBin,- ] as ImageMetadata[],- range: { min: 32, max: 48, value: 40 },-};--export const menuBar = {- label: "Menu bar",- title: "Time, battery, control.",- body: "Optional slim bar on top: the app in front, battery, Windows quick settings and notifications. It can hide itself too.",- app: "Muelle",- time: "9:41",-};--export const source = {- label: "Source",- title: "Open, in Rust.",- body: "MIT licensed and written in Rust. Read it, build it, improve it.",- // A bare `github.com/user/repo` is not a URL git understands, so the full https one is shown.- commands: [`git clone ${site.repository}`, "cd Muelle && cargo run -p muelle"],-};diff --git a/muelle/src/data/install.ts b/muelle/src/data/install.tsdeleted file mode 100644index 5738aa0..0000000--- a/muelle/src/data/install.ts+++ /dev/null@@ -1,56 +0,0 @@-import { site } from "@/data/site";--/** One line of the terminal panel: a step, or a command that can be copied. */-export interface TerminalRow {- text: string;- command?: boolean;-}--export interface InstallTab {- id: string;- label: string;- rows: TerminalRow[];-}--export const install = {- eyebrow: "Install",- heading: "One download.",- headingAccent: "No wizard.",-} as const;--export const installTabs: InstallTab[] = [- {- id: "installer",- label: "Installer",- rows: [- { text: "Download Muelle-Setup.exe (Windows 11, 64-bit)." },- { text: "Double-click it. Per user, no admin rights, no wizard." },- { text: "Not signed yet: if SmartScreen asks, choose More info → Run anyway." },- { text: "The Dock appears, the taskbar tucks away, and Muelle starts with Windows." },- ],- },- {- id: "source",- label: "From source",- rows: [- { text: `git clone ${site.repository}`, command: true },- { text: "cd Muelle", command: true },- { text: "cargo run --release -p muelle", command: true },- ],- },- {- id: "restore",- label: "Get taskbar back",- rows: [- { text: "Right-click the Dock and choose Quit Muelle." },- { text: "To remove it: Settings → Apps → Installed apps → Muelle → Uninstall." },- { text: "Either way, the Windows taskbar comes back." },- ],- },-];--export const closing = {- heading: "Dock it.",- body: "Free and open source. Installs per user without admin rights, and uninstalling gives you your taskbar back.",- cta: "Download for Windows",-} as const;diff --git a/muelle/src/data/pipeline.ts b/muelle/src/data/pipeline.tsdeleted file mode 100644index 251d302..0000000--- a/muelle/src/data/pipeline.ts+++ /dev/null@@ -1,47 +0,0 @@-import type { ImageMetadata } from "astro";-import fileExplorer from "@/assets/icons/file-explorer.webp";-import microsoftStore from "@/assets/icons/microsoft-store.webp";-import settings from "@/assets/icons/settings.webp";-import windowsTerminal from "@/assets/icons/windows-terminal.webp";-import { figures } from "@/data/stats";--/** One box of the "How it works" diagram. */-export interface PipelineStep {- label: string;- title: string;- detail: string;-}--export interface PipelineCore {- name: string;- memory: { value: string; unit: string };- icons: ImageMetadata[];- status: string;-}--export const howItWorks = {- eyebrow: "How it works",- heading: "One small process.",- headingAccent: "Zero polling.",-} as const;--/** What wakes the dock up. */-export const inputs: PipelineStep[] = [- { label: "Shell events", title: "Windows open and close", detail: "Notified, never polled" },- { label: "Foreground", title: "Minimize, restore, fullscreen", detail: "Public Windows APIs only" },- { label: "config.json", title: "Settings change", detail: "One message reloads it live" },-];--/** What the dock does in response. */-export const outputs: PipelineStep[] = [- { label: "Dock", title: "Drawn by Windows composition", detail: "System blur, no GPU load" },- { label: "Minimize", title: "Live thumbnail in the Dock", detail: "Optional Genie effect" },- { label: "Taskbar", title: "Hidden, always restored", detail: "On quit, uninstall or crash" },-];--export const core: PipelineCore = {- name: "muelle.exe",- memory: figures.memory,- icons: [fileExplorer, microsoftStore, windowsTerminal, settings],- status: "idle · sleeping on the message queue",-};diff --git a/muelle/src/scripts/copy.ts b/muelle/src/scripts/copy.tsdeleted file mode 100644index 42e4bee..0000000--- a/muelle/src/scripts/copy.ts+++ /dev/null@@ -1,48 +0,0 @@-/** How long the button shows its confirmation before going back to normal. */-const FEEDBACK_MS = 1400;--type CopyState = "idle" | "copied" | "failed";--/**- * The Clipboard API only exists in a secure context (https or localhost), so a page- * opened over plain http from another machine simply reports that it could not copy.- */-async function writeClipboard(text: string): Promise<boolean> {- if (!navigator.clipboard?.writeText) return false;-- try {- await navigator.clipboard.writeText(text);- return true;- } catch {- return false;- }-}--/** Copies every `[data-copy]` command and confirms it in place. */-export function initCopy(root: ParentNode) {- root.querySelectorAll<HTMLButtonElement>("[data-copy]").forEach((button) => {- const value = button.dataset.copy ?? "";- const copyIcon = button.querySelector(".icon-copy");- const checkIcon = button.querySelector(".icon-check");- const label = button.querySelector<HTMLElement>("[data-copy-label]");- let resetTimer = 0;-- const setState = (state: CopyState) => {- const message = state === "copied" ? "Copied" : state === "failed" ? "Copy failed" : "Copy command";- button.dataset.copied = String(state === "copied");- copyIcon?.classList.toggle("hidden", state === "copied");- checkIcon?.classList.toggle("hidden", state !== "copied");- button.setAttribute("aria-label", message);- if (label) label.textContent = message;- };-- button.addEventListener("click", async () => {- const copied = await writeClipboard(value);- setState(copied ? "copied" : "failed");-- // The failure message needs the same reset, or the button stays wrong for good.- window.clearTimeout(resetTimer);- resetTimer = window.setTimeout(() => setState("idle"), FEEDBACK_MS);- });- });-}diff --git a/muelle/src/scripts/magnify-demo.ts b/muelle/src/scripts/magnify-demo.tsdeleted file mode 100644index 083b34d..0000000--- a/muelle/src/scripts/magnify-demo.ts+++ /dev/null@@ -1,64 +0,0 @@-import { prefersReducedMotion } from "@/lib/motion";--/** How much the icon under the cursor grows, and how fast the effect falls off. */-const GROWTH = 0.5;-const FALLOFF = 5000;--/**- * Drives the size slider and the cursor magnification of the icon row. Both- * read the same size, so dragging the slider while hovering keeps one scale.- */-export function initMagnifyDemo(root: ParentNode) {- const row = root.querySelector<HTMLElement>("[data-magnify-row]");- const range = root.querySelector<HTMLInputElement>("[data-magnify-range]");- const output = root.querySelector<HTMLOutputElement>("[data-magnify-value]");- if (!row || !range || !output) return;-- const icons = [...row.querySelectorAll<HTMLImageElement>("img")];- const min = Number(range.min);- const max = Number(range.max);- let centers: number[] = [];-- const measureCenters = () => {- centers = icons.map((icon) => {- const rect = icon.getBoundingClientRect();- return rect.left + rect.width / 2;- });- };-- const applySize = () => {- const size = Number(range.value);- row.style.setProperty("--s", `${size}px`);- range.style.setProperty("--p", String((size - min) / (max - min)));- output.textContent = `${size} px`;- // Resizing moves every icon, and the pointer may be sitting on the row while it changes.- if (centers.length) measureCenters();- };-- range.addEventListener("input", applySize);- applySize();-- if (prefersReducedMotion()) return;-- // The icons move when the slider resizes the row, so measure on every enter.- row.addEventListener("pointerenter", measureCenters);-- row.addEventListener("pointermove", (event) => {- if (!centers.length) return;- const size = Number(range.value);-- icons.forEach((icon, index) => {- const distance = event.clientX - centers[index];- const scale = size * (1 + GROWTH * Math.exp(-(distance * distance) / FALLOFF));- icon.style.width = `${Math.round(scale)}px`;- icon.style.height = `${Math.round(scale)}px`;- });- });-- row.addEventListener("pointerleave", () => {- icons.forEach((icon) => {- icon.style.width = "";- icon.style.height = "";- });- });-}diff --git a/muelle/src/scripts/spotlight.ts b/muelle/src/scripts/spotlight.tsdeleted file mode 100644index 012c668..0000000--- a/muelle/src/scripts/spotlight.ts+++ /dev/null@@ -1,14 +0,0 @@-/** Writes the pointer position each bento card needs for its spotlight. */-export function initSpotlight(root: ParentNode) {- root.querySelectorAll<HTMLElement>("[data-spotlight]").forEach((card) => {- card.addEventListener(- "pointermove",- (event) => {- const rect = card.getBoundingClientRect();- card.style.setProperty("--mx", `${event.clientX - rect.left}px`);- card.style.setProperty("--my", `${event.clientY - rect.top}px`);- },- { passive: true },- );- });-}diff --git a/muelle/src/scripts/tabs.ts b/muelle/src/scripts/tabs.tsdeleted file mode 100644index f778a10..0000000--- a/muelle/src/scripts/tabs.ts+++ /dev/null@@ -1,38 +0,0 @@-/**- * Roving-tabindex tabs: one tab stop for the group, arrow keys to move between- * tabs, and one panel visible at a time.- */-export function initTabs(root: ParentNode) {- root.querySelectorAll<HTMLElement>("[data-tabs]").forEach((group) => {- const tabs = [...group.querySelectorAll<HTMLButtonElement>("[data-tab]")];- const panels = [...group.querySelectorAll<HTMLElement>("[data-panel]")];- if (!tabs.length || tabs.length !== panels.length) return;-- const select = (index: number, focus = false) => {- tabs.forEach((tab, position) => {- const active = position === index;- tab.setAttribute("aria-selected", String(active));- tab.tabIndex = active ? 0 : -1;- panels[position].hidden = !active;- });- if (focus) tabs[index].focus();- };-- const moves: Record<string, (index: number) => number> = {- ArrowRight: (index) => (index + 1) % tabs.length,- ArrowLeft: (index) => (index - 1 + tabs.length) % tabs.length,- Home: () => 0,- End: () => tabs.length - 1,- };-- tabs.forEach((tab, index) => {- tab.addEventListener("click", () => select(index));- tab.addEventListener("keydown", (event) => {- const move = moves[event.key];- if (!move) return;- event.preventDefault();- select(move(index), true);- });- });- });-}diff --git a/muelle/src/scripts/tilt.ts b/muelle/src/scripts/tilt.tsdeleted file mode 100644index a4106dc..0000000--- a/muelle/src/scripts/tilt.ts+++ /dev/null@@ -1,24 +0,0 @@-import { prefersReducedMotion } from "@/lib/motion";--/** Tilts `[data-tilt]` cards towards the pointer; the CSS reads `--tx` and `--ty`. */-export function initTilt(root: ParentNode) {- if (prefersReducedMotion()) return;-- root.querySelectorAll<HTMLElement>("[data-tilt]").forEach((card) => {- const setTilt = (x: number, y: number) => {- card.style.setProperty("--tx", x.toFixed(3));- card.style.setProperty("--ty", y.toFixed(3));- };-- card.addEventListener(- "pointermove",- (event) => {- const rect = card.getBoundingClientRect();- setTilt((event.clientX - rect.left) / rect.width - 0.5, (event.clientY - rect.top) / rect.height - 0.5);- },- { passive: true },- );-- card.addEventListener("pointerleave", () => setTilt(0, 0));- });-}diff --git a/muelle/src/styles/features.css b/muelle/src/styles/features.cssdeleted file mode 100644index a60489d..0000000--- a/muelle/src/styles/features.css+++ /dev/null@@ -1,300 +0,0 @@-/* Features bento: cards, cursor spotlight, tilt slab, magnify row and code block. */--.bento {- display: grid;- grid-template-columns: repeat(3, minmax(0, 1fr));- gap: 12px;-}--.bento-card {- position: relative;- display: flex;- flex-direction: column;- min-height: 360px;- padding: 24px;- overflow: hidden;- border: 1px solid var(--color-line);- border-radius: 20px;- corner-shape: squircle;- background: var(--color-card);- transition: border-color 0.16s;-}--.bento-card:hover {- border-color: var(--color-dim);-}--.bento-card--wide {- grid-column: span 2;-}--/* Spotlight: the pointer script only writes the position. */-.bento-card::after {- content: "";- position: absolute;- inset: 0;- border-radius: inherit;- corner-shape: inherit;- pointer-events: none;- opacity: 0;- background: radial-gradient(- 280px circle at var(--mx, 50%) var(--my, 50%),- color-mix(in oklab, var(--color-primary) 16%, transparent),- transparent 70%- );- transition: opacity 0.3s;-}--.bento-card:hover::after {- opacity: 1;-}--/* Crash timeline. */-.tl {- display: flex;- margin: auto 0 0;- padding: 0;- list-style: none;-}--.tl li {- position: relative;- display: flex;- flex: 1;- flex-direction: column;- gap: 2px;- padding-top: 24px;-}--.tl li::before {- content: "";- position: absolute;- top: 6px;- right: 0;- left: 0;- border-top: 1px solid var(--color-line);-}--.tl li::after {- content: "";- position: absolute;- top: 1px;- left: 0;- width: 11px;- height: 11px;- border: 1.5px solid var(--color-dim);- border-radius: 50%;- background: var(--color-card);-}--.tl .is-live::after {- border-color: var(--color-ink);- background: var(--gradient-primary);- animation: tl-ping 2s ease-out infinite;-}--@keyframes tl-ping {- 0% {- box-shadow: 0 0 0 0 rgb(249 124 3 / 0.55);- }- 80%,- 100% {- box-shadow: 0 0 0 9px rgb(249 124 3 / 0);- }-}--@media (prefers-reduced-motion: reduce) {- .tl .is-live::after {- animation: none;- }-}--.tl .is-warn::after {- border-color: var(--color-amber);-}--/* Glass slab the cursor tilts in 3D. */-.stage {- display: grid;- flex: 1;- place-items: center;- margin: 10px -24px -24px;- perspective: 700px;- background:- radial-gradient(- 70% 70% at calc(50% + var(--tx, 0) * 30%) calc(50% + var(--ty, 0) * 30%),- rgb(249 124 3 / 0.5),- transparent 70%- ),- linear-gradient(160deg, #1a1d4a, #0e3550);-}--.slab {- display: flex;- gap: 10px;- padding: 14px;- border: 1px solid rgb(255 255 255 / 0.4);- border-radius: 24px;- corner-shape: squircle;- background: linear-gradient(135deg, rgb(255 255 255 / 0.28), rgb(255 255 255 / 0.06));- box-shadow:- inset 0 1px 0 rgb(255 255 255 / 0.6),- 0 24px 40px rgb(0 0 0 / 0.4);- backdrop-filter: blur(10px);- transform: rotateY(calc(var(--tx, 0) * 26deg)) rotateX(calc(var(--ty, 0) * -26deg));- transition: transform 0.09s linear;-}--.slab img {- width: 44px;- height: 44px;- filter: drop-shadow(0 3px 4px rgb(0 0 0 / 0.35));-}--/* Icon row that reacts to the pointer. */-.md {- display: flex;- align-items: flex-end;- justify-content: center;- gap: 4px;- height: 124px;- margin-top: auto;- padding: 0 10px 4px;-}--.md-icon {- flex: none;- width: var(--s, 40px);- height: var(--s, 40px);- filter: drop-shadow(0 3px 4px rgb(0 0 0 / 0.25));- transition:- width 0.12s ease-out,- height 0.12s ease-out;-}--.range {- --p: 0.5;- appearance: none;- display: block;- width: 100%;- height: 20px;- margin: 6px 0 0;- cursor: pointer;- background: transparent;- outline: none;-}--.range::-webkit-slider-runnable-track {- height: 6px;- border-radius: 99px;- corner-shape: squircle;- background: linear-gradient(- 90deg,- var(--color-fg) calc(8px + (100% - 16px) * var(--p)),- color-mix(in oklab, var(--color-fg) 14%, transparent) 0- );-}--.range::-moz-range-track {- height: 6px;- border-radius: 99px;- corner-shape: squircle;- background: linear-gradient(- 90deg,- var(--color-fg) calc(8px + (100% - 16px) * var(--p)),- color-mix(in oklab, var(--color-fg) 14%, transparent) 0- );-}--.range::-webkit-slider-thumb {- box-sizing: border-box;- width: 16px;- height: 16px;- margin-top: -5px;- appearance: none;- border: 1px solid color-mix(in oklab, var(--color-fg) 55%, transparent);- border-radius: 50%;- background: var(--color-bg);- box-shadow: 0 1px 3px rgb(0 0 0 / 0.18);- transition: box-shadow 0.15s;-}--.range::-moz-range-thumb {- box-sizing: border-box;- width: 16px;- height: 16px;- border: 1px solid color-mix(in oklab, var(--color-fg) 55%, transparent);- border-radius: 50%;- background: var(--color-bg);- box-shadow: 0 1px 3px rgb(0 0 0 / 0.18);- transition: box-shadow 0.15s;-}--.range:hover::-webkit-slider-thumb,-.range:focus-visible::-webkit-slider-thumb {- box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-fg) 13%, transparent);-}--.range:hover::-moz-range-thumb,-.range:focus-visible::-moz-range-thumb {- box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-fg) 13%, transparent);-}--.range:active::-webkit-slider-thumb {- box-shadow: 0 0 0 7px color-mix(in oklab, var(--color-fg) 16%, transparent);-}--.range:active::-moz-range-thumb {- box-shadow: 0 0 0 7px color-mix(in oklab, var(--color-fg) 16%, transparent);-}--/* The product's own menu bar, shown as hardware would draw it. */-.mbar {- display: flex;- align-items: center;- justify-content: space-between;- gap: 12px;- margin-top: auto;- padding: 8px 14px;- border-radius: 12px;- corner-shape: squircle;- background: #14202b;- color: #fff;- font-size: 0.8125rem;-}--.code {- margin-top: auto;- padding: 16px;- overflow-x: auto;- border-radius: 12px;- corner-shape: squircle;- background: #0f1214;- color: #d9dcde;- font: 0.75rem/1.9 var(--font-mono);-}--.code span {- background-image: var(--gradient-primary);- background-clip: text;- color: transparent;-}--@media (max-width: 899px) {- .bento {- grid-template-columns: 1fr;- }-- .bento-card--wide {- grid-column: auto;- }-- .tl {- flex-wrap: wrap;- row-gap: 16px;- }-- .tl li {- flex-basis: 50%;- }-}diff --git a/muelle/src/styles/install.css b/muelle/src/styles/install.cssdeleted file mode 100644index d3aeccc..0000000--- a/muelle/src/styles/install.css+++ /dev/null@@ -1,164 +0,0 @@-/* Install tabs, the terminal panel and the closing call to action. */--.inst {- overflow: hidden;- border: 1px solid var(--color-line);- border-radius: 20px;- corner-shape: squircle;- background: var(--color-card);-}--.tabs {- display: flex;- flex-wrap: wrap;- border-bottom: 1px solid var(--color-line);-}--.tabs button {- padding: 14px 18px;- border-right: 1px solid var(--color-line);- background: transparent;- color: var(--color-mute);- font: 500 0.6875rem/1 var(--font-mono);- letter-spacing: 0.08em;- text-transform: uppercase;- cursor: pointer;- transition:- background-color 0.15s,- color 0.15s;-}--.tabs button:hover {- color: var(--color-fg);-}--.tabs button[aria-selected="true"] {- background: var(--gradient-primary);- color: var(--color-ink);-}--.tabs button:focus-visible {- outline: 2px solid var(--color-primary);- outline-offset: -3px;-}--.term {- padding: 26px;-}--.term-rows {- display: flex;- flex-direction: column;- gap: 4px;- margin: 0;- padding: 0;- list-style: none;- font: 0.875rem/2 var(--font-mono);-}--.term-rows li {- display: flex;- align-items: baseline;- gap: 14px;-}--.term-rows .num {- color: var(--color-dim);-}--.term-rows p {- margin: 0;- flex: 1;- color: var(--color-fg);-}--.term-rows code {- flex: 1;- overflow-wrap: anywhere;- color: var(--color-signal);-}--.cp {- display: inline-flex;- align-items: center;- justify-content: center;- padding: 4px 9px;- border: 1px solid var(--color-line);- border-radius: 99px;- corner-shape: squircle;- color: var(--color-mute);- cursor: pointer;- transition:- border-color 0.15s,- color 0.15s;-}--.cp:hover {- color: var(--color-fg);-}--.cp:focus-visible {- outline: 2px solid var(--color-primary);- outline-offset: 2px;-}--.cp[data-copied="true"] {- border-color: var(--color-signal);- color: var(--color-signal);-}--.end {- position: relative;- margin-top: 140px;- padding: 100px 24px;- overflow: hidden;- border-radius: 28px;- corner-shape: squircle;- background-image:- linear-gradient(180deg, rgb(0 0 0 / 0.35), rgb(0 0 0 / 0.65)),- var(--closing-background);- background-position: center;- background-repeat: no-repeat;- background-size: cover;- color: var(--color-white);- text-align: center;-}--.end h2 {- font-size: clamp(3rem, 10vw, 8.5rem);-}--.end p {- max-width: 460px;- margin: 18px auto 30px;- color: #e5e5e5;-}--.end .cta-icon {- position: absolute;- right: -50px;- bottom: -90px;- opacity: 0.12;- rotate: 18deg;-}--@media (max-width: 640px) {- /* Tighter tabs so the three labels stay on one row instead of wrapping. */- .tabs button {- padding: 12px 14px;- font-size: 0.625rem;- }-- .term {- padding: 18px;- }-- .term-rows {- font-size: 0.8125rem;- }-- .end {- margin-top: 100px;- padding: 72px 20px;- }-}