remocao de publicidade em sobre nos e alinhamento de items no navbar
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-20 14:38:37 +02:00
parent 507387502c
commit 02d4e6b2fd
3 changed files with 281 additions and 234 deletions
+62 -10
View File
@@ -301,23 +301,42 @@
} }
} }
@media (min-width: 1280px) { @media (min-width: 1280px) {
.tempo-header-inner { /* Shared columns keep each portal area below its institutional link. */
display: flex; .tempo-header-layout {
min-height: 88px; display: grid;
gap: 0.75rem; 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; 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 { .tempo-header-logo {
height: 64px; height: 64px;
} }
.tempo-header[data-expanded] .tempo-primary-navigation,
.tempo-primary-navigation { .tempo-primary-navigation {
display: block; display: grid;
flex: 1; grid-area: 1 / 2 / 2 / 6;
grid-template-columns: subgrid;
border: 0; border: 0;
} }
.tempo-primary-navigation > ul { .tempo-primary-navigation > ul {
justify-content: center; display: grid;
gap: 0.25rem; grid-column: 1 / -1;
grid-template-columns: subgrid;
gap: normal;
padding: 0; padding: 0;
} }
.tempo-nav-trigger { .tempo-nav-trigger {
@@ -332,6 +351,8 @@
} }
.tempo-header-extras { .tempo-header-extras {
display: flex; display: flex;
grid-area: 1 / 6;
justify-self: end;
flex-shrink: 0; flex-shrink: 0;
padding: 0 0.75rem; padding: 0 0.75rem;
border-top: 0; border-top: 0;
@@ -347,16 +368,47 @@
.tempo-header-toggle { .tempo-header-toggle {
display: none; 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 { .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 { .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 { .tempo-interest-button {
padding-inline: 0.85rem; padding-inline: 0.85rem;
font-size: 0.8125rem; font-size: 0.8125rem;
} }
.tempo-section-inner .tempo-interest-button {
grid-area: 1 / 6 / 2 / -1;
}
} }
.tempo-header :is(a, button):focus-visible { .tempo-header :is(a, button):focus-visible {
outline: 2px solid #fff; outline: 2px solid #fff;
@@ -124,6 +124,7 @@ export function PortalGroupedMenu() {
} }
}} }}
> >
<div className="tempo-header-layout">
<div className="tempo-header-inner"> <div className="tempo-header-inner">
<Link <Link
href="/" href="/"
@@ -169,7 +170,10 @@ export function PortalGroupedMenu() {
aria-label={`${t('Revista Tempo')} — ${t('Abre num novo separador')}`} aria-label={`${t('Revista Tempo')} — ${t('Abre num novo separador')}`}
> >
{t('Revista Tempo')} {t('Revista Tempo')}
<ArrowUpRight size={14} aria-hidden="true" /> <ArrowUpRight
size={14}
aria-hidden="true"
/>
</a> </a>
</li> </li>
{[ {[
@@ -186,7 +190,8 @@ export function PortalGroupedMenu() {
: undefined : undefined
} }
data-current-group={ data-current-group={
url.split('?')[0] === href || undefined url.split('?')[0] === href ||
undefined
} }
> >
{t(label)} {t(label)}
@@ -210,7 +215,8 @@ export function PortalGroupedMenu() {
<DropdownMenuTrigger className="tempo-login-button"> <DropdownMenuTrigger className="tempo-login-button">
<UserRound size={16} aria-hidden="true" /> <UserRound size={16} aria-hidden="true" />
<span className="max-w-24 truncate"> <span className="max-w-24 truncate">
{props.auth.user.name || t('A minha área')} {props.auth.user.name ||
t('A minha área')}
</span> </span>
<ChevronDown size={12} aria-hidden="true" /> <ChevronDown size={12} aria-hidden="true" />
</DropdownMenuTrigger> </DropdownMenuTrigger>
@@ -237,9 +243,14 @@ export function PortalGroupedMenu() {
data-test="portal-logout-button" data-test="portal-logout-button"
onClick={() => router.flushAll()} onClick={() => router.flushAll()}
onStart={() => setLoggingOut(true)} onStart={() => setLoggingOut(true)}
onFinish={() => setLoggingOut(false)} onFinish={() =>
setLoggingOut(false)
}
> >
<LogOut size={16} aria-hidden="true" /> <LogOut
size={16}
aria-hidden="true"
/>
{loggingOut {loggingOut
? 'A terminar sessão…' ? 'A terminar sessão…'
: t('Terminar sessão')} : t('Terminar sessão')}
@@ -334,7 +345,9 @@ export function PortalGroupedMenu() {
collisionPadding={12} collisionPadding={12}
className="tempo-dropdown max-h-[min(75vh,36rem)] w-72 max-w-[calc(100vw-1.5rem)] overflow-y-auto p-2" className="tempo-dropdown max-h-[min(75vh,36rem)] w-72 max-w-[calc(100vw-1.5rem)] overflow-y-auto p-2"
> >
{items(group.children ?? [])} {items(
group.children ?? [],
)}
</DropdownMenuContent> </DropdownMenuContent>
</DropdownMenu> </DropdownMenu>
</li> </li>
@@ -349,6 +362,7 @@ export function PortalGroupedMenu() {
</Link> </Link>
</div> </div>
</div> </div>
</div>
</header> </header>
); );
} }
-19
View File
@@ -5,7 +5,6 @@ import { AboutStory } from '@/components/institutional-source/AboutStory';
import { MissionVision } from '@/components/institutional-source/MissionVision'; import { MissionVision } from '@/components/institutional-source/MissionVision';
import { CompanyValues } from '@/components/institutional-source/CompanyValues'; import { CompanyValues } from '@/components/institutional-source/CompanyValues';
import BackButton from '@/components/institutional-source/BackButton'; import BackButton from '@/components/institutional-source/BackButton';
import { AdvertisementSlot } from '@/components/institutional-source/source-advertisement-slot';
const AboutPage: React.FC = () => { const AboutPage: React.FC = () => {
const [loading, setLoading] = useState(true); const [loading, setLoading] = useState(true);
@@ -45,29 +44,11 @@ const AboutPage: React.FC = () => {
</div> </div>
</header> </header>
<AdvertisementSlot
page="about"
position="top"
slot="about_top"
limit={1}
fallbackToUnslotted
className=""
/>
<div className="text-white"> <div className="text-white">
<AboutStory /> <AboutStory />
<MissionVision /> <MissionVision />
<CompanyValues /> <CompanyValues />
</div> </div>
<AdvertisementSlot
page="about"
position="bottom"
slot="about_bottom"
limit={2}
fallbackToUnslotted
className="py-4"
/>
</div> </div>
); );
}; };