fix: esconde texto OCCTO ENG quando logo está presente

- Header: mostra apenas logo (150x50)
- Footer: mostra apenas logo
- Admin: mostra apenas logo
This commit is contained in:
Erik
2025-11-29 16:53:49 -03:00
parent 239fca5924
commit 061a572464
3 changed files with 35 additions and 29 deletions

View File

@@ -265,20 +265,22 @@ export default function AdminLayout({
{logo ? (
<Image
src={logo}
alt="Logo"
width={32}
height={32}
className="object-contain"
alt="OCCTO Engenharia"
width={isSidebarOpen ? 120 : 32}
height={40}
className="object-contain h-10 w-auto"
unoptimized
/>
) : (
<i className="ri-building-2-fill text-3xl text-primary"></i>
)}
{isSidebarOpen && (
<div className="flex items-center gap-2 animate-in fade-in duration-300">
<span className="text-xl font-bold text-secondary dark:text-white font-headline leading-none">OCCTO</span>
<span className="text-[10px] font-bold text-primary bg-primary/10 px-2 py-1 rounded-md uppercase tracking-wider">ENG.</span>
</div>
<>
<i className="ri-building-2-fill text-3xl text-primary"></i>
{isSidebarOpen && (
<div className="flex items-center gap-2 animate-in fade-in duration-300">
<span className="text-xl font-bold text-secondary dark:text-white font-headline leading-none">OCCTO</span>
<span className="text-[10px] font-bold text-primary bg-primary/10 px-2 py-1 rounded-md uppercase tracking-wider">ENG.</span>
</div>
)}
</>
)}
</Link>
</div>