Skip to content

Commit

Permalink
chore: use absolute link to prevent potential bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Sep 3, 2024
1 parent 66acae8 commit 23b5ef3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/routes/(workspace)/github/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@

{#await Promise.resolve() then}
<Intro title="Open a GitHub Repository">
<a href="github/promplate/pyth-on-line" in:fly|global={{ duration: 500, x: -5, delay: 100 }}>
<a href="/github/promplate/pyth-on-line" in:fly|global={{ duration: 500, x: -5, delay: 100 }}>
<div class="i-tabler-inner-shadow-bottom-right text-lg text-rose" />
This site
</a>
<a href="github/promplate/core" in:fly|global={{ duration: 500, x: 5, delay: 150 }}>
<a href="/github/promplate/core" in:fly|global={{ duration: 500, x: 5, delay: 150 }}>
<div class="i-tabler-building-lighthouse text-lg text-yellow" />
Our prompt engineering framework
</a>
<a href="github/pyodide/micropip" in:fly|global={{ duration: 500, x: -5, delay: 300 }}>
<a href="/github/pyodide/micropip" in:fly|global={{ duration: 500, x: -5, delay: 300 }}>
<div class="i-tabler-brand-python text-lg text-blue" />
Pyodide's Micropip
</a>
<a href="github/{input}" class="w-fit" class:cursor-text={!valid} on:click={e => !valid && ([e.preventDefault(), ref.focus()])} in:fly|global={{ duration: 500, x: 5, delay: 500 }}>
<a href="/github/{input}" class="w-fit" class:cursor-text={!valid} on:click={e => !valid && ([e.preventDefault(), ref.focus()])} in:fly|global={{ duration: 500, x: 5, delay: 500 }}>
<div class="i-tabler-brand-github text-lg text-gray-4 transition-color" class:text-gray-1={valid} />
<input class="w-50 bg-transparent outline-none placeholder:(text-inherit op-30)" class:animate-pulse={!input} placeholder="Your GitHub repo" bind:this={ref} on:click|preventDefault={() => { ref.focus(); }} bind:value={input} on:keydown={e => e.key === "Enter" && ref.parentElement?.click()}>
</a>
Expand Down

0 comments on commit 23b5ef3

Please sign in to comment.