Skip to content

Commit 2b5e5fb

Browse files
authored
feat: add airlock button (#63)
1 parent 7be2cbe commit 2b5e5fb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lark-ui/src/routes/admin/+page.svelte

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,6 +1833,14 @@ function normalizeUrl(url: string | null): string | null {
18331833
>
18341834
💻 View Repository
18351835
</a>
1836+
<a
1837+
href={`https://airlock.hackclub.com/?r=${selectedSubmission.repoUrl || selectedSubmission.project.repoUrl}`}
1838+
target="_blank"
1839+
rel="noreferrer"
1840+
class="px-4 py-2 rounded-lg bg-orange-700 hover:bg-orange-600 border border-orange-500 text-white text-sm transition-colors"
1841+
>
1842+
Open in Airlock
1843+
</a>
18361844
{/if}
18371845
{#if selectedSubmission.screenshotUrl || selectedSubmission.project.screenshotUrl}
18381846
<a

0 commit comments

Comments
 (0)