mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-10-12 04:29:51 +08:00
* feat: redraw the app icon on a white tile with shorter bottom boxes Same org chart shape as before, redrawn as a vector so edges are sharp. The white tile keeps the icon visible on dark docks, taskbars and tabs, so dark mode now uses the same image and favicon-white.svg is removed. The desktop icon is now 1024x1024. * chore: add SVG sources for the app icon and favicons resources/icon.svg renders resources/icon.png; resources/favicon.svg renders the favicon .ico and .png files. * fix: add a title to the icon SVG sources for the Biome a11y check
24 lines
754 B
TypeScript
24 lines
754 B
TypeScript
"use client"
|
|
|
|
import { getAssetUrl } from "@/lib/base-path"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
/** The app icon in a rounded tile; the icon has its own white tile, so dark mode uses it too */
|
|
export function BrandMark({ className }: { className?: string }) {
|
|
return (
|
|
<span
|
|
className={cn(
|
|
"relative inline-flex size-7 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-card",
|
|
className,
|
|
)}
|
|
>
|
|
{/* biome-ignore lint/performance/noImgElement: tiny static icon */}
|
|
<img
|
|
src={getAssetUrl("/favicon-192x192.png")}
|
|
alt=""
|
|
className="size-full object-contain"
|
|
/>
|
|
</span>
|
|
)
|
|
}
|