Skip to content

Commit c42f390

Browse files
feat: add header to tracker page
1 parent 97e123d commit c42f390

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/routes/tracker/[org]/[repo]/+page.svelte

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script lang="ts">
2+
import { page } from "$app/state";
23
import { Transparent } from "svelte-exmarkdown";
34
import { Separator } from "$lib/components/ui/separator";
45
import GHBadge from "$lib/components/GHBadge.svelte";
@@ -92,6 +93,21 @@
9293
</a>
9394
{/snippet}
9495

96+
<div class="my-8">
97+
<h1 class="text-3xl font-semibold text-shadow-sm md:text-5xl">
98+
<a
99+
href="https://github.com/{page.params.org}/{page.params.repo}"
100+
target="_blank"
101+
class="group *:underline-offset-4 after:ml-0.5 after:inline-block after:-translate-x-2 after:font-sans after:text-2xl after:opacity-0 after:transition after:content-['↗'] hover:after:translate-x-0 hover:after:opacity-100"
102+
>
103+
<span class="text-primary group-hover:underline">{page.params.org}</span><span
104+
class="text-foreground no-underline">/</span
105+
><wbr /><span class="text-primary group-hover:underline">{page.params.repo}</span>
106+
</a>
107+
</h1>
108+
<h3 class="text-xl text-muted-foreground font-display text-shadow-sm/5">Repository tracker</h3>
109+
</div>
110+
95111
{#if data.prs.length}
96112
{@render list(
97113
"Pull requests",

0 commit comments

Comments
 (0)