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

summaryrefslogtreecommitdiffhomepage
path: root/frontend/src/components/RepositoryHeader.astro
blob: b1572692ad7c215db1324dc5b248b6f8e4dd28ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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>