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
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 15 KiB

+30
View File
@@ -0,0 +1,30 @@
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512">
<title>Dahoam</title>
<!-- A cottage at dusk with the light on. The same house in one color is src/components/logo.tsx. -->
<defs>
<linearGradient id="dusk" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#34446b" />
<stop offset="1" stop-color="#171d36" />
</linearGradient>
<radialGradient id="glow">
<stop offset="0" stop-color="#ffd76a" stop-opacity=".6" />
<stop offset="1" stop-color="#ffd76a" stop-opacity="0" />
</radialGradient>
</defs>
<rect width="512" height="512" rx="116" fill="url(#dusk)" />
<g transform="translate(256 258) scale(.93) translate(-256 -236)">
<!-- smoke, chimney -->
<circle cx="364" cy="92" r="15" fill="#f6e7d0" opacity=".85" />
<circle cx="390" cy="58" r="10" fill="#f6e7d0" opacity=".6" />
<rect x="330" y="124" width="42" height="100" rx="8" fill="#c95a2f" />
<!-- walls, with the shadow of the eaves -->
<rect x="136" y="236" width="240" height="170" rx="26" fill="#f6e7d0" />
<rect x="136" y="270" width="240" height="22" fill="#8a4a2b" opacity=".18" />
<!-- roof -->
<path d="M256 120L414 256H98Z" fill="#e9743f" stroke="#e9743f" stroke-width="40" stroke-linejoin="round" />
<!-- door, lit window -->
<path d="M224 406V338a32 32 0 0 1 64 0V406Z" fill="#8a4a2b" />
<circle cx="256" cy="212" r="64" fill="url(#glow)" />
<circle cx="256" cy="212" r="24" fill="#ffd76a" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

+13 -2
View File
@@ -4,9 +4,14 @@
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"sizes": "48x48 32x32 16x16",
"type": "image/x-icon"
},
{
"src": "icon.svg",
"type": "image/svg+xml",
"sizes": "any"
},
{
"src": "logo192.png",
"type": "image/png",
@@ -16,10 +21,16 @@
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
},
{
"src": "logo-maskable.png",
"type": "image/png",
"sizes": "512x512",
"purpose": "maskable"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
"background_color": "#000000"
}
+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="/">