CTAO portal demo (Astro + Sveltia)
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
:root {
|
||||
--bg: #0b1020;
|
||||
--surface: #131a2e;
|
||||
--surface-2: #1a2340;
|
||||
--text: #e8ecf6;
|
||||
--muted: #9aa6c4;
|
||||
--brand: #5b8cff;
|
||||
--brand-2: #7ce0d3;
|
||||
--border: #263257;
|
||||
--radius: 14px;
|
||||
--maxw: 1080px;
|
||||
--font: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
html { -webkit-text-size-adjust: 100%; }
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: var(--font);
|
||||
background:
|
||||
radial-gradient(1200px 600px at 80% -10%, rgba(91,140,255,0.18), transparent 60%),
|
||||
radial-gradient(900px 500px at 0% 0%, rgba(124,224,211,0.10), transparent 55%),
|
||||
var(--bg);
|
||||
color: var(--text);
|
||||
line-height: 1.6;
|
||||
min-height: 100dvh;
|
||||
}
|
||||
|
||||
a { color: var(--brand); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
img { max-width: 100%; height: auto; display: block; }
|
||||
|
||||
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
|
||||
|
||||
/* Header / nav */
|
||||
.site-header {
|
||||
position: sticky; top: 0; z-index: 10;
|
||||
backdrop-filter: blur(10px);
|
||||
background: rgba(11,16,32,0.72);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.nav { display: flex; align-items: center; gap: 18px; height: 62px; }
|
||||
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.3px; }
|
||||
.brand .dot { width: 12px; height: 12px; border-radius: 50%;
|
||||
background: radial-gradient(circle at 30% 30%, var(--brand-2), var(--brand)); box-shadow: 0 0 16px var(--brand); }
|
||||
.nav .spacer { flex: 1; }
|
||||
.nav a.navlink { color: var(--muted); font-weight: 500; font-size: 0.95rem; padding: 6px 2px; }
|
||||
.nav a.navlink:hover, .nav a.navlink[aria-current="page"] { color: var(--text); text-decoration: none; }
|
||||
|
||||
/* Hero */
|
||||
.hero { padding: 56px 0 28px; }
|
||||
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 0 0 10px; line-height: 1.1; }
|
||||
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: 0; }
|
||||
.eyebrow { color: var(--brand-2); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 0.72rem; }
|
||||
|
||||
/* News grid */
|
||||
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; padding: 24px 0 64px; }
|
||||
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
|
||||
@media (min-width: 940px) { .grid { grid-template-columns: repeat(3, 1fr); } }
|
||||
|
||||
.card {
|
||||
background: linear-gradient(180deg, var(--surface), var(--surface-2));
|
||||
border: 1px solid var(--border); border-radius: var(--radius);
|
||||
padding: 22px; display: flex; flex-direction: column; gap: 10px;
|
||||
transition: transform 0.15s ease, border-color 0.15s ease;
|
||||
}
|
||||
.card:hover { transform: translateY(-3px); border-color: var(--brand); }
|
||||
.card .cat { align-self: flex-start; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px;
|
||||
color: var(--brand-2); background: rgba(124,224,211,0.10); border: 1px solid rgba(124,224,211,0.25);
|
||||
padding: 3px 9px; border-radius: 999px; }
|
||||
.card h3 { margin: 2px 0 0; font-size: 1.12rem; line-height: 1.3; }
|
||||
.card h3 a { color: var(--text); }
|
||||
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
|
||||
.card .meta { margin-top: auto; color: var(--muted); font-size: 0.8rem; }
|
||||
|
||||
/* Article */
|
||||
.article { padding: 40px 0 72px; max-width: 760px; }
|
||||
.article .back { color: var(--muted); font-size: 0.9rem; }
|
||||
.article h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin: 14px 0 8px; line-height: 1.15; }
|
||||
.article .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
|
||||
.prose h2 { margin: 34px 0 10px; font-size: 1.5rem; }
|
||||
.prose h3 { margin: 26px 0 8px; font-size: 1.18rem; }
|
||||
.prose p { margin: 0 0 16px; }
|
||||
.prose ul { margin: 0 0 16px; padding-left: 22px; }
|
||||
.prose li { margin: 6px 0; }
|
||||
.prose blockquote { margin: 22px 0; padding: 12px 20px; border-left: 3px solid var(--brand);
|
||||
background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); }
|
||||
|
||||
/* Generic page / mockup */
|
||||
.page { padding: 40px 0 72px; }
|
||||
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
|
||||
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
|
||||
.form-row label { font-size: 0.85rem; color: var(--muted); }
|
||||
.form-row input, .form-row select, .form-row textarea {
|
||||
background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text);
|
||||
padding: 11px 12px; font: inherit; }
|
||||
.btn { background: linear-gradient(180deg, var(--brand), #3f6fe0); color: white; border: 0;
|
||||
padding: 11px 18px; border-radius: 10px; font-weight: 600; cursor: pointer; }
|
||||
.notice { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }
|
||||
|
||||
.placeholder { display: grid; place-items: center; min-height: 40vh; text-align: center; color: var(--muted); }
|
||||
.placeholder .big { font-size: 3rem; margin-bottom: 8px; }
|
||||
|
||||
.footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; padding: 26px 0; }
|
||||
.cms-hint { background: rgba(91,140,255,0.10); border: 1px solid rgba(91,140,255,0.3);
|
||||
border-radius: var(--radius); padding: 14px 16px; font-size: 0.9rem; margin: 0 0 24px; }
|
||||
Reference in New Issue
Block a user