[feat] added patreon icon link
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user