#5 Started on creating page to handle API requests to https://git.luke-else.co.uk

This commit is contained in:
2025-02-06 10:55:26 +00:00
parent 8ab101727e
commit 712d7857db
7 changed files with 78 additions and 7 deletions

View File

@@ -1,3 +1,20 @@
<h1>Repos</h1>
<p>Stay tuned! This is still in development.</p>
<p>Come back later to find out what projects I'm currently working on!</p>
<script lang="ts">
import { onMount } from "svelte";
import { repos, loadRepos } from "$lib/stores";
onMount(loadRepos);
</script>
<h1>My Projects</h1>
{#if $repos.length > 0}
<ul>
{#each $repos as repo}
<li>
<a href="{repo.html_url}" target="_blank">{repo.name}</a> - {repo.description}
</li>
{/each}
</ul>
{:else}
<p>Loading repositories...</p>
{/if}