feat(web): add the Superlist icon and logo

A cream shopping bag with a check on the app's green replaces the black
"SL" placeholder: favicon, iOS home-screen icon, PWA icons (with a maskable
version that keeps the bag inside the safe zone) and an AppLogo component
shown in the sidebar and above the sign-in and sign-up forms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jose Selesan
2026-10-29 09:46:13 -03:00
parent 9d4388ed8c
commit 9bd2cc9089
10 changed files with 69 additions and 30 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@@ -1,14 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" role="img" aria-label="Superlist"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512" role="img" aria-label="Superlist">
<rect width="32" height="32" rx="7" fill="#0a0a0a" /> <rect width="512" height="512" rx="116" fill="#287c39"/>
<text <path d="M190 206c0-58 26-86 66-86s66 28 66 86" fill="none" stroke="#faf9f6" stroke-width="26" stroke-linecap="round"/>
x="16" <path d="M150 196h212l20 196H130z" fill="#faf9f6" stroke="#faf9f6" stroke-width="44" stroke-linejoin="round"/>
y="17" <path d="M198 300l42 42 78-80" fill="none" stroke="#287c39" stroke-width="34" stroke-linecap="round" stroke-linejoin="round"/>
text-anchor="middle"
dominant-baseline="middle"
font-family="'Geist Variable', Helvetica, Arial, sans-serif"
font-size="15"
font-weight="600"
letter-spacing="-0.6"
fill="#fafafa"
>SL</text>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 431 B

After

Width:  |  Height:  |  Size: 552 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -1,14 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512" role="img" aria-label="Superlist"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512" role="img" aria-label="Superlist">
<rect width="512" height="512" fill="#0a0a0a" /> <rect width="512" height="512" fill="#287c39"/>
<text <g transform="translate(256 262) scale(0.78) translate(-256 -262)">
x="256" <path d="M190 206c0-58 26-86 66-86s66 28 66 86" fill="none" stroke="#faf9f6" stroke-width="26" stroke-linecap="round"/>
y="270" <path d="M150 196h212l20 196H130z" fill="#faf9f6" stroke="#faf9f6" stroke-width="44" stroke-linejoin="round"/>
text-anchor="middle" <path d="M198 300l42 42 78-80" fill="none" stroke="#287c39" stroke-width="34" stroke-linecap="round" stroke-linejoin="round"/>
dominant-baseline="middle" </g>
font-family="'Geist Variable', Helvetica, Arial, sans-serif"
font-size="216"
font-weight="600"
letter-spacing="-9"
fill="#fafafa"
>SL</text>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 431 B

After

Width:  |  Height:  |  Size: 620 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -0,0 +1,50 @@
import { cn } from '@/lib/utils'
/**
* Superlist's mark: a shopping bag with a check, on the app's green. It is the same
* drawing as `public/favicon.svg` and the PWA icons, so keep them in sync.
*/
export function AppLogo({ className }: { className?: string }) {
return (
<svg
viewBox="0 0 512 512"
className={cn('size-8 shrink-0', className)}
role="img"
aria-label="Superlist"
>
<rect width="512" height="512" rx="116" fill="#287c39" />
<path
d="M190 206c0-58 26-86 66-86s66 28 66 86"
fill="none"
stroke="#faf9f6"
strokeWidth="26"
strokeLinecap="round"
/>
<path
d="M150 196h212l20 196H130z"
fill="#faf9f6"
stroke="#faf9f6"
strokeWidth="44"
strokeLinejoin="round"
/>
<path
d="M198 300l42 42 78-80"
fill="none"
stroke="#287c39"
strokeWidth="34"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
)
}
/** The mark next to the "Superlist" name, for the sign-in and sign-up pages. */
export function AppBrand({ className }: { className?: string }) {
return (
<div className={cn('flex items-center justify-center gap-2.5', className)}>
<AppLogo className="size-10" />
<span className="text-2xl font-bold tracking-tight">Superlist</span>
</div>
)
}

View File

@@ -1,4 +1,5 @@
import { Link, useRouterState } from '@tanstack/react-router' import { Link, useRouterState } from '@tanstack/react-router'
import { AppLogo } from '@/components/app-logo'
import { focusNewItemInput } from '@/components/items/create-item-form' import { focusNewItemInput } from '@/components/items/create-item-form'
import { isNavItemActive, NAV_ITEMS } from '@/components/layout/nav-items' import { isNavItemActive, NAV_ITEMS } from '@/components/layout/nav-items'
import { NavUser } from '@/components/layout/nav-user' import { NavUser } from '@/components/layout/nav-user'
@@ -25,9 +26,7 @@ export function AppSidebar() {
<SidebarMenuItem> <SidebarMenuItem>
<SidebarMenuButton size="lg" asChild> <SidebarMenuButton size="lg" asChild>
<Link to="/" onClick={() => focusNewItemInput(pathname)}> <Link to="/" onClick={() => focusNewItemInput(pathname)}>
<div className="bg-primary text-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg text-sm font-semibold"> <AppLogo className="size-8 rounded-lg" />
SL
</div>
<div className="grid flex-1 text-left text-sm leading-tight"> <div className="grid flex-1 text-left text-sm leading-tight">
<span className="truncate font-medium">Superlist</span> <span className="truncate font-medium">Superlist</span>
<span className="text-muted-foreground truncate text-xs">Listas compartidas</span> <span className="text-muted-foreground truncate text-xs">Listas compartidas</span>

View File

@@ -4,6 +4,7 @@ import { useState } from 'react'
import { useForm } from 'react-hook-form' import { useForm } from 'react-hook-form'
import { z } from 'zod' import { z } from 'zod'
import { AppBrand } from '@/components/app-logo'
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert' import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'
import { Button } from '@/components/ui/button' import { Button } from '@/components/ui/button'
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card' import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'
@@ -54,7 +55,8 @@ function SignInPage() {
}) })
return ( return (
<div className="flex min-h-svh items-center justify-center p-6"> <div className="flex min-h-svh flex-col items-center justify-center gap-6 p-6">
<AppBrand />
<Card className="w-full max-w-sm"> <Card className="w-full max-w-sm">
<CardHeader> <CardHeader>
<CardTitle>Iniciar sesión</CardTitle> <CardTitle>Iniciar sesión</CardTitle>

View File

@@ -4,6 +4,7 @@ import { useState } from 'react'
import { useForm } from 'react-hook-form' import { useForm } from 'react-hook-form'
import { z } from 'zod' import { z } from 'zod'
import { AppBrand } from '@/components/app-logo'
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert' import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'
import { Button } from '@/components/ui/button' import { Button } from '@/components/ui/button'
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card' import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'
@@ -55,7 +56,8 @@ function SignUpPage() {
}) })
return ( return (
<div className="flex min-h-svh items-center justify-center p-6"> <div className="flex min-h-svh flex-col items-center justify-center gap-6 p-6">
<AppBrand />
<Card className="w-full max-w-sm"> <Card className="w-full max-w-sm">
<CardHeader> <CardHeader>
<CardTitle>Crear cuenta</CardTitle> <CardTitle>Crear cuenta</CardTitle>