[feat] added patreon icon link

This commit is contained in:
kwaroran
2023-05-24 10:10:18 +09:00
parent 756d09c7bb
commit bee825d97a
3 changed files with 18 additions and 4 deletions

View File

@@ -1,11 +1,24 @@
<script lang="ts">
import { isTauri } from "src/ts/globalApi";
import { isTauri, openURL } 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}
<div class="flex gap-2 items-center mt-2">
{#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}
{:else}
<button on:click={() => {
openURL("https://github.com/kwaroran/risuAI")
}}>
<img src="/icon/github-mark-white.svg" width="24" alt="github" />
</button>
{/if}
<button on:click={() => {
openURL("https://www.patreon.com/RisuAI")
}}>
<img src="/icon/patreon.png" width="24" alt="github" />
</button>
</div>