From 02d4e6b2fd766d879d7f3b0f19c7c486096dce02 Mon Sep 17 00:00:00 2001 From: Paulo Massingue Date: Tue, 20 Oct 2026 14:38:37 +0200 Subject: [PATCH] remocao de publicidade em sobre nos e alinhamento de items no navbar --- resources/css/app.css | 72 ++- .../js/components/portal-grouped-menu.tsx | 424 +++++++++--------- resources/js/pages/portal/about.tsx | 19 - 3 files changed, 281 insertions(+), 234 deletions(-) diff --git a/resources/css/app.css b/resources/css/app.css index ab6b09a3..b3c8ec35 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -301,23 +301,42 @@ } } @media (min-width: 1280px) { - .tempo-header-inner { - display: flex; - min-height: 88px; - gap: 0.75rem; + /* Shared columns keep each portal area below its institutional link. */ + .tempo-header-layout { + display: grid; + grid-template-columns: auto repeat(4, max-content) minmax(0, 1fr) auto; + column-gap: 0.25rem; + max-width: 1440px; + margin-inline: auto; padding-inline: 2rem; } + .tempo-header-inner { + grid-column: 1 / -1; + grid-template-columns: subgrid; + min-height: 88px; + column-gap: normal; + max-width: none; + margin: 0; + padding: 0; + } + .tempo-logo-link { + margin-right: 0.75rem; + } .tempo-header-logo { height: 64px; } + .tempo-header[data-expanded] .tempo-primary-navigation, .tempo-primary-navigation { - display: block; - flex: 1; + display: grid; + grid-area: 1 / 2 / 2 / 6; + grid-template-columns: subgrid; border: 0; } .tempo-primary-navigation > ul { - justify-content: center; - gap: 0.25rem; + display: grid; + grid-column: 1 / -1; + grid-template-columns: subgrid; + gap: normal; padding: 0; } .tempo-nav-trigger { @@ -332,6 +351,8 @@ } .tempo-header-extras { display: flex; + grid-area: 1 / 6; + justify-self: end; flex-shrink: 0; padding: 0 0.75rem; border-top: 0; @@ -347,16 +368,47 @@ .tempo-header-toggle { display: none; } + .tempo-header-actions { + grid-area: 1 / 7; + } + .tempo-section-bar { + display: grid; + grid-column: 1 / -1; + grid-template-columns: subgrid; + } .tempo-section-inner { - padding-inline: 2rem; + grid-column: 1 / -1; + grid-template-columns: subgrid; + gap: normal; + max-width: none; + margin: 0; + padding-inline: 0; + } + .tempo-section-navigation { + display: grid; + grid-area: 1 / 2 / 2 / 5; + grid-template-columns: subgrid; + } + .tempo-section-navigation > ul { + display: grid; + grid-column: 1 / -1; + grid-template-columns: subgrid; + gap: normal; } .tempo-section-navigation .tempo-nav-trigger { - padding-inline: 1.25rem; + padding-inline: 0.625rem; + } + .tempo-primary-navigation .tempo-nav-trigger, + .tempo-section-navigation .tempo-nav-trigger { + justify-content: flex-start; } .tempo-interest-button { padding-inline: 0.85rem; font-size: 0.8125rem; } + .tempo-section-inner .tempo-interest-button { + grid-area: 1 / 6 / 2 / -1; + } } .tempo-header :is(a, button):focus-visible { outline: 2px solid #fff; diff --git a/resources/js/components/portal-grouped-menu.tsx b/resources/js/components/portal-grouped-menu.tsx index aad4fee0..895b7e09 100644 --- a/resources/js/components/portal-grouped-menu.tsx +++ b/resources/js/components/portal-grouped-menu.tsx @@ -124,229 +124,243 @@ export function PortalGroupedMenu() { } }} > -
- - Tempo - -
- - -
-
- - {t('O meu painel')} - - {requestCount}{' '} - {t( - requestCount === 1 - ? 'pedido recebido' - : 'pedidos recebidos', - )} - - - - +
+
+ + +
+ +
+
+
+ {props.auth?.user ? ( + + + + + + {props.auth.user.email} + + {items(accountGroups)} + + + router.flushAll()} + onStart={() => setLoggingOut(true)} + onFinish={() => + setLoggingOut(false) + } + > + + + + ) : ( + +
+ +
+
+
+ + {t('O meu painel')} + + {requestCount}{' '} + {t( + requestCount === 1 + ? 'pedido recebido' + : 'pedidos recebidos', + )} + + + + + {t('Manifestar interesse')} + +
diff --git a/resources/js/pages/portal/about.tsx b/resources/js/pages/portal/about.tsx index 9101d279..992769df 100644 --- a/resources/js/pages/portal/about.tsx +++ b/resources/js/pages/portal/about.tsx @@ -5,7 +5,6 @@ import { AboutStory } from '@/components/institutional-source/AboutStory'; import { MissionVision } from '@/components/institutional-source/MissionVision'; import { CompanyValues } from '@/components/institutional-source/CompanyValues'; import BackButton from '@/components/institutional-source/BackButton'; -import { AdvertisementSlot } from '@/components/institutional-source/source-advertisement-slot'; const AboutPage: React.FC = () => { const [loading, setLoading] = useState(true); @@ -45,29 +44,11 @@ const AboutPage: React.FC = () => { - -
- - ); };