feat: portal IA per spec (home entry point, /news, /proposals+redirect, /support), live search + suggestions, article TOC, mobile disclosure menu, CMS preview styles, modernization pass 1
This commit is contained in:
+27
-8
@@ -6,9 +6,11 @@ const isActive = (href) => (href === '/' ? path === '/' : path.startsWith(href))
|
||||
// Navigation = services from the Science Portal spec (REQUIREMENTS.md §2/§5).
|
||||
// External systems built by other teams are links out, clearly marked.
|
||||
const links = [
|
||||
{ href: '/', label: 'News' },
|
||||
{ href: '/telescopes', label: 'Proposals' },
|
||||
{ href: '/news', label: 'News' },
|
||||
{ href: '/proposals', label: 'Proposals' },
|
||||
{ href: '/dashboard', label: 'Dashboard' },
|
||||
{ href: 'https://padc-ctao-data-explorer.obspm.fr/', label: 'Data', ext: true },
|
||||
{ href: '/support', label: 'Support' },
|
||||
];
|
||||
---
|
||||
<!doctype html>
|
||||
@@ -18,6 +20,7 @@ const links = [
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{title}</title>
|
||||
<meta name="description" content={description} />
|
||||
<link rel="icon" href="/brand/CTAO_Logo_positive.svg" type="image/svg+xml" />
|
||||
{/* Brand typography (BRAND D.3): Inter (body) + Space Grotesk (headlines).
|
||||
Google Fonts for the demo; self-host woff2 for production. */}
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
@@ -32,15 +35,30 @@ const links = [
|
||||
<img src="/brand/AAFF_CTAO_Logo_RGB_Monochrome-negative.svg" alt="CTAO" />
|
||||
<span class="brand-sub">Science Portal</span>
|
||||
</a>
|
||||
<span class="spacer"></span>
|
||||
<nav aria-label="Main navigation">
|
||||
{links.map((l) => (
|
||||
{links.map((l) => l.ext ? (
|
||||
<a class="navlink external" href={l.href} target="_blank" rel="noopener">{l.label}</a>
|
||||
) : (
|
||||
<a class="navlink" href={l.href} aria-current={isActive(l.href) ? 'page' : undefined}>{l.label}</a>
|
||||
))}
|
||||
<a class="navlink external" href="https://padc-ctao-data-explorer.obspm.fr/" target="_blank" rel="noopener">Data</a>
|
||||
</nav>
|
||||
<a class="navlink navlink--edit" href="/admin">✎ Editor</a>
|
||||
<button class="login-mock" type="button" disabled title="Mock — CTAO AAI sign-in will be integrated here">Sign in</button>
|
||||
<span class="spacer"></span>
|
||||
<a class="navlink" href="/search">Search</a>
|
||||
<a class="navlink navlink--edit" href="/admin" title="Content editor (demo CMS)">✎ Editor</a>
|
||||
<a class="login-mock" href="/login">Sign in</a>
|
||||
{/* Mobile disclosure menu — native <details>/<summary>, no JS; desktop hides it via CSS */}
|
||||
<details class="menu">
|
||||
<summary><span class="menu-icon" aria-hidden="true"></span>Menu</summary>
|
||||
<nav aria-label="Main navigation">
|
||||
{links.map((l) => l.ext ? (
|
||||
<a class="external" href={l.href} target="_blank" rel="noopener">{l.label}</a>
|
||||
) : (
|
||||
<a href={l.href} aria-current={isActive(l.href) ? 'page' : undefined}>{l.label}</a>
|
||||
))}
|
||||
<a href="/search">Search</a>
|
||||
<a href="/admin">✎ Editor</a>
|
||||
</nav>
|
||||
</details>
|
||||
</div>
|
||||
</header>
|
||||
<main id="main">
|
||||
@@ -50,11 +68,12 @@ const links = [
|
||||
{/* Bottom menu required by SPEC §3.3.1: disclaimers, privacy, contact, settings, search.
|
||||
Placeholder links = <a> without href (valid HTML placeholder-link semantics). */}
|
||||
<div class="container inner">
|
||||
<span class="flash" aria-hidden="true"></span>
|
||||
<a>Disclaimer</a>
|
||||
<a>Privacy</a>
|
||||
<a>Contact</a>
|
||||
<a>Site settings</a>
|
||||
<a>Search</a>
|
||||
<a href="/search">Search</a>
|
||||
<span class="note">Science Portal Core demo (Cyfronet / SUSS-PORT team). Sample content
|
||||
imported from ctao.org; footer links are placeholders. Statically generated from
|
||||
Markdown (git-based CMS).</span>
|
||||
|
||||
@@ -10,8 +10,25 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>CTAO — Content Editor</title>
|
||||
<meta name="theme-color" content="#00004A" />
|
||||
<link rel="icon" href="/brand/CTAO_Logo_positive.svg" type="image/svg+xml" />
|
||||
<style>
|
||||
/* Wrapper-page styling only — never injected into the Sveltia app.
|
||||
Galaxy-Blue backdrop makes the load-in feel intentional. */
|
||||
body { margin: 0; background: #00004a; }
|
||||
noscript p {
|
||||
color: #fff; font-family: Inter, Arial, system-ui, sans-serif;
|
||||
text-align: center; margin: 40vh 24px 0; line-height: 1.6;
|
||||
}
|
||||
noscript a { color: #00e4d8; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<noscript><p>The CTAO content editor requires JavaScript.<br />Please enable it, or return to the <a href="/">Science Portal</a>.</p></noscript>
|
||||
<script is:inline src="https://unpkg.com/@sveltia/cms/dist/sveltia-cms.js"></script>
|
||||
<script is:inline>
|
||||
// Officially supported API: article previews rendered with portal-like styles.
|
||||
window.CMS?.registerPreviewStyle?.('/admin/preview.css');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+64
-10
@@ -1,17 +1,71 @@
|
||||
---
|
||||
import Base from '../layouts/Base.astro';
|
||||
|
||||
// Sample data, clearly labelled as mock in the UI. Per SPEC §3.3.2 the dashboard
|
||||
// aggregates: proposal statuses, scheduling info, data products, help-desk tickets.
|
||||
const proposals = [
|
||||
{ id: 'PROP-2026-0142', title: 'AGN flare monitoring with LST sub-array', status: 'In review', kind: 'review' },
|
||||
{ id: 'PROP-2026-0089', title: 'Galactic PeVatron survey follow-up', status: 'Accepted', kind: 'ok' },
|
||||
{ id: 'PROP-2025-0231', title: 'GRB afterglow ToO programme', status: 'Draft', kind: 'draft' },
|
||||
];
|
||||
const products = [
|
||||
{ id: 'OBS-88213', desc: 'DL3 event lists — PKS 2155-304 (12 runs)', date: '2026-07-18' },
|
||||
{ id: 'OBS-87990', desc: 'DL3 event lists — Crab Nebula calibration', date: '2026-07-02' },
|
||||
];
|
||||
const fmt = (iso) => new Intl.DateTimeFormat('en-GB', { dateStyle: 'medium' }).format(new Date(iso));
|
||||
const tickets = [
|
||||
{ id: '#4821', subject: 'Proposal form: co-I affiliation not saved', status: 'Answered', kind: 'ok' },
|
||||
{ id: '#4711', subject: 'Data download quota question', status: 'Open', kind: 'review' },
|
||||
];
|
||||
---
|
||||
<Base title="CTAO Portal — Dashboard" description="Panel z danymi z innych serwisów">
|
||||
<Base title="CTAO Science Portal — Dashboard" description="User dashboard (mock)">
|
||||
<section class="hero-band">
|
||||
<div class="container hero">
|
||||
<div class="eyebrow">User area</div>
|
||||
<h1>Dashboard</h1>
|
||||
<p>Your proposals, data products and support tickets in one place</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="container page">
|
||||
<span class="badge-mock">Makieta — dane przykładowe</span>
|
||||
<div class="placeholder">
|
||||
<div>
|
||||
<div class="big">📡</div>
|
||||
<h1>Dashboard użytkownika</h1>
|
||||
<p>Wg specyfikacji SUSS: status wniosków, harmonogramy, produkty danych i zgłoszenia
|
||||
helpdesku użytkownika — zbierane z pozostałych serwisów.<br/>
|
||||
To część <strong>dynamiczna</strong> (nasz zakres, Release 5), utrzymywana osobno od
|
||||
statycznych treści. Wszystko na tej stronie jest makietą.</p>
|
||||
<span class="badge-mock">Mock — sample data, no live services connected</span>
|
||||
<div class="dash-grid">
|
||||
<div class="panel">
|
||||
<h2 class="panel-title">My proposals</h2>
|
||||
<ul class="rows">
|
||||
{proposals.map((p) => (
|
||||
<li>
|
||||
<span class="row-id">{p.id}</span>
|
||||
<span class="row-main">{p.title}</span>
|
||||
<span class={`pill pill--${p.kind}`}>{p.status}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="panel">
|
||||
<h2 class="panel-title">Recent data products</h2>
|
||||
<ul class="rows">
|
||||
{products.map((d) => (
|
||||
<li>
|
||||
<span class="row-id">{d.id}</span>
|
||||
<span class="row-main">{d.desc}</span>
|
||||
<time class="row-date" datetime={d.date}>{fmt(d.date)}</time>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<p class="notice">Search and download in the <a href="https://padc-ctao-data-explorer.obspm.fr/" target="_blank" rel="noopener" class="external">Data Explorer</a> (external, LUX team).</p>
|
||||
</div>
|
||||
<div class="panel">
|
||||
<h2 class="panel-title">Help-desk tickets</h2>
|
||||
<ul class="rows">
|
||||
{tickets.map((t) => (
|
||||
<li>
|
||||
<span class="row-id">{t.id}</span>
|
||||
<span class="row-main">{t.subject}</span>
|
||||
<span class={`pill pill--${t.kind}`}>{t.status}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
+52
-11
@@ -2,29 +2,70 @@
|
||||
import { getCollection } from 'astro:content';
|
||||
import Base from '../layouts/Base.astro';
|
||||
|
||||
const posts = (await getCollection('news', ({ data }) => !data.draft)).sort(
|
||||
(a, b) => b.data.date.valueOf() - a.data.date.valueOf(),
|
||||
);
|
||||
const posts = (await getCollection('news', ({ data }) => !data.draft))
|
||||
.sort((a, b) => b.data.date.valueOf() - a.data.date.valueOf())
|
||||
.slice(0, 3);
|
||||
const fmt = (d) => new Intl.DateTimeFormat('en-GB', { dateStyle: 'long' }).format(d);
|
||||
const iso = (d) => d.toISOString().slice(0, 10);
|
||||
// Services per the Science Portal spec; unbuilt ones are labelled, never faked.
|
||||
const services = [
|
||||
{ title: 'Proposals', href: '/proposals', desc: 'Submit observation proposals, including ToO / MWL requests.', badge: 'mock' },
|
||||
{ title: 'Data Explorer', href: 'https://padc-ctao-data-explorer.obspm.fr/', ext: true, desc: 'Search and download CTAO science data products.', badge: 'ext' },
|
||||
{ title: 'Dashboard', href: '/dashboard', desc: 'Your proposals, data products and support tickets in one place.', badge: 'mock' },
|
||||
{ title: 'User Support', href: '/support', desc: 'Help desk, FAQ, user forum and mailing lists.', badge: 'mock' },
|
||||
{ title: 'Software', desc: 'Science analysis tools and pipelines.', badge: 'tbd' },
|
||||
{ title: 'Documentation', desc: 'User guides and technical documentation.', badge: 'tbd' },
|
||||
];
|
||||
---
|
||||
<Base title="CTAO Science Portal — News" description="News and announcements of the CTAO">
|
||||
<Base title="CTAO Science Portal" description="News, observation proposals, data and user services of the Cherenkov Telescope Array Observatory">
|
||||
<section class="hero-band">
|
||||
<span class="flash" aria-hidden="true"></span>
|
||||
<div class="container hero">
|
||||
<div class="eyebrow">Cherenkov Telescope Array Observatory</div>
|
||||
<h1>News & Announcements</h1>
|
||||
<h1>CTAO Science Portal</h1>
|
||||
<p>Exploring the Universe at the Highest Energies</p>
|
||||
<form class="hero-search" role="search" action="/search" method="get">
|
||||
<label class="sr-only" for="home-q">Search news</label>
|
||||
<input id="home-q" name="q" type="search" placeholder="Search news and announcements…" autocomplete="off" />
|
||||
<button class="btn" type="submit">Search</button>
|
||||
{/* Live suggestions (plain links, Tab-accessible); Enter still submits to /search */}
|
||||
<ul class="suggest" id="home-suggest"></ul>
|
||||
<p class="sr-only" id="home-suggest-status" role="status" aria-live="polite"></p>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="container" aria-label="News list">
|
||||
<script is:inline src="/search-client.js"></script>
|
||||
<script is:inline>
|
||||
newsSearch({ input: 'home-q', list: 'home-suggest', status: 'home-suggest-status', limit: 6, unit: 'suggestion(s)' });
|
||||
</script>
|
||||
|
||||
<section class="container page">
|
||||
<div class="section-head"><h2>Services</h2></div>
|
||||
<div class="grid">
|
||||
{posts.map((post, i) => (
|
||||
<article class={i === 0 ? 'card card--featured' : 'card'}>
|
||||
{post.data.cover && (
|
||||
<img class="cover" src={encodeURI(post.data.cover)} alt="" loading={i === 0 ? 'eager' : 'lazy'} />
|
||||
)}
|
||||
{services.map((s) => (
|
||||
<article class="card tile">
|
||||
<h3>{s.href
|
||||
? (s.ext
|
||||
? <a class="external" href={s.href} target="_blank" rel="noopener">{s.title}</a>
|
||||
: <a href={s.href}>{s.title}</a>)
|
||||
: s.title}</h3>
|
||||
<p class="desc">{s.desc}</p>
|
||||
{s.badge === 'mock' && <span class="badge-mock">Mock</span>}
|
||||
{s.badge === 'ext' && <span class="badge-ext">External — LUX team</span>}
|
||||
{s.badge === 'tbd' && <span class="badge-ext">Planned (TBD)</span>}
|
||||
</article>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<div class="section-head">
|
||||
<h2>Latest news</h2>
|
||||
<a class="more" href="/news">All news →</a>
|
||||
</div>
|
||||
<div class="grid">
|
||||
{posts.map((post) => (
|
||||
<article class="card">
|
||||
{post.data.cover && <img class="cover" src={encodeURI(post.data.cover)} alt="" loading="lazy" />}
|
||||
<div class="body">
|
||||
<span class="cat">{post.data.category}</span>
|
||||
<h3><a href={`/news/${post.id}`}>{post.data.title}</a></h3>
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
---
|
||||
import Base from '../layouts/Base.astro';
|
||||
---
|
||||
<Base title="CTAO Science Portal — Sign in" description="Sign in via CTAO AAI (mock)">
|
||||
<section class="auth-band">
|
||||
<div class="auth-card">
|
||||
<img class="auth-logo" src="/brand/CTAO_Logo_positive.svg" alt="CTAO" />
|
||||
<span class="badge-mock">Mock — AAI integration pending</span>
|
||||
<h1>Sign in</h1>
|
||||
<p class="muted">One account for all CTAO services. Authentication is handled by the
|
||||
central <strong>CTAO AAI</strong> (single sign-on) — the portal never sees your password.</p>
|
||||
<button class="btn btn-wide" type="button">Continue with your CTAO account</button>
|
||||
<p class="notice">No account yet? <a>Register via CTAO AAI</a> · Access level follows
|
||||
your CTAO role and permissions.</p>
|
||||
</div>
|
||||
</section>
|
||||
</Base>
|
||||
@@ -8,15 +8,26 @@ export async function getStaticPaths() {
|
||||
}
|
||||
|
||||
const { post } = Astro.props;
|
||||
const { Content } = await render(post);
|
||||
const fmt = (d) => new Intl.DateTimeFormat('pl-PL', { dateStyle: 'long' }).format(d);
|
||||
const { Content, headings } = await render(post);
|
||||
const toc = headings.filter((h) => h.depth === 2 || h.depth === 3);
|
||||
const fmt = (d) => new Intl.DateTimeFormat('en-GB', { dateStyle: 'long' }).format(d);
|
||||
---
|
||||
<Base title={`${post.data.title} — CTAO`} description={post.data.description}>
|
||||
<article class="container article">
|
||||
<a class="back" href="/">← Wszystkie newsy</a>
|
||||
<a class="back" href="/news">← All news</a>
|
||||
<h1>{post.data.title}</h1>
|
||||
<div class="meta">{post.data.category} · {post.data.author} · {fmt(post.data.date)}</div>
|
||||
{post.data.cover && <img class="cover" src={post.data.cover} alt="" />}
|
||||
<div class="meta">{post.data.category} · {post.data.author} · <time datetime={post.data.date.toISOString().slice(0, 10)}>{fmt(post.data.date)}</time></div>
|
||||
{post.data.cover && <img class="cover" src={encodeURI(post.data.cover)} alt="" />}
|
||||
{toc.length >= 3 && (
|
||||
<nav class="toc" aria-label="On this page">
|
||||
<strong>On this page</strong>
|
||||
<ol>
|
||||
{toc.map((h) => (
|
||||
<li class={h.depth === 3 ? 'd3' : undefined}><a href={`#${h.slug}`}>{h.text}</a></li>
|
||||
))}
|
||||
</ol>
|
||||
</nav>
|
||||
)}
|
||||
<div class="prose">
|
||||
<Content />
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
---
|
||||
import { getCollection } from 'astro:content';
|
||||
import Base from '../../layouts/Base.astro';
|
||||
|
||||
const posts = (await getCollection('news', ({ data }) => !data.draft)).sort(
|
||||
(a, b) => b.data.date.valueOf() - a.data.date.valueOf(),
|
||||
);
|
||||
const fmt = (d) => new Intl.DateTimeFormat('en-GB', { dateStyle: 'long' }).format(d);
|
||||
const iso = (d) => d.toISOString().slice(0, 10);
|
||||
---
|
||||
<Base title="CTAO Science Portal — News" description="News and announcements of the CTAO">
|
||||
<section class="hero-band">
|
||||
<span class="flash" aria-hidden="true"></span>
|
||||
<div class="container hero">
|
||||
<div class="eyebrow">Cherenkov Telescope Array Observatory</div>
|
||||
<h1>News & Announcements</h1>
|
||||
<p>Exploring the Universe at the Highest Energies</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="container page">
|
||||
<h2 class="sr-only">All news</h2>
|
||||
<div class="grid">
|
||||
{posts.map((post, i) => (
|
||||
<article class={i === 0 ? 'card card--featured' : 'card'}>
|
||||
{post.data.cover && (
|
||||
<img class="cover" src={encodeURI(post.data.cover)} alt="" loading={i === 0 ? 'eager' : 'lazy'} />
|
||||
)}
|
||||
<div class="body">
|
||||
<span class="cat">{post.data.category}</span>
|
||||
<h3><a href={`/news/${post.id}`}>{post.data.title}</a></h3>
|
||||
<p class="desc">{post.data.description}</p>
|
||||
<div class="meta">{post.data.author} · <time datetime={iso(post.data.date)}>{fmt(post.data.date)}</time></div>
|
||||
</div>
|
||||
</article>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
</Base>
|
||||
@@ -0,0 +1,49 @@
|
||||
---
|
||||
import Base from '../layouts/Base.astro';
|
||||
---
|
||||
<Base title="CTAO Science Portal — Proposals" description="Observation proposal submission (mock)">
|
||||
<section class="hero-band">
|
||||
<div class="container hero">
|
||||
<div class="eyebrow">Proposal Submission</div>
|
||||
<h1>Observation proposals</h1>
|
||||
<p>Submitting observation proposals, including ToO / MWL requests</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="container page">
|
||||
<span class="badge-mock">Mock — no submission logic</span>
|
||||
<span class="badge-ext">Target: Proposal Handling System (APC team) integrated into the portal</span>
|
||||
<div class="panel panel--narrow">
|
||||
<div class="form-row">
|
||||
<label for="f-title">Proposal title</label>
|
||||
<input id="f-title" type="text" placeholder="e.g. AGN flare observations" />
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="f-scope">Telescope</label>
|
||||
<select id="f-scope">
|
||||
<option>LST-1 (Large-Sized Telescope)</option>
|
||||
<option>MST (Medium-Sized Telescope)</option>
|
||||
<option>SST (Small-Sized Telescope)</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="f-energy">Energy range</label>
|
||||
<select id="f-energy">
|
||||
<option>20 GeV – 3 TeV</option>
|
||||
<option>80 GeV – 50 TeV</option>
|
||||
<option>1 TeV – 300 TeV</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="f-hours">Requested time (hours)</label>
|
||||
<input id="f-hours" type="number" min="1" placeholder="e.g. 25" />
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="f-just">Scientific justification</label>
|
||||
<textarea id="f-just" rows="4" placeholder="Brief description of the observation goal..."></textarea>
|
||||
</div>
|
||||
<button class="btn" type="button">Submit proposal</button>
|
||||
<p class="notice">Demonstration mock — the form does not store any data.</p>
|
||||
</div>
|
||||
</section>
|
||||
</Base>
|
||||
@@ -0,0 +1,33 @@
|
||||
---
|
||||
import Base from '../layouts/Base.astro';
|
||||
---
|
||||
<Base title="CTAO Science Portal — Search" description="Search CTAO news and announcements">
|
||||
<section class="hero-band">
|
||||
<div class="container hero">
|
||||
<div class="eyebrow">Science Portal</div>
|
||||
<h1>Search</h1>
|
||||
<p>Find news and announcements</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="container page">
|
||||
<form class="search-form" role="search" action="/search" method="get">
|
||||
<label class="sr-only" for="q">Search news</label>
|
||||
<input id="q" name="q" type="search" placeholder="e.g. LST camera, Council, data…" autocomplete="off" />
|
||||
<button class="btn" type="submit">Search</button>
|
||||
</form>
|
||||
<p class="notice" id="search-status" role="status" aria-live="polite">Type to search the news archive.</p>
|
||||
<ol class="search-results" id="search-results"></ol>
|
||||
<noscript><p class="notice">Search requires JavaScript. Browse all news on the <a href="/news">news page</a>.</p></noscript>
|
||||
</section>
|
||||
</Base>
|
||||
|
||||
<script is:inline src="/search-client.js"></script>
|
||||
<script is:inline>
|
||||
const run = newsSearch({ input: 'q', list: 'search-results', status: 'search-status', limit: 20, hint: 'Type at least 2 characters.' });
|
||||
// Support /search?q=… deep links (hero search form, footer, bookmarks)
|
||||
const q0 = new URLSearchParams(location.search).get('q');
|
||||
const q = document.getElementById('q');
|
||||
if (q0) { q.value = q0; run(); }
|
||||
q.focus();
|
||||
</script>
|
||||
@@ -0,0 +1,19 @@
|
||||
// Build-time search index (Astro static endpoint — no server, no dependencies).
|
||||
// Kept lean: title/description/category/date/slug only (~60 KB for 200+ articles).
|
||||
import { getCollection } from 'astro:content';
|
||||
|
||||
export async function GET() {
|
||||
const posts = await getCollection('news', ({ data }) => !data.draft);
|
||||
const index = posts
|
||||
.sort((a, b) => b.data.date.valueOf() - a.data.date.valueOf())
|
||||
.map((p) => ({
|
||||
slug: p.id,
|
||||
title: p.data.title,
|
||||
description: p.data.description,
|
||||
category: p.data.category,
|
||||
date: p.data.date.toISOString().slice(0, 10),
|
||||
}));
|
||||
return new Response(JSON.stringify(index), {
|
||||
headers: { 'Content-Type': 'application/json; charset=utf-8' },
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
---
|
||||
import Base from '../layouts/Base.astro';
|
||||
// User support channels per the Science Portal spec — all mock for now.
|
||||
const channels = [
|
||||
{ title: 'Help desk', desc: 'Submit and track support tickets.' },
|
||||
{ title: 'FAQ & troubleshooting', desc: 'Common questions and step-by-step guides.' },
|
||||
{ title: 'User forum', desc: 'Discuss with the CTAO user community.' },
|
||||
{ title: 'Mailing lists', desc: 'Announcements and topical mailing lists.' },
|
||||
];
|
||||
---
|
||||
<Base title="CTAO Science Portal — Support" description="User support: help desk, FAQ, forum, mailing lists (mock)">
|
||||
<section class="hero-band">
|
||||
<div class="container hero">
|
||||
<div class="eyebrow">User services</div>
|
||||
<h1>User Support</h1>
|
||||
<p>Help desk, FAQ / troubleshooting guide, user forum and mailing lists</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="container page">
|
||||
<span class="badge-mock">Mock — support services not yet connected</span>
|
||||
<div class="grid">
|
||||
{channels.map((c) => (
|
||||
<article class="card tile">
|
||||
<h3>{c.title}</h3>
|
||||
<p class="desc">{c.desc}</p>
|
||||
<span class="badge-mock">Mock</span>
|
||||
</article>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
</Base>
|
||||
@@ -1,49 +0,0 @@
|
||||
---
|
||||
import Base from '../layouts/Base.astro';
|
||||
---
|
||||
<Base title="CTAO Portal — Teleskopy" description="Rejestracja i rezerwacja czasu obserwacyjnego">
|
||||
<section class="hero-band">
|
||||
<div class="container hero">
|
||||
<div class="eyebrow">Proposal Submission</div>
|
||||
<h1>Zgłoszenie obserwacji</h1>
|
||||
<p>Składanie wniosków obserwacyjnych (w tym ToO / MWL)</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="container page">
|
||||
<span class="badge-mock">Makieta — bez logiki wysyłki</span>
|
||||
<span class="badge-ext">Docelowo: Proposal Handling System (team APC) zintegrowany w portalu</span>
|
||||
<div class="panel" style="max-width:640px">
|
||||
<div class="form-row">
|
||||
<label for="f-title">Tytuł propozycji</label>
|
||||
<input id="f-title" type="text" placeholder="np. Obserwacja rozbłysków AGN" />
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="f-scope">Teleskop</label>
|
||||
<select id="f-scope">
|
||||
<option>LST-1 (Large Size Telescope)</option>
|
||||
<option>MST (Medium Size Telescope)</option>
|
||||
<option>SST (Small Size Telescope)</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="f-energy">Zakres energii</label>
|
||||
<select id="f-energy">
|
||||
<option>20 GeV – 3 TeV</option>
|
||||
<option>80 GeV – 50 TeV</option>
|
||||
<option>1 TeV – 300 TeV</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="f-hours">Wymagany czas (godziny)</label>
|
||||
<input id="f-hours" type="number" min="1" placeholder="np. 25" />
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="f-just">Uzasadnienie naukowe</label>
|
||||
<textarea id="f-just" rows="4" placeholder="Krótki opis celu obserwacji..."></textarea>
|
||||
</div>
|
||||
<button class="btn" type="button">Wyślij zgłoszenie</button>
|
||||
<p class="notice">Makieta demonstracyjna — formularz nie zapisuje danych.</p>
|
||||
</div>
|
||||
</section>
|
||||
</Base>
|
||||
+188
-21
@@ -25,10 +25,21 @@
|
||||
--radius: 16px;
|
||||
--radius-pill: 999px;
|
||||
--maxw: 1120px;
|
||||
/* Spacing scale (4px base) — use these instead of ad-hoc paddings */
|
||||
--space-s: 12px;
|
||||
--space-m: 20px;
|
||||
--space-l: 32px;
|
||||
--space-xl: 56px;
|
||||
}
|
||||
|
||||
/* Screen-reader-only utility (visually hidden, still announced) */
|
||||
.sr-only {
|
||||
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
|
||||
overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
html { -webkit-text-size-adjust: 100%; }
|
||||
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; /* sticky header + anchor jumps */ }
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: var(--font-body);
|
||||
@@ -42,6 +53,8 @@ h1, h2 { font-family: var(--font-display); letter-spacing: -0.01em; }
|
||||
|
||||
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
|
||||
a:hover { color: var(--indigo); }
|
||||
/* Placeholder links (<a> without href) don't pretend to be clickable */
|
||||
a:not([href]) { text-decoration: none; cursor: default; }
|
||||
img { max-width: 100%; height: auto; display: block; }
|
||||
|
||||
/* Visible keyboard focus everywhere (WCAG 2.4.7) */
|
||||
@@ -68,8 +81,39 @@ img { max-width: 100%; height: auto; display: block; }
|
||||
}
|
||||
|
||||
/* Header — Galaxy Blue band, reverse (white) logo per BRAND B.1.2 */
|
||||
.site-header { background: var(--galaxy); }
|
||||
.site-header { background: var(--galaxy); position: sticky; top: 0; z-index: 10; }
|
||||
.nav { display: flex; align-items: center; gap: 4px; min-height: 64px; flex-wrap: wrap; }
|
||||
.nav > nav { display: flex; align-items: center; gap: 4px; }
|
||||
/* Mobile: disclosure menu (native <details>/<summary> — CSS-only, keyboard accessible) */
|
||||
.menu { display: none; }
|
||||
@media (max-width: 720px) {
|
||||
.nav { flex-wrap: nowrap; }
|
||||
.nav > nav, .nav > a.navlink { display: none; }
|
||||
.menu { display: block; }
|
||||
.menu summary {
|
||||
display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
|
||||
padding: 0 10px; margin-left: 6px; color: #fff; font-weight: 500;
|
||||
cursor: pointer; list-style: none; white-space: nowrap;
|
||||
}
|
||||
.menu summary::-webkit-details-marker { display: none; }
|
||||
.menu .menu-icon::before { content: "☰"; }
|
||||
.menu[open] .menu-icon::before { content: "✕"; }
|
||||
.menu nav {
|
||||
position: absolute; left: 0; right: 0; top: 100%;
|
||||
display: flex; flex-direction: column; padding: 6px 20px 14px;
|
||||
background: var(--galaxy); border-top: 1px solid rgba(255, 255, 255, 0.15);
|
||||
box-shadow: 0 20px 32px rgba(0, 0, 74, 0.35);
|
||||
}
|
||||
.menu nav a {
|
||||
display: flex; align-items: center; min-height: 44px;
|
||||
color: #fff; font-weight: 500; text-decoration: none;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
|
||||
}
|
||||
.menu nav a:last-child { border-bottom: 0; }
|
||||
.menu nav a[aria-current="page"] { color: var(--cherenkov); }
|
||||
}
|
||||
/* Very narrow screens: drop the decorative sub-brand so logo/Sign in/Menu always fit */
|
||||
@media (max-width: 460px) { .brand .brand-sub { display: none; } }
|
||||
.brand { display: flex; align-items: center; gap: 10px; margin-right: 10px; }
|
||||
.brand img { height: 26px; width: auto; }
|
||||
.brand .brand-sub {
|
||||
@@ -88,10 +132,16 @@ img { max-width: 100%; height: auto; display: block; }
|
||||
padding: 7px 16px; margin-left: 6px;
|
||||
}
|
||||
.nav a.navlink--edit:hover { border-color: var(--cherenkov); color: var(--cherenkov); }
|
||||
/* AAI login placeholder — visibly disabled (mock) */
|
||||
/* AAI sign-in entry — leads to the /login mock page */
|
||||
.nav .login-mock {
|
||||
color: var(--galaxy); background: var(--cherenkov); font: inherit; font-weight: 600;
|
||||
border: 0; border-radius: var(--radius-pill); padding: 8px 18px; margin-left: 6px; cursor: not-allowed;
|
||||
border: 0; border-radius: var(--radius-pill); padding: 8px 18px; margin-left: 6px;
|
||||
text-decoration: none; white-space: nowrap;
|
||||
}
|
||||
.nav .login-mock:hover { filter: brightness(0.92); color: var(--galaxy); }
|
||||
/* Tap targets ≥44px (WCAG 2.5.5); inline-flex keeps the active bottom border */
|
||||
.nav a.navlink, .nav .login-mock, .nav a.navlink--edit {
|
||||
display: inline-flex; align-items: center; min-height: 44px;
|
||||
}
|
||||
.external::after { content: " ↗"; font-size: 0.85em; }
|
||||
|
||||
@@ -101,7 +151,7 @@ img { max-width: 100%; height: auto; display: block; }
|
||||
radial-gradient(700px 340px at 85% 115%, rgba(0,228,216,0.28), transparent 65%),
|
||||
radial-gradient(500px 260px at -5% -40%, rgba(0,0,156,0.55), transparent 60%),
|
||||
var(--galaxy);
|
||||
color: #fff; padding: 56px 0 48px; position: relative; overflow: hidden;
|
||||
color: #fff; padding: var(--space-xl) 0; position: relative; overflow: hidden;
|
||||
}
|
||||
.hero-band .flash { position: absolute; right: 8%; top: 22%; width: 22px; height: 22px; }
|
||||
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); margin: 0 0 10px; line-height: 1.12; font-weight: 700; }
|
||||
@@ -111,11 +161,44 @@ img { max-width: 100%; height: auto; display: block; }
|
||||
letter-spacing: 0.14em; font-size: 0.72rem; margin-bottom: 8px;
|
||||
}
|
||||
|
||||
/* Section headings on light background */
|
||||
.section-title { color: var(--galaxy); font-size: 1.4rem; margin: 36px 0 4px; }
|
||||
/* Hero search — real GET form to /search (works without JS) */
|
||||
.hero-search, .search-form { display: flex; gap: 8px; max-width: 560px; }
|
||||
.hero-search { margin-top: var(--space-m); }
|
||||
.hero-search input, .search-form input {
|
||||
flex: 1; min-width: 0; font: inherit; color: var(--text);
|
||||
background: #fff; border: 1px solid var(--border);
|
||||
border-radius: var(--radius-pill); padding: 11px 18px;
|
||||
}
|
||||
.hero-search input:focus, .search-form input:focus { border-color: var(--azure); }
|
||||
/* Live suggestions under the hero search — plain links, Tab-accessible */
|
||||
.hero-search { position: relative; }
|
||||
.suggest {
|
||||
position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 5;
|
||||
list-style: none; margin: 0; padding: 6px; text-align: left;
|
||||
background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
|
||||
box-shadow: 0 16px 40px rgba(0, 0, 74, 0.25);
|
||||
}
|
||||
.suggest:empty { display: none; }
|
||||
.suggest li { display: flex; align-items: center; gap: var(--space-s); padding: 0 12px; border-radius: calc(var(--radius) - 8px); }
|
||||
.suggest li:hover { background: var(--moon); }
|
||||
.suggest a {
|
||||
flex: 1; display: flex; align-items: center; min-height: 44px;
|
||||
color: var(--text); font-weight: 500; font-size: 0.94rem; text-decoration: none;
|
||||
}
|
||||
.suggest small { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
|
||||
|
||||
/* News grid */
|
||||
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; padding: 28px 0 64px; }
|
||||
/* Section header row (h2 + optional "All news →" link) */
|
||||
.section-head {
|
||||
display: flex; align-items: baseline; justify-content: space-between;
|
||||
gap: var(--space-s); margin: var(--space-l) 0 var(--space-m);
|
||||
}
|
||||
.section-head:first-child { margin-top: 0; }
|
||||
.section-head h2 { margin: 0; color: var(--galaxy); font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
|
||||
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }
|
||||
.more:hover { text-decoration: underline; }
|
||||
|
||||
/* Responsive 1/2/3-column grid (news cards + service tiles) */
|
||||
.grid { display: grid; gap: var(--space-m); grid-template-columns: 1fr; }
|
||||
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
|
||||
@media (min-width: 940px) { .grid { grid-template-columns: repeat(3, 1fr); } }
|
||||
|
||||
@@ -125,11 +208,18 @@ img { max-width: 100%; height: auto; display: block; }
|
||||
position: relative; background: #fff; border: 1px solid var(--border);
|
||||
border-radius: var(--radius); overflow: hidden;
|
||||
display: flex; flex-direction: column;
|
||||
transition: border-color 0.15s ease;
|
||||
transition: border-color 0.15s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
.card:hover, .card:focus-within {
|
||||
border-color: var(--azure);
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 74, 0.06), 0 12px 28px rgba(0, 0, 74, 0.10);
|
||||
}
|
||||
/* Visible focus ring for the whole-card stretched link (WCAG 2.4.7) */
|
||||
.card:focus-within {
|
||||
box-shadow: 0 0 0 2px var(--azure), 0 2px 6px rgba(0, 0, 74, 0.06), 0 12px 28px rgba(0, 0, 74, 0.10);
|
||||
}
|
||||
.card:hover, .card:focus-within { border-color: var(--azure); }
|
||||
.card .cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
|
||||
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
|
||||
.card .body { padding: var(--space-m); display: flex; flex-direction: column; gap: 10px; flex: 1; }
|
||||
.card .cat {
|
||||
align-self: flex-start; font-size: 0.72rem; text-transform: uppercase;
|
||||
letter-spacing: 0.08em; font-weight: 600;
|
||||
@@ -141,8 +231,9 @@ img { max-width: 100%; height: auto; display: block; }
|
||||
display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
|
||||
}
|
||||
.card h3 a { color: var(--galaxy); text-decoration: none; }
|
||||
/* Stretched link: the title's tap target covers the whole card (still one tab stop) */
|
||||
.card h3 a::after { content: ""; position: absolute; inset: 0; }
|
||||
/* Stretched link: the title's tap target covers the whole card (still one tab stop);
|
||||
::before keeps ::after free for the external-link arrow */
|
||||
.card h3 a::before { content: ""; position: absolute; inset: 0; }
|
||||
.card h3 a:hover { color: var(--link); }
|
||||
.card .desc {
|
||||
margin: 0; color: var(--muted); font-size: 0.94rem;
|
||||
@@ -157,9 +248,20 @@ img { max-width: 100%; height: auto; display: block; }
|
||||
.card--featured h3 { font-size: 1.6rem; font-family: var(--font-display); -webkit-line-clamp: 3; }
|
||||
.card--featured .desc { -webkit-line-clamp: 3; }
|
||||
}
|
||||
/* Hover lift + smooth anchor scroll — motion only when the user allows it */
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
html { scroll-behavior: smooth; }
|
||||
.card { transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease; }
|
||||
.card:hover { transform: translateY(-2px); }
|
||||
}
|
||||
|
||||
/* Service tiles — card tokens, text-first */
|
||||
.tile { padding: var(--space-m); gap: 8px; }
|
||||
.tile h3 { margin: 0; }
|
||||
.tile .badge-mock, .tile .badge-ext { margin: auto 0 0; align-self: flex-start; }
|
||||
|
||||
/* Article */
|
||||
.article { padding: 40px 0 72px; max-width: 720px; }
|
||||
.article { padding: 40px 0 72px; max-width: 70ch; }
|
||||
.article .back { color: var(--muted); font-size: 0.9rem; }
|
||||
.article h1 {
|
||||
color: var(--galaxy); font-size: clamp(1.7rem, 4.5vw, 2.4rem);
|
||||
@@ -167,7 +269,22 @@ img { max-width: 100%; height: auto; display: block; }
|
||||
}
|
||||
.article .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
|
||||
.article .cover { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 28px; }
|
||||
.prose h2 { color: var(--galaxy); margin: 34px 0 10px; font-size: 1.45rem; }
|
||||
/* Article TOC — boxed "On this page" list (rendered only when ≥3 h2/h3) */
|
||||
.toc {
|
||||
background: var(--moon); border: 1px solid var(--border); border-radius: var(--radius);
|
||||
padding: var(--space-s) var(--space-m); margin-bottom: var(--space-l); font-size: 0.92rem;
|
||||
}
|
||||
.toc strong {
|
||||
display: block; font-size: 0.72rem; text-transform: uppercase;
|
||||
letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px;
|
||||
}
|
||||
.toc ol { list-style: none; margin: 0; padding: 0; }
|
||||
.toc li { margin: 6px 0; }
|
||||
.toc .d3 { padding-left: var(--space-s); }
|
||||
.toc a { text-decoration: none; }
|
||||
.toc a:hover { text-decoration: underline; }
|
||||
|
||||
.prose h2 { color: var(--galaxy); margin: 34px 0 10px; font-size: clamp(1.25rem, 2.6vw, 1.45rem); }
|
||||
.prose h3 { color: var(--galaxy); margin: 26px 0 8px; font-size: 1.15rem; }
|
||||
.prose p { margin: 0 0 16px; }
|
||||
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
|
||||
@@ -186,7 +303,8 @@ img { max-width: 100%; height: auto; display: block; }
|
||||
|
||||
/* Generic page / mockup */
|
||||
.page { padding: 40px 0 72px; }
|
||||
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
|
||||
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-m); }
|
||||
.panel--narrow { max-width: 640px; }
|
||||
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
|
||||
.form-row label { font-size: 0.88rem; font-weight: 500; }
|
||||
.form-row input, .form-row select, .form-row textarea {
|
||||
@@ -202,19 +320,68 @@ img { max-width: 100%; height: auto; display: block; }
|
||||
.btn:hover { filter: brightness(0.92); }
|
||||
.notice { color: var(--muted); font-size: 0.85rem; margin-top: 10px; }
|
||||
|
||||
/* Search results (list built by the inline script on /search) */
|
||||
.search-results { list-style: none; margin: var(--space-m) 0 0; padding: 0; max-width: 720px; }
|
||||
.search-results li {
|
||||
display: flex; justify-content: space-between; align-items: baseline;
|
||||
gap: var(--space-s); padding: 12px 0; border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.search-results a { text-decoration: none; font-weight: 500; }
|
||||
.search-results a:hover { text-decoration: underline; }
|
||||
.search-results small { color: var(--muted); white-space: nowrap; }
|
||||
|
||||
/* Mock/status badges — every mock must be labelled (REQUIREMENTS.md §5) */
|
||||
.badge-mock, .badge-ext {
|
||||
display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
|
||||
text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
|
||||
}
|
||||
.badge-mock { color: #7a3d00; background: #fff3e0; border: 1px solid #f0cf9b; }
|
||||
.badge-ext { color: var(--galaxy); background: var(--moon); border: 1px solid var(--border); }
|
||||
.badge-ext { color: var(--galaxy); background: var(--moon); border: 1px solid var(--border); text-transform: none; letter-spacing: 0; }
|
||||
|
||||
.placeholder { display: grid; place-items: center; min-height: 32vh; text-align: center; color: var(--muted); }
|
||||
.placeholder .big { font-size: 3rem; margin-bottom: 8px; }
|
||||
/* Dashboard mock — aggregation panels with status pills */
|
||||
.dash-grid { display: grid; gap: var(--space-m); grid-template-columns: 1fr; margin-top: var(--space-s); }
|
||||
@media (min-width: 940px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }
|
||||
.panel-title { color: var(--galaxy); font-size: 1.1rem; margin: 0 0 var(--space-s); font-family: var(--font-body), sans-serif; font-weight: 600; }
|
||||
.rows { list-style: none; margin: 0; padding: 0; }
|
||||
.rows li {
|
||||
display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
|
||||
padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem;
|
||||
}
|
||||
.rows li:last-child { border-bottom: 0; }
|
||||
.row-id { color: var(--muted); font-size: 0.8rem; min-width: 7.5em; }
|
||||
.row-main { flex: 1; min-width: 12em; }
|
||||
.row-date { color: var(--muted); font-size: 0.8rem; }
|
||||
.pill {
|
||||
font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
|
||||
padding: 3px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border);
|
||||
}
|
||||
.pill--ok { color: var(--galaxy); background: var(--tint-cherenkov); }
|
||||
.pill--review { color: var(--galaxy); background: var(--moon); }
|
||||
.pill--draft { color: var(--muted); background: #fff; }
|
||||
|
||||
/* Auth (login mock) — nebula backdrop + floating card, modern auth pattern */
|
||||
.auth-band {
|
||||
min-height: calc(100dvh - 64px);
|
||||
display: grid; place-items: center; padding: var(--space-xl) 20px;
|
||||
background:
|
||||
radial-gradient(900px 500px at 80% 110%, rgba(0,228,216,0.35), transparent 60%),
|
||||
radial-gradient(700px 420px at 10% -20%, rgba(0,0,156,0.6), transparent 60%),
|
||||
var(--galaxy);
|
||||
}
|
||||
.auth-card {
|
||||
background: #fff; border-radius: calc(var(--radius) + 8px);
|
||||
padding: 40px 36px; max-width: 440px; width: 100%;
|
||||
box-shadow: 0 24px 64px rgba(0, 0, 74, 0.35);
|
||||
}
|
||||
.auth-logo { height: 24px; width: auto; margin-bottom: var(--space-m); }
|
||||
.auth-card h1 { color: var(--galaxy); margin: 6px 0 10px; font-size: 1.8rem; }
|
||||
.auth-card .muted { color: var(--muted); font-size: 0.95rem; }
|
||||
.btn-wide { width: 100%; margin-top: var(--space-s); }
|
||||
|
||||
/* Footer — bottom menu per SPEC §3.3.1: disclaimers, privacy, contact, settings, search */
|
||||
.footer { background: var(--galaxy); color: var(--on-galaxy-muted); font-size: 0.85rem; margin-top: 24px; }
|
||||
.footer .inner { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: 26px 0; }
|
||||
.footer .inner { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: var(--space-l) 0; }
|
||||
.footer .flash { width: 10px; height: 10px; }
|
||||
.footer a { color: #fff; }
|
||||
.footer a:not([href]) { color: var(--on-galaxy-muted); }
|
||||
.footer .note { width: 100%; margin-top: 6px; color: var(--on-galaxy-muted); }
|
||||
|
||||
Reference in New Issue
Block a user