mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-08-29 05:30:53 +02:00
fix discord icon
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<DefaultLayout>
|
<DefaultLayout>
|
||||||
<v-container class="narrow-text text-center">
|
<v-container class="narrow-text text-center">
|
||||||
<h1 class="mb-4">Join the DeFlock Discord</h1>
|
|
||||||
<v-btn color="primary" size="large" rounded @click="showDialog = true">
|
<v-btn color="primary" size="large" rounded @click="showDialog = true">
|
||||||
<v-icon start>mdi-discord</v-icon>
|
<v-img class="mr-2" contain width="24" height="24" :src="isDark ? '/icon-discord-white.svg' : '/icon-discord.svg'" />
|
||||||
Join Discord
|
Join Discord
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-container>
|
</v-container>
|
||||||
|
|
||||||
|
|
||||||
<DiscordWarningDialog
|
<DiscordWarningDialog
|
||||||
v-model="showDialog"
|
v-model="showDialog"
|
||||||
:discordUrl="discordUrl"
|
:discordUrl="discordUrl"
|
||||||
@@ -17,7 +17,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from 'vue';
|
import { computed, ref } from 'vue';
|
||||||
|
import { useTheme } from 'vuetify';
|
||||||
import { useHead } from '@unhead/vue';
|
import { useHead } from '@unhead/vue';
|
||||||
import DefaultLayout from '@/layouts/DefaultLayout.vue';
|
import DefaultLayout from '@/layouts/DefaultLayout.vue';
|
||||||
import DiscordWarningDialog from '@/components/DiscordWarningDialog.vue';
|
import DiscordWarningDialog from '@/components/DiscordWarningDialog.vue';
|
||||||
@@ -26,7 +27,11 @@ useHead({
|
|||||||
meta: [{ name: 'robots', content: 'noindex, nofollow' }]
|
meta: [{ name: 'robots', content: 'noindex, nofollow' }]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const theme = useTheme();
|
||||||
|
const isDark = computed(() => theme.name.value === 'dark');
|
||||||
|
|
||||||
const discordUrl = 'https://discord.gg/aV7v4R3sKT';
|
const discordUrl = 'https://discord.gg/aV7v4R3sKT';
|
||||||
|
|
||||||
const showDialog = ref(true);
|
const showDialog = ref(true);
|
||||||
|
|
||||||
function handleProceed(url: string) {
|
function handleProceed(url: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user