@@ -54,6 +54,7 @@ export default function PortalNavigation({
|
||||
children: ReactNode;
|
||||
}) {
|
||||
const { url, props, component } = usePage();
|
||||
const printable = component === 'land-assistance/print';
|
||||
const portalShell =
|
||||
['welcome', 'PortalInvestidor', 'management-access'].includes(
|
||||
component,
|
||||
@@ -93,19 +94,28 @@ export default function PortalNavigation({
|
||||
: 'Detalhes');
|
||||
return (
|
||||
<MenuPlacement.Provider value={true}>
|
||||
<div className="pb-8 lg:pb-24 [&_button]:scroll-mb-24 [&_input]:scroll-mb-24 [&_select]:scroll-mb-24 [&_textarea]:scroll-mb-24">
|
||||
<nav aria-label="Atalho para o conteúdo">
|
||||
<a
|
||||
href="#portal-content"
|
||||
className="sr-only focus:not-sr-only focus:block focus:bg-white focus:p-4 focus:text-emerald-900"
|
||||
<div
|
||||
className={`pb-8 lg:pb-24 [&_button]:scroll-mb-24 [&_input]:scroll-mb-24 [&_select]:scroll-mb-24 [&_textarea]:scroll-mb-24 ${printable ? 'print:pb-0' : ''}`}
|
||||
>
|
||||
<nav
|
||||
aria-label="Atalho para o conteúdo"
|
||||
className={printable ? 'print:hidden' : undefined}
|
||||
>
|
||||
Saltar para o conteúdo
|
||||
</a>
|
||||
<a
|
||||
href="#portal-content"
|
||||
className="sr-only focus:not-sr-only focus:block focus:bg-white focus:p-4 focus:text-emerald-900"
|
||||
>
|
||||
Saltar para o conteúdo
|
||||
</a>
|
||||
</nav>
|
||||
{portalShell && <PortalMenu primary />}
|
||||
{portalShell && (
|
||||
<div className={printable ? 'print:hidden' : undefined}>
|
||||
<PortalMenu primary />
|
||||
</div>
|
||||
)}
|
||||
<nav
|
||||
aria-label="Caminho de navegação"
|
||||
className="bg-background text-foreground flex flex-wrap items-center gap-2 border-b px-5 py-3 text-sm"
|
||||
className={`bg-background text-foreground flex flex-wrap items-center gap-2 border-b px-5 py-3 text-sm ${printable ? 'print:hidden' : ''}`}
|
||||
>
|
||||
{path === '/' ? (
|
||||
<span aria-current="page">Início</span>
|
||||
@@ -128,16 +138,23 @@ export default function PortalNavigation({
|
||||
)}
|
||||
</nav>
|
||||
<div id="portal-content" tabIndex={-1}>
|
||||
{portalShell && <JourneyCompanion />}
|
||||
{portalShell && (
|
||||
<div className={printable ? 'print:hidden' : undefined}>
|
||||
<JourneyCompanion />
|
||||
</div>
|
||||
)}
|
||||
{children}
|
||||
</div>
|
||||
<aside aria-label="Contacto de apoio ao investidor">
|
||||
<a
|
||||
href="/apoio"
|
||||
className="mx-3 mt-4 block max-w-[calc(100%-1.5rem)] rounded-xl bg-emerald-800 px-5 py-3 text-center text-sm font-semibold text-white shadow-xl focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-emerald-600"
|
||||
<aside
|
||||
aria-label="Contacto de apoio ao investidor"
|
||||
className={printable ? 'print:hidden' : undefined}
|
||||
>
|
||||
Contactar Apoio ao Investidor
|
||||
</a>
|
||||
<a
|
||||
href="/apoio"
|
||||
className="mx-3 mt-4 block max-w-[calc(100%-1.5rem)] rounded-xl bg-emerald-800 px-5 py-3 text-center text-sm font-semibold text-white shadow-xl focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-emerald-600"
|
||||
>
|
||||
Contactar Apoio ao Investidor
|
||||
</a>
|
||||
</aside>
|
||||
</div>
|
||||
</MenuPlacement.Provider>
|
||||
|
||||
Reference in New Issue
Block a user