diff --git a/apps/dashboard/public/favicon-dev.svg b/apps/dashboard/public/favicon-dev.svg new file mode 100644 index 0000000..b248ab7 --- /dev/null +++ b/apps/dashboard/public/favicon-dev.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/apps/dashboard/src/routes/__root.tsx b/apps/dashboard/src/routes/__root.tsx index e13ac63..a6f1ad3 100644 --- a/apps/dashboard/src/routes/__root.tsx +++ b/apps/dashboard/src/routes/__root.tsx @@ -37,7 +37,11 @@ export const Route = createRootRouteWithContext<{ ...defaultSeo.meta, ], links: [ - { rel: "icon", type: "image/svg+xml", href: "/favicon.svg" }, + { + rel: "icon", + type: "image/svg+xml", + href: import.meta.env.DEV ? "/favicon-dev.svg" : "/favicon.svg", + }, { rel: "manifest", href: "/manifest.json" }, { rel: "stylesheet", href: appCss }, ], diff --git a/apps/dashboard/src/routes/login.tsx b/apps/dashboard/src/routes/login.tsx index 8909ca4..99a7b2c 100644 --- a/apps/dashboard/src/routes/login.tsx +++ b/apps/dashboard/src/routes/login.tsx @@ -49,7 +49,10 @@ function LoginPage() {
- +

DiffKit diff --git a/packages/ui/src/components/logo.tsx b/packages/ui/src/components/logo.tsx index 2cb4491..5c2496a 100644 --- a/packages/ui/src/components/logo.tsx +++ b/packages/ui/src/components/logo.tsx @@ -71,7 +71,11 @@ function cellRadii(cx: number, cy: number): [number, number, number, number] { ]; } -function Logo({ className, ...props }: React.ComponentProps<"svg">) { +function Logo({ + className, + variant = "default", + ...props +}: React.ComponentProps<"svg"> & { variant?: "default" | "dev" }) { return ( ) { className={cn("size-10 shrink-0", className)} {...props} > - + {CELLS.map((cell) => (