From 7205caf6afb58bee230a04a5830842ea6e5b10ff Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 7 Jul 2024 12:09:08 -0400 Subject: Added videos page --- src/components/GitHubProjects.svelte | 3 +- src/components/Loader.svelte | 30 ++++++++ src/components/Navbar.svelte | 1 + src/components/YouTubeVideos.svelte | 133 +++++++++++++++++++++++++++++++++++ src/pages/videos.astro | 10 +++ 5 files changed, 176 insertions(+), 1 deletion(-) create mode 100644 src/components/Loader.svelte create mode 100644 src/components/YouTubeVideos.svelte create mode 100644 src/pages/videos.astro diff --git a/src/components/GitHubProjects.svelte b/src/components/GitHubProjects.svelte index 2753b89..9d9d569 100644 --- a/src/components/GitHubProjects.svelte +++ b/src/components/GitHubProjects.svelte @@ -1,5 +1,6 @@ + + + +
+
+ {#if isLoading && videos.length === 0} + + {:else} + {#if error} +
{error}
+ {:else} + +
+ {/if} + {/if} + {#if isLoading && videos.length > 0} + + {/if} +
+
diff --git a/src/pages/videos.astro b/src/pages/videos.astro new file mode 100644 index 0000000..c276fe7 --- /dev/null +++ b/src/pages/videos.astro @@ -0,0 +1,10 @@ +--- +import Page from "../layouts/Page.astro"; +import "../styles/cards.css"; +import YouTubeVideos from "../components/YouTubeVideos.svelte"; +--- + +
+ +
+
-- cgit v1.2.3