From 64cd7fc83d43a0ad7db1b51214291736bd245b44 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Fri, 28 Jun 2024 20:31:02 -0400 Subject: Guestbook overhaul; Comments; New post; Updated packages --- src/components/GitHubProjects.svelte | 81 ++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 src/components/GitHubProjects.svelte (limited to 'src/components/GitHubProjects.svelte') diff --git a/src/components/GitHubProjects.svelte b/src/components/GitHubProjects.svelte new file mode 100644 index 0000000..2753b89 --- /dev/null +++ b/src/components/GitHubProjects.svelte @@ -0,0 +1,81 @@ + + +
+ {#if isLoading} +
Loading...
+ {:else} + {#if error} +
{error}
+ {:else} +
+ {#each repos.slice((currentPage - 1) * reposPerPage, currentPage * reposPerPage) as repo (repo.id)} +
+

{repo.name}

+

{repo.description || 'No description provided'}

+ +
+ {/each} +
+ {#if currentPage > 1} + + {/if} + {#if currentPage < Math.ceil(repos.length / reposPerPage)} + + {/if} + {/if} + {/if} +
-- cgit v1.2.3