ReviewOS

also looking at this

stacks/postline

UI polish, real queue + scheduling, Bluesky threads, live analytics, blog target

#8
Merged glennmichael123 wants to merge feat/ui-polish into main
54 files +2036 -589
components/PostlineSidebar.stxmodified+49-4
Changes to components/PostlineSidebar.stx
@@ -28,12 +28,48 @@ const settingsActive = currentPath === '/settings' || currentPath.startsWith('/s
2828</script>
2929
3030<template>
31 <aside class="flex overflow-hidden relative sticky top-0 flex-col pb-5 pt-[68px] px-5 h-screen min-w-0 bg-[#f3f3f1]/48 backdrop-blur-3xl backdrop-saturate-150 duration-200 ease-out transition-[width,padding]" aria-label="Postline" data-postline-sidebar data-window-drag-region>
31 <div class="contents">
32 <nav class="flex lg:hidden overflow-x-auto gap-1.5 items-center px-3 py-2 bg-[#f3f3f1]" aria-label="Primary" data-postline-mobile-nav>
33 <span class="grid place-items-center shrink-0 mr-1 h-8 w-8 font-bold text-[13px] text-white bg-neutral-950 rounded-lg" aria-hidden="true">P</span>
34 @foreach (navLinks as link)
35 <a
36 href="{⁠{ link.href }}"
37 data-stx-link
38 data-stx-active-class="text-zinc-950 bg-white shadow-sm"
39 data-stx-exact-active-class="text-zinc-950 bg-white shadow-sm"
40 class="inline-flex shrink-0 gap-1.5 items-center px-3 py-1.5 text-xs font-medium whitespace-nowrap rounded-full transition-colors hover:bg-white/60 {⁠{ link.active ? 'bg-white text-zinc-950 shadow-sm' : 'text-zinc-600' }}"
41 aria-current="{⁠{ link.active ? 'page' : 'false' }}"
42 >
43 <span class="h-4 w-4 {⁠{ link.icon }}" aria-hidden="true"></span>
44 <span>{{ link.label }}</span>
45 </a>
46 @endforeach
47 <a
48 href="/blog"
49 class="inline-flex gap-1.5 items-center shrink-0 px-3 py-1.5 font-medium text-xs text-zinc-600 whitespace-nowrap hover:bg-white/60 rounded-full transition-colors"
50 >
51 <span class="h-4 w-4 i-hugeicons-quill-write-02" aria-hidden="true"></span>
52 <span>Blog</span>
53 </a>
54 <a
55 href="/settings"
56 data-stx-link
57 data-stx-active-class="text-zinc-950 bg-white shadow-sm"
58 data-stx-exact-active-class="text-zinc-950 bg-white shadow-sm"
59 class="inline-flex shrink-0 gap-1.5 items-center px-3 py-1.5 text-xs font-medium whitespace-nowrap rounded-full transition-colors hover:bg-white/60 {⁠{ settingsActive ? 'bg-white text-zinc-950 shadow-sm' : 'text-zinc-600' }}"
60 aria-current="{⁠{ settingsActive ? 'page' : 'false' }}"
61 >
62 <span class="h-4 w-4 i-hugeicons-settings-02" aria-hidden="true"></span>
63 <span>Settings</span>
64 </a>
65 </nav>
66
67 <aside class="hidden lg:flex overflow-hidden relative sticky top-0 flex-col pb-5 pt-[68px] px-5 h-screen min-w-0 bg-[#f3f3f1]/48 backdrop-blur-3xl backdrop-saturate-150 duration-200 ease-out transition-[width,padding]" aria-label="Postline" data-postline-sidebar data-window-drag-region>
3268 <div class="absolute inset-0 bg-[linear-gradient(112deg,rgba(255,255,255,0.20)_0%,rgba(255,255,255,0.04)_45%,rgba(226,226,222,0.16)_100%)] pointer-events-none"></div>
3369 <div class="flex absolute right-5 top-3.5 z-20 items-center min-h-7" data-shell-controls-row>
3470 <div class="flex gap-1.5 items-center">
35 <button class="inline-flex items-center justify-center h-8 w-8 text-zinc-600 hover:text-zinc-900 bg-white/60 hover:bg-white border border-zinc-200/70 rounded-xl shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-400/50 transition-all duration-200" type="button" aria-label="Collapse sidebar" aria-expanded="true" data-sidebar-collapse data-no-window-drag>
36 <svg class="transition-transform duration-200" data-sidebar-collapse-icon width="18" height="18" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M15.78 4.22a.75.75 0 0 1 0 1.06L10.06 11l5.72 5.72a.75.75 0 1 1-1.06 1.06l-6.25-6.25a.75.75 0 0 1 0-1.06l6.25-6.25a.75.75 0 0 1 1.06 0ZM4.75 4a.75.75 0 0 0-.75.75v10.5c0 .414.336.75.75.75h2.5a.75.75 0 0 0 0-1.5H5.5V5.5h1.75a.75.75 0 0 0 0-1.5h-2.5Z" clip-rule="evenodd"/></svg>
71 <button class="inline-flex items-center justify-center h-8 w-8 text-zinc-600 hover:text-zinc-900 bg-white/60 hover:bg-white border border-zinc-200/70 rounded-xl focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-400/50 shadow-sm duration-200 transition-all" type="button" aria-label="Collapse sidebar" aria-expanded="true" data-sidebar-collapse data-no-window-drag>
72 <svg class="duration-200 transition-transform" data-sidebar-collapse-icon width="18" height="18" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M15.78 4.22a.75.75 0 0 1 0 1.06L10.06 11l5.72 5.72a.75.75 0 1 1-1.06 1.06l-6.25-6.25a.75.75 0 0 1 0-1.06l6.25-6.25a.75.75 0 0 1 1.06 0ZM4.75 4a.75.75 0 0 0-.75.75v10.5c0 .414.336.75.75.75h2.5a.75.75 0 0 0 0-1.5H5.5V5.5h1.75a.75.75 0 0 0 0-1.5h-2.5Z" clip-rule="evenodd"/></svg>
3773 </button>
3874 <button class="hidden inline-flex items-center justify-center h-7 w-7 text-zinc-500/80 hover:text-zinc-900 hover:bg-white/35 rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-400/50 transition-colors" type="button" aria-label="Go back" data-shell-back data-native-shell-control>
3975 <span class="h-5 w-5 i-hugeicons-arrow-left-02" aria-hidden="true"></span>
@@ -71,6 +107,14 @@ const settingsActive = currentPath === '/settings' || currentPath.startsWith('/s
71107 <span class="grid place-items-center px-1.5 h-5 min-w-5 text-[11px] text-zinc-500 bg-white/72 rounded-full shadow-sm" data-sidebar-expanded>{{ link.shortcut }}</span>
72108 </a>
73109 @endforeach
110 <a
111 href="/blog"
112 class="flex gap-3 items-center px-3 py-1.5 w-full text-[13.5px] text-left text-zinc-700 focus-visible:bg-white/38 hover:bg-white/38 rounded-[14px] focus-visible:outline-none transition-colors"
113 >
114 <span class="h-[18px] w-[18px] text-zinc-600 i-hugeicons-quill-write-02" aria-hidden="true"></span>
115 <span class="flex-1 font-medium truncate" data-sidebar-expanded>Blog</span>
116 <span class="grid place-items-center px-1.5 h-5 min-w-5 text-[11px] text-zinc-500 bg-white/72 rounded-full shadow-sm" data-sidebar-expanded>6</span>
117 </a>
74118 </nav>
75119
76120 <a
@@ -84,7 +128,8 @@ const settingsActive = currentPath === '/settings' || currentPath.startsWith('/s
84128 >
85129 <span class="h-[18px] w-[18px] i-hugeicons-settings-02 {⁠{ settingsActive ? 'text-zinc-900' : 'text-zinc-600' }}" aria-hidden="true"></span>
86130 <span class="flex-1 font-medium" data-sidebar-expanded>Settings</span>
87 <span class="grid place-items-center px-1.5 h-5 min-w-5 text-[11px] text-zinc-500 bg-white/72 rounded-full shadow-sm" data-sidebar-expanded>6</span>
131 <span class="grid place-items-center px-1.5 h-5 min-w-5 text-[11px] text-zinc-500 bg-white/72 rounded-full shadow-sm" data-sidebar-expanded>7</span>
88132 </a>
89133 </aside>
134 </div>
90135</template>