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>
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 5.1 KiB |
@@ -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">
|
||||
<rect width="32" height="32" rx="7" fill="#0a0a0a" />
|
||||
<text
|
||||
x="16"
|
||||
y="17"
|
||||
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 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" rx="116" fill="#287c39"/>
|
||||
<path d="M190 206c0-58 26-86 66-86s66 28 66 86" fill="none" stroke="#faf9f6" stroke-width="26" stroke-linecap="round"/>
|
||||
<path d="M150 196h212l20 196H130z" fill="#faf9f6" stroke="#faf9f6" stroke-width="44" stroke-linejoin="round"/>
|
||||
<path d="M198 300l42 42 78-80" fill="none" stroke="#287c39" stroke-width="34" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 431 B After Width: | Height: | Size: 552 B |
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 13 KiB |
@@ -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">
|
||||
<rect width="512" height="512" fill="#0a0a0a" />
|
||||
<text
|
||||
x="256"
|
||||
y="270"
|
||||
text-anchor="middle"
|
||||
dominant-baseline="middle"
|
||||
font-family="'Geist Variable', Helvetica, Arial, sans-serif"
|
||||
font-size="216"
|
||||
font-weight="600"
|
||||
letter-spacing="-9"
|
||||
fill="#fafafa"
|
||||
>SL</text>
|
||||
<rect width="512" height="512" fill="#287c39"/>
|
||||
<g transform="translate(256 262) scale(0.78) translate(-256 -262)">
|
||||
<path d="M190 206c0-58 26-86 66-86s66 28 66 86" fill="none" stroke="#faf9f6" stroke-width="26" stroke-linecap="round"/>
|
||||
<path d="M150 196h212l20 196H130z" fill="#faf9f6" stroke="#faf9f6" stroke-width="44" stroke-linejoin="round"/>
|
||||
<path d="M198 300l42 42 78-80" fill="none" stroke="#287c39" stroke-width="34" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 431 B After Width: | Height: | Size: 620 B |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 22 KiB |
50
apps/web/src/components/app-logo.tsx
Normal 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>
|
||||
)
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Link, useRouterState } from '@tanstack/react-router'
|
||||
import { AppLogo } from '@/components/app-logo'
|
||||
import { focusNewItemInput } from '@/components/items/create-item-form'
|
||||
import { isNavItemActive, NAV_ITEMS } from '@/components/layout/nav-items'
|
||||
import { NavUser } from '@/components/layout/nav-user'
|
||||
@@ -25,9 +26,7 @@ export function AppSidebar() {
|
||||
<SidebarMenuItem>
|
||||
<SidebarMenuButton size="lg" asChild>
|
||||
<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">
|
||||
SL
|
||||
</div>
|
||||
<AppLogo className="size-8 rounded-lg" />
|
||||
<div className="grid flex-1 text-left text-sm leading-tight">
|
||||
<span className="truncate font-medium">Superlist</span>
|
||||
<span className="text-muted-foreground truncate text-xs">Listas compartidas</span>
|
||||
|
||||
@@ -4,6 +4,7 @@ import { useState } from 'react'
|
||||
import { useForm } from 'react-hook-form'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { AppBrand } from '@/components/app-logo'
|
||||
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'
|
||||
@@ -54,7 +55,8 @@ function SignInPage() {
|
||||
})
|
||||
|
||||
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">
|
||||
<CardHeader>
|
||||
<CardTitle>Iniciar sesión</CardTitle>
|
||||
|
||||
@@ -4,6 +4,7 @@ import { useState } from 'react'
|
||||
import { useForm } from 'react-hook-form'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { AppBrand } from '@/components/app-logo'
|
||||
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'
|
||||
@@ -55,7 +56,8 @@ function SignUpPage() {
|
||||
})
|
||||
|
||||
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">
|
||||
<CardHeader>
|
||||
<CardTitle>Crear cuenta</CardTitle>
|
||||
|
||||