ajuste de hero mais claro, revista na navbar, contactos no footer
This commit is contained in:
@@ -157,6 +157,7 @@ export function PortalGroupedMenu() {
|
|||||||
'administration',
|
'administration',
|
||||||
].includes(group.id),
|
].includes(group.id),
|
||||||
);
|
);
|
||||||
|
const workGroup = groups.find((group) => group.id === 'work');
|
||||||
const institutionalCurrent = url.split('?')[0] === '/contacto';
|
const institutionalCurrent = url.split('?')[0] === '/contacto';
|
||||||
return (
|
return (
|
||||||
<header
|
<header
|
||||||
@@ -273,76 +274,48 @@ export function PortalGroupedMenu() {
|
|||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<DropdownMenu modal={false}>
|
<a
|
||||||
<DropdownMenuTrigger
|
href="https://revista.tempo.co.mz/"
|
||||||
className="tempo-nav-trigger"
|
target="_blank"
|
||||||
data-current-group={
|
rel="noopener noreferrer"
|
||||||
institutionalCurrent ||
|
className="tempo-nav-trigger"
|
||||||
current === 'work' ||
|
aria-label={`${t('Revista Tempo')} — ${t('Abre num novo separador')}`}
|
||||||
undefined
|
>
|
||||||
}
|
{t('Revista Tempo')}
|
||||||
>
|
<ArrowUpRight size={14} aria-hidden="true" />
|
||||||
Mais
|
</a>
|
||||||
<ChevronDown size={14} aria-hidden="true" />
|
|
||||||
</DropdownMenuTrigger>
|
|
||||||
<DropdownMenuContent
|
|
||||||
align="start"
|
|
||||||
sideOffset={12}
|
|
||||||
collisionPadding={12}
|
|
||||||
className="tempo-dropdown max-h-[75vh] w-64 max-w-[calc(100vw-1.5rem)] overflow-y-auto p-2"
|
|
||||||
>
|
|
||||||
<DropdownMenuItem
|
|
||||||
asChild
|
|
||||||
className="tempo-menu-item"
|
|
||||||
>
|
|
||||||
<a
|
|
||||||
href="https://revista.tempo.co.mz/"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
aria-label={`${t('Revista Tempo')} — ${t('Abre num novo separador')}`}
|
|
||||||
>
|
|
||||||
{t('Revista Tempo')}
|
|
||||||
<ArrowUpRight
|
|
||||||
size={14}
|
|
||||||
aria-hidden="true"
|
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
</DropdownMenuItem>
|
|
||||||
{[['/contacto', 'Contacto']].map(
|
|
||||||
([href, label]) => (
|
|
||||||
<DropdownMenuItem
|
|
||||||
key={href}
|
|
||||||
asChild
|
|
||||||
className="tempo-menu-item"
|
|
||||||
>
|
|
||||||
<Link
|
|
||||||
href={href}
|
|
||||||
aria-current={
|
|
||||||
url.split('?')[0] ===
|
|
||||||
href
|
|
||||||
? 'page'
|
|
||||||
: undefined
|
|
||||||
}
|
|
||||||
>
|
|
||||||
{t(label)}
|
|
||||||
</Link>
|
|
||||||
</DropdownMenuItem>
|
|
||||||
),
|
|
||||||
)}
|
|
||||||
{groups
|
|
||||||
.filter((group) => group.id === 'work')
|
|
||||||
.map((group) => (
|
|
||||||
<Fragment key={group.id}>
|
|
||||||
<DropdownMenuSeparator />
|
|
||||||
<DropdownMenuLabel>
|
|
||||||
{t(group.label)}
|
|
||||||
</DropdownMenuLabel>
|
|
||||||
{items(group.children ?? [])}
|
|
||||||
</Fragment>
|
|
||||||
))}
|
|
||||||
</DropdownMenuContent>
|
|
||||||
</DropdownMenu>
|
|
||||||
</li>
|
</li>
|
||||||
|
{workGroup?.children?.length ? (
|
||||||
|
<li>
|
||||||
|
<DropdownMenu modal={false}>
|
||||||
|
<DropdownMenuTrigger
|
||||||
|
className="tempo-nav-trigger"
|
||||||
|
data-current-group={
|
||||||
|
institutionalCurrent ||
|
||||||
|
current === 'work' ||
|
||||||
|
undefined
|
||||||
|
}
|
||||||
|
>
|
||||||
|
Mais
|
||||||
|
<ChevronDown
|
||||||
|
size={14}
|
||||||
|
aria-hidden="true"
|
||||||
|
/>
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent
|
||||||
|
align="start"
|
||||||
|
sideOffset={12}
|
||||||
|
collisionPadding={12}
|
||||||
|
className="tempo-dropdown max-h-[75vh] w-64 max-w-[calc(100vw-1.5rem)] overflow-y-auto p-2"
|
||||||
|
>
|
||||||
|
<DropdownMenuLabel>
|
||||||
|
{t(workGroup.label)}
|
||||||
|
</DropdownMenuLabel>
|
||||||
|
{items(workGroup.children ?? [])}
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
|
</li>
|
||||||
|
) : null}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<div id={toolsId} className="tempo-header-extras">
|
<div id={toolsId} className="tempo-header-extras">
|
||||||
|
|||||||
@@ -198,11 +198,11 @@ export default function PortalHero({
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className="absolute inset-0 -z-10 bg-linear-to-r from-black/75 via-black/65 to-black/60"
|
className="absolute inset-0 -z-10 bg-linear-to-r from-black/45 via-black/30 to-black/35"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
className="absolute inset-x-0 bottom-0 -z-10 h-48 bg-linear-to-t from-black/65 to-transparent"
|
className="absolute inset-x-0 bottom-0 -z-10 h-48 bg-linear-to-t from-black/40 to-transparent"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import PortalProductIdentity from '@/components/portal-product-identity';
|
import PortalProductIdentity from '@/components/portal-product-identity';
|
||||||
import { Link, usePage } from '@inertiajs/react';
|
import { Link, usePage } from '@inertiajs/react';
|
||||||
import { ChevronRight, Mail, MapPin, Phone } from 'lucide-react';
|
import { ChevronRight, Mail, MapPin, MessageSquare, Phone } from 'lucide-react';
|
||||||
import { TempoSocialLinks, useTempoUi } from '@/components/tempo-brand';
|
import { TempoSocialLinks, useTempoUi } from '@/components/tempo-brand';
|
||||||
|
|
||||||
const navigation = [
|
const navigation = [
|
||||||
@@ -79,6 +79,14 @@ export function TempoFooter() {
|
|||||||
t('Apoio ao investidor')}
|
t('Apoio ao investidor')}
|
||||||
</strong>
|
</strong>
|
||||||
</a>
|
</a>
|
||||||
|
<Link href="/contacto" className="tempo-contact-link">
|
||||||
|
<span className="tempo-contact-icon">
|
||||||
|
<MessageSquare size={16} aria-hidden="true" />
|
||||||
|
</span>
|
||||||
|
<strong className="text-sm font-medium">
|
||||||
|
{t('Contacto')}
|
||||||
|
</strong>
|
||||||
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<nav aria-label="Navegação do rodapé" className="space-y-4">
|
<nav aria-label="Navegação do rodapé" className="space-y-4">
|
||||||
|
|||||||
Reference in New Issue
Block a user