refactor(ui): move panel titles and sub titles outside panels
This commit is contained in:
parent
0c7f22988b
commit
83f791c00a
2 changed files with 55 additions and 51 deletions
|
|
@ -29,6 +29,7 @@
|
||||||
--color-input: oklch(100% 0 0);
|
--color-input: oklch(100% 0 0);
|
||||||
--color-ring: oklch(45.2% 0.115 235);
|
--color-ring: oklch(45.2% 0.115 235);
|
||||||
--color-ring-muted: oklch(45.2% 0.115 235 / 12%);
|
--color-ring-muted: oklch(45.2% 0.115 235 / 12%);
|
||||||
|
--shadow-card: 0 12px 32px oklch(20.8% 0.04 255 / 6%);
|
||||||
|
|
||||||
--color-success: oklch(47.8% 0.13 150);
|
--color-success: oklch(47.8% 0.13 150);
|
||||||
--color-success-foreground: oklch(47.8% 0.13 150);
|
--color-success-foreground: oklch(47.8% 0.13 150);
|
||||||
|
|
@ -81,6 +82,7 @@
|
||||||
--color-input: oklch(22.8% 0.035 255);
|
--color-input: oklch(22.8% 0.035 255);
|
||||||
--color-ring: oklch(72% 0.125 235);
|
--color-ring: oklch(72% 0.125 235);
|
||||||
--color-ring-muted: oklch(72% 0.125 235 / 20%);
|
--color-ring-muted: oklch(72% 0.125 235 / 20%);
|
||||||
|
--shadow-card: 0 18px 44px oklch(0% 0 0 / 22%);
|
||||||
|
|
||||||
--color-success: oklch(75% 0.12 150);
|
--color-success: oklch(75% 0.12 150);
|
||||||
--color-success-foreground: oklch(82% 0.12 150);
|
--color-success-foreground: oklch(82% 0.12 150);
|
||||||
|
|
@ -170,6 +172,7 @@
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
@apply rounded-lg border border-border bg-card text-card-foreground;
|
@apply rounded-lg border border-border bg-card text-card-foreground;
|
||||||
|
box-shadow: var(--shadow-card);
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-header {
|
.card-header {
|
||||||
|
|
|
||||||
|
|
@ -26,65 +26,66 @@
|
||||||
<p class="mt-2 text-xs text-muted-foreground">Viewer activity will appear here.</p>
|
<p class="mt-2 text-xs text-muted-foreground">Viewer activity will appear here.</p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section class="card">
|
<div class="space-y-3">
|
||||||
<div class="card-header">
|
<div>
|
||||||
<h2 class="text-base font-semibold text-foreground">Forgejo access token</h2>
|
<h2 class="text-base font-semibold text-foreground">Forgejo access token</h2>
|
||||||
<p class="mt-2 text-sm text-muted-foreground">
|
<p class="mt-2 text-sm text-muted-foreground">
|
||||||
Register a <code class="rounded-sm bg-secondary px-1.5 py-0.5 text-primary">read:repository</code>-scoped PAT
|
Register a <code class="rounded-sm bg-secondary px-1.5 py-0.5 text-primary">read:repository</code>-scoped PAT
|
||||||
to enable share link viewing.
|
to enable share link viewing.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<form id="pat-form"
|
<section class="card">
|
||||||
method="post"
|
<form id="pat-form"
|
||||||
action="/dashboard/pat"
|
method="post"
|
||||||
novalidate
|
action="/dashboard/pat"
|
||||||
class="px-4 py-4">
|
novalidate
|
||||||
<div class="grid gap-4 sm:grid-cols-[1fr_auto] sm:items-end">
|
class="px-4 py-4">
|
||||||
<div>
|
<div class="grid gap-4 sm:grid-cols-[1fr_auto] sm:items-end">
|
||||||
<label for="pat" class="section-header-subtle">Forgejo access token</label>
|
<div>
|
||||||
<input type="text"
|
<label for="pat" class="section-header-subtle">Forgejo access token</label>
|
||||||
id="pat"
|
<input type="text"
|
||||||
name="pat"
|
id="pat"
|
||||||
class="block w-full mt-2 input-mono"
|
name="pat"
|
||||||
placeholder="ad8j3..."
|
class="block w-full mt-2 input-mono"
|
||||||
aria-describedby="pat-error"
|
placeholder="ad8j3..."
|
||||||
aria-invalid="false"
|
aria-describedby="pat-error"
|
||||||
required />
|
aria-invalid="false"
|
||||||
|
required />
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="btn btn-primary">Register</button>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-primary">Register</button>
|
<div class="mt-2">
|
||||||
</div>
|
<p id="pat-error" class="input-error hidden">A Forgejo token is required.</p>
|
||||||
<div class="mt-2">
|
</div>
|
||||||
<p id="pat-error" class="input-error hidden">A Forgejo token is required.</p>
|
</form>
|
||||||
</div>
|
</section>
|
||||||
</form>
|
</div>
|
||||||
</section>
|
<div class="space-y-3">
|
||||||
<section class="card">
|
<div>
|
||||||
<div class="flex items-center justify-between card-header">
|
<h2 class="text-base font-semibold text-foreground">Share links</h2>
|
||||||
<div>
|
<p class="mt-2 text-sm text-muted-foreground">Repository snapshots published from this account.</p>
|
||||||
<h2 class="text-base font-semibold text-foreground">Share links</h2>
|
|
||||||
<p class="mt-1 text-sm text-muted-foreground">Repository snapshots published from this account.</p>
|
|
||||||
</div>
|
|
||||||
<span class="rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-muted-foreground">Empty</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="overflow-x-auto">
|
<section class="card">
|
||||||
<table class="w-full min-w-[720px] text-left text-sm">
|
<div class="overflow-x-auto">
|
||||||
<thead class="bg-muted text-xs font-semibold uppercase tracking-[0.05em] text-muted-foreground">
|
<table class="w-full min-w-[720px] text-left text-sm">
|
||||||
<tr>
|
<thead class="bg-muted text-xs font-semibold uppercase tracking-[0.05em] text-muted-foreground">
|
||||||
<th class="px-4 py-3">Repository</th>
|
<tr>
|
||||||
<th class="px-4 py-3">Commit</th>
|
<th class="px-4 py-3">Repository</th>
|
||||||
<th class="px-4 py-3">Status</th>
|
<th class="px-4 py-3">Commit</th>
|
||||||
<th class="px-4 py-3">Views</th>
|
<th class="px-4 py-3">Status</th>
|
||||||
<th class="px-4 py-3">Expires</th>
|
<th class="px-4 py-3">Views</th>
|
||||||
</tr>
|
<th class="px-4 py-3">Expires</th>
|
||||||
</thead>
|
</tr>
|
||||||
<tbody class="divide-y divide-border-subtle">
|
</thead>
|
||||||
<tr class="text-muted-foreground">
|
<tbody class="divide-y divide-border-subtle">
|
||||||
<td class="px-4 py-5" colspan="5">You have not created any share links yet.</td>
|
<tr class="text-muted-foreground text-center">
|
||||||
</tr>
|
<td class="px-4 py-5" colspan="5">You have not created any share links yet.</td>
|
||||||
</tbody>
|
</tr>
|
||||||
</table>
|
</tbody>
|
||||||
</div>
|
</table>
|
||||||
</section>
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
(() => {
|
(() => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue