A lightweight, macOS-style dock for Windows 11, with glass visuals, smooth magnification, and Genie effect.
---
import TrafficLights from "@/components/dock/TrafficLights.astro";
const folders = [
{ name: "All Notes", count: 12 },
{ name: "Muelle", count: 5, active: true },
{ name: "Ideas", count: 4 },
{ name: "Trash", count: 1 },
];
const tasks = [
{ label: "Magnification, smooth curve", done: true },
{ label: "Live thumbnails when minimized", done: true },
{ label: "Taskbar always comes back", done: true },
{ label: "0% CPU when idle", done: true },
{ label: "Publish v0.1", done: false },
];
---
<article class="note relative flex" data-note aria-label="Notes window preview">
<TrafficLights class="absolute top-3.5 left-4 z-1" />
<aside class="hidden w-[158px] shrink-0 border-r border-black/8 px-3 pt-[52px] pb-3 md:block">
<p class="px-1 text-[11px] font-bold text-black/45">Folders</p>
<ul class="mt-2 grid gap-0.5">
{
folders.map(({ name, count, active }) => (
<li>
<span
class:list={[
"flex items-center gap-2 squircle-xs px-1.5 py-1 text-[13px]",
active ? "bg-[#0a84ff] text-white" : "text-[#1d1d1f]",
]}
>
<svg viewBox="0 0 16 12" class="size-3 shrink-0" aria-hidden="true">
<path
d="M0 2.2C0 1.5.5 1 1.2 1h3.4l1.2 1.4h8c.7 0 1.2.5 1.2 1.2v7.2c0 .7-.5 1.2-1.2 1.2H1.2C.5 11.8 0 11.3 0 10.6V2.2Z"
fill={active ? "#ffffff" : "#f2b100"}
/>
</svg>
<span class="flex-1 truncate">{name}</span>
<span class:list={["text-[11px]", active ? "text-white/80" : "text-black/40"]}>
{count}
</span>
</span>
</li>
))
}
</ul>
</aside>
<div class="relative flex-1 px-5 pt-3 pb-4">
<p class="text-center text-[13px] font-bold">Notes</p>
<p class="mt-1 text-center text-[11px] text-black/38">Friday, November 14, 2026 at 9:41 AM</p>
<h3 class="mt-4 text-[26px] leading-none tracking-[-0.04em] text-[#1d1d1f]">Ship the Dock.</h3>
<ul class="mt-3 grid gap-2">
{
tasks.map(({ label, done }) => (
<li class="flex items-center gap-2 text-[14px]">
<span
class:list={[
"grid size-4 shrink-0 place-items-center circle",
done ? "bg-[#ffb547]" : "border-[1.3px] border-black/25",
]}
>
{done && (
<svg viewBox="0 0 12 12" class="size-2.5" aria-hidden="true">
<path
d="M1.4 6.4 4.4 9.4 10.6 2.6"
fill="none"
stroke="#fff"
stroke-width="1.8"
stroke-linecap="round"
/>
</svg>
)}
</span>
<span class:list={[done ? "text-black/40" : "text-[#1d1d1f]"]}>{label}</span>
</li>
))
}
</ul>
</div>
</article>