mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-07-14 15:57:20 +02:00
discord lander page
This commit is contained in:
@@ -183,6 +183,14 @@ const router = createRouter({
|
||||
title: 'Blog Post | DeFlock'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/discord',
|
||||
name: 'discord',
|
||||
component: () => import('../views/DiscordJoin.vue'),
|
||||
meta: {
|
||||
title: 'Join our Discord | DeFlock'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/:pathMatch(.*)*',
|
||||
name: 'not-found',
|
||||
@@ -190,6 +198,7 @@ const router = createRouter({
|
||||
meta: {
|
||||
title: 'Not Found | DeFlock'
|
||||
}
|
||||
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
<template>
|
||||
<DefaultLayout>
|
||||
<div class="loading-container">
|
||||
Loading...
|
||||
</div>
|
||||
|
||||
<DiscordWarningDialog
|
||||
v-model="showDialog"
|
||||
:discordUrl="discordUrl"
|
||||
@proceed="handleProceed"
|
||||
/>
|
||||
</DefaultLayout>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue';
|
||||
import { useHead } from '@unhead/vue';
|
||||
import DefaultLayout from '@/layouts/DefaultLayout.vue';
|
||||
import DiscordWarningDialog from '@/components/DiscordWarningDialog.vue';
|
||||
|
||||
useHead({
|
||||
meta: [{ name: 'robots', content: 'noindex, nofollow' }]
|
||||
});
|
||||
|
||||
const discordUrl = 'https://discord.gg/aV7v4R3sKT';
|
||||
const showDialog = ref(true);
|
||||
|
||||
function handleProceed(url: string) {
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.loading-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 60vh;
|
||||
font-size: 1.1rem;
|
||||
color: var(--df-text-color);
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user