Dough Git

clove/allInOne

web/src/routes/user/dash/+page.svelte

back to web/src/routes/user/dash

<!-- src/routes/user/dash/+page.svelte
     Copyright (c) 2026 Clove Nytrix Doughmination Twilight
     Licensed under the DASL-1.2 Licence.
     See LICENCE.md in the project root for full licence information.
-->

<script lang="ts">
  import IcApi from "~icons/ic/outline-api";
  import IcBarChart from "~icons/ic/outline-bar-chart";
  import IcFavorite from "~icons/ic/outline-favorite";
  import Protected from "#lib/components/Protected.svelte";
  import PageHead from "#lib/components/PageHead.svelte";
</script>

<svelte:head>
  <title>User dashboard · Plural System</title>
</svelte:head>

<Protected>
  <div class="page">
    <PageHead
      title="User dashboard"
      back={{
        href: "/",
        label: "Back to home",
      }}
    />

    <div class="tiles">
      <a class="tile" href="/user/docs">
        <span class="tile-icon"><IcApi width="22" height="22" /></span>
        <h2>API docs</h2>
        <p>Every endpoint on this site</p>
      </a>
      <a class="tile" href="/user/metrics">
        <span class="tile-icon"><IcBarChart width="22" height="22" /></span>
        <h2>Metrics</h2>
        <p>Fronting and switching statistics</p>
      </a>
      <a class="tile" href="/relationships">
        <span class="tile-icon"><IcFavorite width="22" height="22" /></span>
        <h2>Relationship map</h2>
        <p>Who is dating who</p>
      </a>
    </div>
  </div>
</Protected>