Tests / bridge tests (push) Successful in 50s
Tests / writer-pipeline tests (push) Successful in 53s
Tests / bridge tests (pull_request) Failing after 42s
Tests / writer-pipeline tests (pull_request) Successful in 44s
Tests / frontend lib tests (push) Successful in 50s
Tests / frontend lib tests (pull_request) Successful in 42s
Replace wp-login redirects with branded /entrar and /registar forms calling bridge /api/auth/*. Add compact Últimas rail (up to 36) near fold and reduce badge-heavy institutional chrome for Andebol.net. Paperclip-Agent: Artur Moreira (urlKey artur-moreira; id ac1be104-8818-496a-80c5-fbc590a87855) Paperclip-Issue: BIT-26753 Paperclip-Run: 81f2e183-2e02-4b0a-882b-c4051e2c02dd Co-authored-by: Cursor <[email protected]>
87 lines
2.3 KiB
Plaintext
87 lines
2.3 KiB
Plaintext
---
|
|
import type { DomainConfig } from '../../types/index.js';
|
|
|
|
interface Props {
|
|
config: DomainConfig;
|
|
title: string;
|
|
lead: string;
|
|
switchHref: string;
|
|
switchLabel: string;
|
|
switchPrompt: string;
|
|
}
|
|
|
|
const { config, title, lead, switchHref, switchLabel, switchPrompt } = Astro.props;
|
|
---
|
|
<section class="auth-shell" aria-labelledby="auth-title">
|
|
<div class="auth-shell__panel">
|
|
<p class="auth-shell__brand">{config.site_name}</p>
|
|
<h1 class="auth-shell__title" id="auth-title">{title}</h1>
|
|
<p class="auth-shell__lead">{lead}</p>
|
|
<slot />
|
|
<p class="auth-shell__switch">
|
|
{switchPrompt}
|
|
{' '}
|
|
<a href={switchHref}>{switchLabel}</a>
|
|
</p>
|
|
</div>
|
|
</section>
|
|
|
|
<style>
|
|
.auth-shell {
|
|
min-height: calc(100dvh - var(--header-height) - 8rem);
|
|
display: grid;
|
|
place-items: center;
|
|
padding: var(--space-8) var(--container-pad);
|
|
background:
|
|
linear-gradient(165deg, color-mix(in srgb, var(--color-primary) 8%, var(--color-bg)) 0%, var(--color-bg) 45%),
|
|
radial-gradient(ellipse 80% 50% at 100% 0%, color-mix(in srgb, var(--color-secondary) 12%, transparent), transparent 60%);
|
|
}
|
|
|
|
.auth-shell__panel {
|
|
width: min(100%, 420px);
|
|
padding: var(--space-8) var(--space-6);
|
|
border-left: 4px solid var(--color-primary);
|
|
background: var(--color-bg-card);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.auth-shell__brand {
|
|
font-family: var(--font-heading, var(--font-sans));
|
|
font-size: var(--text-sm);
|
|
font-weight: 800;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--color-primary);
|
|
margin-bottom: var(--space-3);
|
|
}
|
|
|
|
.auth-shell__title {
|
|
font-family: var(--font-heading, var(--font-serif));
|
|
font-size: clamp(1.75rem, 4vw, 2.25rem);
|
|
font-weight: 800;
|
|
letter-spacing: -0.02em;
|
|
line-height: 1.15;
|
|
margin-bottom: var(--space-2);
|
|
}
|
|
|
|
.auth-shell__lead {
|
|
color: var(--color-text-muted);
|
|
font-size: var(--text-sm);
|
|
margin-bottom: var(--space-6);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.auth-shell__switch {
|
|
margin-top: var(--space-6);
|
|
font-size: var(--text-sm);
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.auth-shell__switch a {
|
|
color: var(--color-primary);
|
|
font-weight: 700;
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
}
|
|
</style>
|