Skip to content

Commit 6cf1d57

Browse files
authored
Refresh sidebar app footer branding (#368)
- Restyle the sidebar footer into a branded card - Show the app name and version more prominently in the footer and tooltip
1 parent 514c29d commit 6cf1d57

1 file changed

Lines changed: 28 additions & 6 deletions

File tree

apps/web/src/components/Sidebar.tsx

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2122,16 +2122,38 @@ export default function Sidebar() {
21222122
<Tooltip>
21232123
<TooltipTrigger
21242124
render={
2125-
<div className="flex items-center gap-1.5 px-2 pt-2 mt-1 border-t border-border/30">
2126-
<OkCodeMark className="size-3.5 text-muted-foreground/40" />
2127-
<span className="text-[10px] font-medium tracking-wide text-muted-foreground/40">
2128-
{APP_BASE_NAME}
2129-
</span>
2125+
<div
2126+
className="mt-2 rounded-xl border px-3 py-2 shadow-sm transition-colors"
2127+
style={{
2128+
backgroundColor: "color-mix(in srgb, var(--primary) 10%, transparent)",
2129+
borderColor: "color-mix(in srgb, var(--primary) 18%, var(--border))",
2130+
}}
2131+
>
2132+
<div className="flex items-center gap-2">
2133+
<div
2134+
className="flex size-7 items-center justify-center rounded-lg"
2135+
style={{
2136+
backgroundColor: "color-mix(in srgb, var(--primary) 18%, transparent)",
2137+
color: "var(--primary)",
2138+
boxShadow: "0 0 0 1px color-mix(in srgb, var(--primary) 16%, transparent)",
2139+
}}
2140+
>
2141+
<OkCodeMark className="size-4" />
2142+
</div>
2143+
<div className="flex min-w-0 flex-col leading-none">
2144+
<span className="truncate text-sm font-semibold tracking-tight text-foreground">
2145+
{APP_BASE_NAME}
2146+
</span>
2147+
<span className="text-[10px] font-medium uppercase tracking-[0.22em] text-primary/80">
2148+
Version {APP_VERSION}
2149+
</span>
2150+
</div>
2151+
</div>
21302152
</div>
21312153
}
21322154
/>
21332155
<TooltipPopup side="top" sideOffset={4}>
2134-
Version {APP_VERSION}
2156+
{APP_BASE_NAME} {APP_VERSION}
21352157
</TooltipPopup>
21362158
</Tooltip>
21372159
</SidebarFooter>

0 commit comments

Comments
 (0)