From 4c674edd9842e6ae2cf1d997104baffef2fb9341 Mon Sep 17 00:00:00 2001 From: matthieu42morin Date: Mon, 29 Apr 2024 05:04:30 +0200 Subject: [PATCH] add blog extras and actions --- src/lib/components/actions/reply.svelte | 3 + src/lib/components/actions/share.svelte | 12 ++++ src/lib/components/actions/translate.svelte | 0 src/lib/components/extra/Scene.svelte | 64 ++++++++++++++++++ src/lib/components/extra/github.svelte | 75 +++++++++++++++++++++ src/lib/components/extra/projects.svelte | 44 ++++++++++++ 6 files changed, 198 insertions(+) create mode 100644 src/lib/components/actions/reply.svelte create mode 100644 src/lib/components/actions/share.svelte create mode 100644 src/lib/components/actions/translate.svelte create mode 100644 src/lib/components/extra/Scene.svelte create mode 100644 src/lib/components/extra/github.svelte create mode 100644 src/lib/components/extra/projects.svelte diff --git a/src/lib/components/actions/reply.svelte b/src/lib/components/actions/reply.svelte new file mode 100644 index 0000000..3303b25 --- /dev/null +++ b/src/lib/components/actions/reply.svelte @@ -0,0 +1,3 @@ + + + diff --git a/src/lib/components/actions/share.svelte b/src/lib/components/actions/share.svelte new file mode 100644 index 0000000..a01c41c --- /dev/null +++ b/src/lib/components/actions/share.svelte @@ -0,0 +1,12 @@ + + + + + diff --git a/src/lib/components/actions/translate.svelte b/src/lib/components/actions/translate.svelte new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/components/extra/Scene.svelte b/src/lib/components/extra/Scene.svelte new file mode 100644 index 0000000..f2b049e --- /dev/null +++ b/src/lib/components/extra/Scene.svelte @@ -0,0 +1,64 @@ + + + + + + + + + + + + + {#if Array.isArray(contributions) && contributions.length > 0} + {#each contributions as row, i} + {#each row as contribution, j} + {#if contribution !== null} + {@const z = normalize(contribution.level)} + + + + + + + {/if} + {/each} + {/each} + {/if} + diff --git a/src/lib/components/extra/github.svelte b/src/lib/components/extra/github.svelte new file mode 100644 index 0000000..f483f9f --- /dev/null +++ b/src/lib/components/extra/github.svelte @@ -0,0 +1,75 @@ + + +
+
+ {#if info} +
+
+ +

+ {info.description} +
+ {info.homepage} +

+
+ owner_avatar +
+
+ + {#if info.license} + + + {info.license.key} + + {/if} + +
+ {/if} +
+
diff --git a/src/lib/components/extra/projects.svelte b/src/lib/components/extra/projects.svelte new file mode 100644 index 0000000..e8695ec --- /dev/null +++ b/src/lib/components/extra/projects.svelte @@ -0,0 +1,44 @@ + + +{#if project.id === 'footer'} +