feat: app icon, a cottage at dusk
images / check (push) Successful in 31s
images / image (push) Successful in 22s

This commit is contained in:
2026-11-18 16:40:10 +01:00
parent 177280753d
commit 60f23923ad
11 changed files with 86 additions and 13 deletions
+33
View File
@@ -0,0 +1,33 @@
import { useId } from "react"
/** The house of the app icon (public/icon.svg), in the text color. */
export function Logo({ className }: { className?: string }) {
const openings = useId()
return (
<svg
viewBox="70 44 372 372"
fill="currentColor"
className={className}
aria-hidden
>
{/* the door and the window are holes */}
<mask id={openings}>
<rect x="70" y="44" width="372" height="372" fill="#fff" />
<path d="M224 416V338a32 32 0 0 1 64 0V416Z" fill="#000" />
<circle cx="256" cy="212" r="24" fill="#000" />
</mask>
<circle cx="364" cy="92" r="15" opacity=".85" />
<circle cx="390" cy="58" r="10" opacity=".6" />
<g mask={`url(#${openings})`}>
<rect x="330" y="124" width="42" height="100" rx="8" />
<rect x="136" y="236" width="240" height="170" rx="26" />
<path
d="M256 120L414 256H98Z"
stroke="currentColor"
strokeWidth="40"
strokeLinejoin="round"
/>
</g>
</svg>
)
}
+5
View File
@@ -24,6 +24,11 @@ export const Route = createRootRoute({
rel: "stylesheet",
href: appCss,
},
// the .ico for browsers that do not take an SVG icon
{ rel: "icon", href: "/favicon.ico", sizes: "32x32" },
{ rel: "icon", href: "/icon.svg", type: "image/svg+xml" },
{ rel: "apple-touch-icon", href: "/apple-touch-icon.png" },
{ rel: "manifest", href: "/manifest.json" },
],
}),
notFoundComponent: () => (
+3 -9
View File
@@ -5,20 +5,14 @@ import {
redirect,
useRouter,
} from "@tanstack/react-router"
import {
Flower2,
LayoutGrid,
LogOut,
Pencil,
Plus,
Settings2,
} from "lucide-react"
import { LayoutGrid, LogOut, Pencil, Plus, Settings2 } from "lucide-react"
import { CardDialog } from "@/components/card-dialog"
import type { CardTarget } from "@/components/card-dialog"
import { CardGrid } from "@/components/card-grid"
import { Clock } from "@/components/clock"
import { LinkDialog } from "@/components/link-dialog"
import type { LinkTarget } from "@/components/link-dialog"
import { Logo } from "@/components/logo"
import { SearchBar } from "@/components/search-bar"
import { Wallpaper } from "@/components/wallpaper"
import { authClient } from "@/lib/auth-client"
@@ -54,7 +48,7 @@ function Dashboard() {
<main className="flex min-h-svh flex-col items-center px-4">
<header className="flex h-28 w-full max-w-[1200px] items-center gap-4 px-2 sm:px-8">
<Flower2 className="size-6" aria-hidden />
<Logo className="size-6" />
<h1 className="m-0 text-md font-semibold">{data.title}</h1>
<span className="hidden font-mono text-sm text-white/50 sm:inline">
{data.user.name}
+2 -2
View File
@@ -10,13 +10,13 @@ import {
ArrowLeft,
Check,
CircleUser,
Flower2,
Image,
LogOut,
Search,
SlidersHorizontal,
Upload,
} from "lucide-react"
import { Logo } from "@/components/logo"
import { DEFAULT_WALLPAPER } from "@/components/wallpaper"
import { authClient } from "@/lib/auth-client"
import { getDashboard, saveSettings } from "@/lib/dashboard.functions"
@@ -115,7 +115,7 @@ function Settings() {
<div className="min-h-svh bg-app">
<header className="sticky top-0 z-10 border-b border-line-shell bg-frame px-4 sm:px-8">
<div className="mx-auto flex h-14 max-w-[1040px] items-center gap-3">
<Flower2 className="size-5 text-fg" aria-hidden />
<Logo className="size-5 text-fg" />
<span className="min-w-0 truncate font-bold">{data.title}</span>
<Button asChild size="sm" className="ml-auto">
<Link to="/">