Added installation notification

This commit is contained in:
Jose Selesan
2026-09-28 22:20:11 -03:00
parent 2fd1826014
commit 56096b1e35
9 changed files with 167 additions and 30 deletions

View File

@@ -1,3 +1,4 @@
import { Link } from '@tanstack/react-router'
import { Logo } from '../brand'
import { Breadcrumb } from './Breadcrumb'
import { ThemeToggle } from './ThemeToggle'
@@ -8,9 +9,12 @@ export function Header() {
<header className="sticky top-0 z-40 h-16 w-full border-b border-border bg-background/90 backdrop-blur">
<div className="mx-auto flex h-full w-full max-w-7xl items-center justify-between px-4 lg:px-6">
<div className="flex min-w-0 items-center">
<a href="/" className="flex items-center lg:hidden" aria-label="Gruperly inicio">
{/* `Link` y no `<a>`: en mobile el logo es la única forma de volver al
inicio y un anchor recargaría el documento entero, perdiendo el
estado en memoria (cache de React Query, evento de instalación). */}
<Link to="/" className="flex items-center lg:hidden" aria-label="Gruperly inicio">
<Logo className="h-8" />
</a>
</Link>
<Breadcrumb />
</div>
<div className="flex items-center gap-2">

View File

@@ -8,9 +8,11 @@ export function Sidebar() {
return (
<aside className="sticky top-16 hidden h-[calc(100dvh-4rem)] w-64 shrink-0 flex-col border-r border-border bg-surface px-4 py-6 lg:flex">
<a href="/" className="mb-8 flex items-center px-1" aria-label="Gruperly inicio">
{/* `Link` y no `<a>`: un anchor recargaría el documento y perdería el
estado en memoria (cache de React Query, evento de instalación). */}
<Link to="/" className="mb-8 flex items-center px-1" aria-label="Gruperly inicio">
<Logo className="h-10" />
</a>
</Link>
<nav className="flex flex-col gap-1">
{NAV_ITEMS.map(({ label, to, icon: Icon }) => {