Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/frontend/src
diff options
context:
space:
mode:
authorAlfaPC112026-07-26 14:13:18 +0300
committerAlfaPC112026-07-26 14:13:18 +0300
commit9b1ba1cce933118035130ac024f8ed8febfa4130 (patch)
tree8b56d14d81d1f15d840e6ba435d60219ae91437e /frontend/src
parent6a7e55102dbb5df1f445b03dacf4175cfa7bd571 (diff)
downloadwebsite-9b1ba1cce933118035130ac024f8ed8febfa4130.tar.gz
move the repository preview to an edge-routed static page
Diffstat (limited to 'frontend/src')
-rw-r--r--frontend/src/layouts/SiteLayout.astro1
-rw-r--r--frontend/src/pages/index.astro52
-rw-r--r--frontend/src/pages/repo/index.astro62
-rw-r--r--frontend/src/styles/global.css8
4 files changed, 62 insertions, 61 deletions
diff --git a/frontend/src/layouts/SiteLayout.astro b/frontend/src/layouts/SiteLayout.astro
index b1f232e..27e0e41 100644
--- a/frontend/src/layouts/SiteLayout.astro
+++ b/frontend/src/layouts/SiteLayout.astro
@@ -22,7 +22,6 @@ const { title, description } = Astro.props;
<link rel="icon" type="image/png" href="/xsharp-logo.png" />
<link rel="preload" href="/fonts/AlfaSlabOne-Regular.woff2" as="font" type="font/woff2" crossorigin />
<link rel="preload" href="/fonts/FiraSans-Regular.woff2" as="font" type="font/woff2" crossorigin />
- <script src="/host-router.js" is:inline></script>
<title>{title}</title>
</head>
<body>
diff --git a/frontend/src/pages/index.astro b/frontend/src/pages/index.astro
index ae1e545..045101e 100644
--- a/frontend/src/pages/index.astro
+++ b/frontend/src/pages/index.astro
@@ -48,57 +48,6 @@ const capabilities = [
title="X# programming language"
description="The official home of X#, a native programming language with inspectable compiler layers."
>
- <section class="repository-surface">
- <div class="ambient" aria-hidden="true">
- <span class="ambient-orb ambient-orb-a"></span>
- <span class="ambient-orb ambient-orb-b"></span>
- </div>
- <header class="repository-header glass-panel">
- <a class="brand" href="https://xsharp-lang.xyz/" aria-label="X# home">
- <img class="brand-mark" src="/xsharp-logo.webp" width="38" height="38" alt="" />
- <span class="brand-name">X#</span>
- <span class="brand-channel">package registry</span>
- </a>
- <a class="repository-source" href="https://github.com/xss-lang" target="_blank" rel="noreferrer">
- <Icon name="github" />
- GitHub
- </a>
- </header>
- <main class="repository-main">
- <div class="repository-status glass-panel">
- <span class="repository-status-icon"><Icon name="modules" /></span>
- Registry online
- </div>
- <p class="eyebrow">X# package registry</p>
- <h1>No packages<br /><em>published yet.</em></h1>
- <p class="repository-lede">
- The registry is ready for the next stage of X# development, but it does not contain any
- <code>.xspkg.tar.zst</code> packages yet.
- </p>
- <div class="repository-actions">
- <a class="button primary" href="https://xsharp-lang.xyz/">
- Visit X# language
- <Icon name="arrow" />
- </a>
- <a class="button secondary glass-panel" href="https://github.com/xss-lang" target="_blank" rel="noreferrer">
- Follow development
- </a>
- </div>
- <div class="repository-note glass-panel">
- <Icon name="terminal" />
- <div>
- <strong>Publishing is not available yet</strong>
- <span>The future registry will use the native X# package format and verified package metadata.</span>
- </div>
- </div>
- </main>
- <footer class="repository-footer">
- <span>repo.xsharp-lang.xyz</span>
- <span>Package registry preview</span>
- </footer>
- </section>
-
- <div class="main-surface">
<div class="ambient" aria-hidden="true">
<span class="ambient-orb ambient-orb-a"></span>
<span class="ambient-orb ambient-orb-b"></span>
@@ -309,5 +258,4 @@ fn main() -> Long {
<span>Native language · visible compiler</span>
<a href="https://github.com/xss-lang/website" target="_blank" rel="noreferrer">Website source · AGPL-3.0-or-later</a>
</footer>
- </div>
</SiteLayout>
diff --git a/frontend/src/pages/repo/index.astro b/frontend/src/pages/repo/index.astro
new file mode 100644
index 0000000..634243c
--- /dev/null
+++ b/frontend/src/pages/repo/index.astro
@@ -0,0 +1,62 @@
+---
+// SPDX-FileCopyrightText: 2026 Leitwolf <xs-lang.chess031@slmails.com>
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import Icon from "../../components/Icon.astro";
+import SiteLayout from "../../layouts/SiteLayout.astro";
+---
+
+<SiteLayout
+ title="X# Package Registry"
+ description="The X# package registry is online, but no xspkg packages have been published yet."
+>
+ <section class="repository-surface">
+ <div class="ambient" aria-hidden="true">
+ <span class="ambient-orb ambient-orb-a"></span>
+ <span class="ambient-orb ambient-orb-b"></span>
+ </div>
+ <header class="repository-header glass-panel">
+ <a class="brand" href="https://xsharp-lang.xyz/" aria-label="X# home">
+ <img class="brand-mark" src="/xsharp-logo.webp" width="38" height="38" alt="" />
+ <span class="brand-name">X#</span>
+ <span class="brand-channel">package registry</span>
+ </a>
+ <a class="repository-source" href="https://github.com/xss-lang" target="_blank" rel="noreferrer">
+ <Icon name="github" />
+ GitHub
+ </a>
+ </header>
+ <main class="repository-main">
+ <div class="repository-status glass-panel">
+ <span class="repository-status-icon"><Icon name="modules" /></span>
+ Registry online
+ </div>
+ <p class="eyebrow">X# package registry</p>
+ <h1>No packages<br /><em>published yet.</em></h1>
+ <p class="repository-lede">
+ The registry is ready for the next stage of X# development, but it does not contain any
+ <code>.xspkg.tar.zst</code> packages yet.
+ </p>
+ <div class="repository-actions">
+ <a class="button primary" href="https://xsharp-lang.xyz/">
+ Visit X# language
+ <Icon name="arrow" />
+ </a>
+ <a class="button secondary glass-panel" href="https://github.com/xss-lang" target="_blank" rel="noreferrer">
+ Follow development
+ </a>
+ </div>
+ <div class="repository-note glass-panel">
+ <Icon name="terminal" />
+ <div>
+ <strong>Publishing is not available yet</strong>
+ <span>The future registry will use the native X# package format and verified package metadata.</span>
+ </div>
+ </div>
+ </main>
+ <footer class="repository-footer">
+ <span>repo.xsharp-lang.xyz</span>
+ <span>Package registry preview</span>
+ </footer>
+ </section>
+</SiteLayout>
diff --git a/frontend/src/styles/global.css b/frontend/src/styles/global.css
index dbfbc79..1542c5a 100644
--- a/frontend/src/styles/global.css
+++ b/frontend/src/styles/global.css
@@ -78,14 +78,6 @@ body {
}
.repository-surface {
- display: none;
-}
-
-html[data-surface="repository"] .main-surface {
- display: none;
-}
-
-html[data-surface="repository"] .repository-surface {
display: flex;
min-height: 100vh;
flex-direction: column;