A lightweight, macOS-style dock for Windows 11, with glass visuals, smooth magnification, and Genie effect.
feat: add MenuBarStatus component and integrate into menu bar; enhance status display with new icons and styles
CristianOlivera1ebbbd2caddd3
diff --git a/muelle/src/components/dock/MenuBarMock.astro b/muelle/src/components/dock/MenuBarMock.astroindex 5e36fee..f66ee88 100644--- a/muelle/src/components/dock/MenuBarMock.astro+++ b/muelle/src/components/dock/MenuBarMock.astro@@ -1,5 +1,6 @@---import Icon from "@/components/ui/Icon.astro";+import MenuBarStatus from "@/components/dock/MenuBarStatus.astro";---<div class="menu-bar" aria-hidden="true">@@ -7,9 +8,8 @@ import Icon from "@/components/ui/Icon.astro";<Icon name="anchor" size={13} /><b>Notes</b></span>- <span class="flex items-center gap-3">- <Icon name="sliders" size={14} />- <Icon name="battery" size={16} />+ <span class="flex items-center gap-2 sm:gap-3">+ <MenuBarStatus /><span class="hidden sm:inline" data-date>Fri, Nov 14</span><span class="tabular-nums" data-clock>9:41</span></span>diff --git a/muelle/src/components/dock/MenuBarStatus.astro b/muelle/src/components/dock/MenuBarStatus.astronew file mode 100644index 0000000..9464f65--- /dev/null+++ b/muelle/src/components/dock/MenuBarStatus.astro@@ -0,0 +1,22 @@+---+import Icon from "@/components/ui/Icon.astro";+---++<span class="menu-status" aria-hidden="true">+ <Icon name="widgets" size={13} class="hidden md:inline" />+ <Icon name="task-view" size={13} class="hidden sm:inline" />+ <Icon name="battery" size={15} />+ <Icon name="volume" size={14} />+ <Icon name="wifi" size={14} />+ <Icon name="search" size={14} class="hidden sm:inline" />+ <Icon name="sliders" size={14} />+</span>++<style>+ .menu-status {+ display: inline-flex;+ flex: none;+ align-items: center;+ gap: clamp(7px, 1vw, 12px);+ }+</style>diff --git a/muelle/src/components/showcase/Customize.astro b/muelle/src/components/showcase/Customize.astroindex 7637d03..d291108 100644--- a/muelle/src/components/showcase/Customize.astro+++ b/muelle/src/components/showcase/Customize.astro@@ -3,6 +3,7 @@ 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 MenuBarStatus from "@/components/dock/MenuBarStatus.astro";import Icon from "@/components/ui/Icon.astro";import {customizeIntro,@@ -171,7 +172,11 @@ const textJson = JSON.stringify(settingsText).replace(/</g, "\\u003c");<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 AM</span>+ <span class="preview-bar-status">+ <MenuBarStatus />+ <span class="hidden sm:inline" data-date>Fri, Nov 14</span>+ <span class="tabular-nums" data-clock>9:41 AM</span>+ </span></div><div class="preview-dock" data-preview-dock>{previewIcons.map((icon) => <Image src={icon} alt="" width={128} height={128} />)}diff --git a/muelle/src/components/showcase/Reversible.astro b/muelle/src/components/showcase/Reversible.astroindex 2cb19df..d5e7e8a 100644--- a/muelle/src/components/showcase/Reversible.astro+++ b/muelle/src/components/showcase/Reversible.astro@@ -3,6 +3,7 @@ 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 MenuBarStatus from "@/components/dock/MenuBarStatus.astro";import { previewIcons, safetyFacts, safetyIntro, taskbarIcons } from "@/data/showcase";import "@/styles/showcase.css";---@@ -30,7 +31,11 @@ import "@/styles/showcase.css";<div class="flip-menubar" aria-hidden="true"><b>Muelle</b>- <span class="tabular-nums" data-clock>9:41</span>+ <span class="flip-menubar-status">+ <MenuBarStatus />+ <span class="hidden sm:inline" data-date>Fri, Nov 14</span>+ <span class="tabular-nums" data-clock>9:41</span>+ </span></div><div class="flip-dock" aria-hidden="true">diff --git a/muelle/src/components/ui/IconSprite.astro b/muelle/src/components/ui/IconSprite.astroindex 5c13c35..29e21ae 100644--- a/muelle/src/components/ui/IconSprite.astro+++ b/muelle/src/components/ui/IconSprite.astro@@ -33,6 +33,28 @@d="M256,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM224,80v96a24,24,0,0,1-24,24H32A24,24,0,0,1,8,176V80A24,24,0,0,1,32,56H200A24,24,0,0,1,224,80Zm-85.19,43.79A8,8,0,0,0,132,120H112.94l10.22-20.42a8,8,0,1,0-14.32-7.16l-16,32A8,8,0,0,0,100,136h19.06l-10.22,20.42a8,8,0,0,0,14.32,7.16l16-32A8,8,0,0,0,138.81,123.79Z"></path></symbol>+ <symbol id="icon-search" viewBox="0 0 256 256">+ <circle cx="112" cy="112" r="68" fill="none" stroke="currentColor" stroke-width="20" />+ <path d="m162 162 54 54" fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="20" />+ </symbol>+ <symbol id="icon-wifi" viewBox="0 0 256 256">+ <path d="M32 92a144 144 0 0 1 192 0M64 128a96 96 0 0 1 128 0M96 164a48 48 0 0 1 64 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="18" />+ <circle cx="128" cy="200" r="12" />+ </symbol>+ <symbol id="icon-volume" viewBox="0 0 256 256">+ <path d="M32 96h40l52-44v152l-52-44H32a12 12 0 0 1-12-12v-40a12 12 0 0 1 12-12Z" />+ <path d="M160 96a48 48 0 0 1 0 64m24-88a80 80 0 0 1 0 112" fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="18" />+ </symbol>+ <symbol id="icon-task-view" viewBox="0 0 256 256">+ <rect x="28" y="52" width="144" height="152" rx="14" fill="none" stroke="currentColor" stroke-width="18" />+ <path d="M100 52h100a14 14 0 0 1 14 14v124a14 14 0 0 1-14 14h-28" fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="18" />+ </symbol>+ <symbol id="icon-widgets" viewBox="0 0 256 256">+ <rect x="32" y="32" width="80" height="80" rx="14" />+ <rect x="144" y="32" width="80" height="80" rx="14" />+ <rect x="32" y="144" width="80" height="80" rx="14" />+ <rect x="144" y="144" width="80" height="80" rx="14" />+ </symbol><symbol id="icon-copy" viewBox="0 0 256 256"><pathd="M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"diff --git a/muelle/src/lib/icons.ts b/muelle/src/lib/icons.tsindex 5306128..db42e22 100644--- a/muelle/src/lib/icons.ts+++ b/muelle/src/lib/icons.ts@@ -5,6 +5,11 @@ export type IconName =| "arrow-up-right"| "sliders"| "battery"+ | "search"+ | "wifi"+ | "volume"+ | "task-view"+ | "widgets"| "copy"| "check"| "menu"diff --git a/muelle/src/styles/showcase.css b/muelle/src/styles/showcase.cssindex 350e795..ff6ed40 100644--- a/muelle/src/styles/showcase.css+++ b/muelle/src/styles/showcase.css@@ -584,6 +584,14 @@transition: translate 0.3s ease;}+.preview-bar-status,+.flip-menubar-status {+ display: inline-flex;+ align-items: center;+ gap: clamp(6px, 0.9vw, 10px);+ white-space: nowrap;+}+.preview-bar.is-hidden {translate: 0 -100%;}@@ -678,6 +686,10 @@backdrop-filter: blur(14px) saturate(160%);}+.flip-menubar-status {+ gap: clamp(7px, 1vw, 12px);+}+.flip-dock {bottom: 14px;left: 50%;