clove/pkviewer
web/src/routes/+page.svelte
<!-- web/src/routes/+page.svelte -->
<script lang="ts">
import { site } from "$lib/config.ts";
import Icon from "$lib/components/Icon.svelte";
import Logo from "$lib/components/Logo.svelte";
import Meta from "$lib/components/Meta.svelte";
import SiteDisclosure from "$lib/components/SiteDisclosure.svelte";
// Permanently logged out (O3): the sign-in link is unconditional
</script>
<Meta title="pkviewer" path="/" />
<main class="page stack">
<header class="stack-tight">
<div class="site-brand">
<Logo />
<h1>pkviewer</h1>
</div>
<p class="prose">
PluralKit handles the identity and the data. pkviewer handles how that
identity is presented on the web.
</p>
</header>
<section class="stack-tight prose">
<h2>What it does</h2>
<p>
Every PluralKit system gets a public page, and every member can have
one too. Systems that sign in can choose a readable address and
customise how their pages look.
</p>
<p class="muted">
Viewing is open to everyone. An account is only needed to manage and
customise a system.
</p>
</section>
<section class="stack-tight prose">
<h2>Addresses</h2>
<p>
A system is always reachable by its PluralKit ID, and additionally by
its chosen name once it has one. Both work; the readable one is
canonical.
</p>
<ul class="meta-list" style="flex-direction: column; align-items: flex-start">
<li><code>/s/abcdef</code> <span class="muted">— PluralKit ID, always works</span></li>
<li><code>/s/your-system</code> <span class="muted">— chosen address</span></li>
<li><code>/s/your-system/a-member</code> <span class="muted">— a member</span></li>
</ul>
</section>
<p>
<a href="/login">
Sign in with Discord <Icon name="arrow-right" />
</a>
</p>
<p>
<a href={site.docsUrl} rel="noopener">
Read the documentation <Icon name="box-arrow-up-right" />
</a>
</p>
<SiteDisclosure />
</main>