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

summaryrefslogtreecommitdiffhomepage
path: root/frontend/src/components/RepositoryHeader.astro
diff options
context:
space:
mode:
authorAlfaPC112026-07-26 21:01:15 +0300
committerAlfaPC112026-07-26 21:01:15 +0300
commitd4198c795c1038b61140d21ac500db26af573e82 (patch)
tree8e01b50f09f7658279667f1c6720857a0d56da72 /frontend/src/components/RepositoryHeader.astro
parentd35c08a3ecf20de76ee4ee8f68066eafa934887c (diff)
downloadwebsite-d4198c795c1038b61140d21ac500db26af573e82.tar.gz
add registry identity dashboard and transactional email
Diffstat (limited to 'frontend/src/components/RepositoryHeader.astro')
-rw-r--r--frontend/src/components/RepositoryHeader.astro37
1 files changed, 37 insertions, 0 deletions
diff --git a/frontend/src/components/RepositoryHeader.astro b/frontend/src/components/RepositoryHeader.astro
new file mode 100644
index 0000000..b157269
--- /dev/null
+++ b/frontend/src/components/RepositoryHeader.astro
@@ -0,0 +1,37 @@
+---
+// SPDX-FileCopyrightText: 2026 Leitwolf <xs-lang.chess031@slmails.com>
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import Icon from "./Icon.astro";
+
+interface Props {
+ authenticated?: boolean;
+}
+
+const { authenticated = false } = Astro.props;
+---
+
+<header class="repository-header glass-panel">
+ <a class="brand" href="https://repo.xsharp-lang.xyz/" aria-label="X# package registry 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>
+ <nav class="repository-navigation" aria-label="Registry navigation">
+ <a href="https://repo.xsharp-lang.xyz/">Packages</a>
+ {
+ authenticated ? (
+ <a href="https://repo.xsharp-lang.xyz/dashboard/">Dashboard</a>
+ ) : (
+ <>
+ <a href="https://repo.xsharp-lang.xyz/login/">Log in</a>
+ <a class="repository-register" href="https://repo.xsharp-lang.xyz/register/">Register</a>
+ </>
+ )
+ }
+ <a class="repository-source" href="https://github.com/xss-lang" target="_blank" rel="noreferrer">
+ <Icon name="github" />
+ <span>GitHub</span>
+ </a>
+ </nav>
+</header>