Files
portal/src/pages/admin/index.astro
T

35 lines
1.5 KiB
Plaintext

---
// Editor entry point (/admin). Sveltia CMS loads its config from ./config.yml
// (served statically from public/admin/config.yml). The external bundle is kept
// inline so Astro doesn't try to process/bundle it. CTAO branding on the sign-in
// screen comes from the officially supported `logo_url` config option.
---
<!doctype html>
<html lang="en">
<head>
<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>