Skip to content

Commit

Permalink
make links in AppInfoOverlay open browser
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Oct 23, 2024
1 parent 6ea427c commit 2e2f196
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/components/general/AppInfoOverlay.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script lang="ts" setup>
import { BrowserOpenURL } from "@runtime"
import { version } from "@frontend/package.json" with { type: "json" }
import { CardOverlay } from "@components"
Expand Down Expand Up @@ -39,15 +41,17 @@ const {
<div class="flex row gap-1">
<Button class="outlined-btn w-6" severity="help"
icon="pi pi-heart-fill" label="Donate"
as="a" href="https://github.com/sponsors/Owen3H" target="_blank" rel="noopener"
@click="BrowserOpenURL('https://github.com/sponsors/Owen3H')"
/>

<Button class="outlined-btn w-full" severity="primary"
icon="pi pi-github" label="View source code"
@click="BrowserOpenURL('https://github.com/The-Egg-Corp/modm8')"
/>

<Button class="outlined-btn w-full" style="background-color: #7289da;"
icon="pi pi-discord" label="Join the community"
@click="BrowserOpenURL('https://discord.gg/64Vq7cpdGV')"
/>
</div>
</div>
Expand Down

0 comments on commit 2e2f196

Please sign in to comment.