[feat] added github stars

This commit is contained in:
kwaroran
2023-05-07 23:33:53 +09:00
parent 60fa3558c4
commit d6a1d5dfdb
3 changed files with 15 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
<script lang="ts">
import { isTauri } from "src/ts/globalApi";
</script>
<svelte:head>
<script async defer src="https://buttons.github.io/buttons.js"></script>
</svelte:head>
<!-- Place this tag where you want the button to render. -->
{#if isTauri}
<a class="github-button mt-4" href="https://github.com/kwaroran/risuAI" data-color-scheme="no-preference: dark; light: dark; dark: dark;" data-size="large" data-show-count="true" aria-label="Star kwaroran/risuAI on GitHub">Star</a>
{/if}