feat: Added meta data

This commit is contained in:
Xeovalyte 2023-06-24 13:47:40 +02:00
parent fbcd0d1bb9
commit 5685dd5fb7
13 changed files with 32 additions and 3 deletions

View File

@ -10,4 +10,15 @@
.router-link-active {
background: rgba(0, 0, 0, 10%)
}
.page-enter-active,
.page-leave-active {
transition: all 0.2s;
}
.page-enter-from,
.page-leave-to {
opacity: 0;
filter: blur(0.2rem);
}
</style>

View File

@ -7,7 +7,7 @@
<div v-if="user.minecraft" class="mx-auto w-full max-w-[92rem]">
<div class="my-5 text-xl font-bold">
<Icon size="1.6em" :name="!showSidebar ? 'heroicons:bars-3-center-left' : 'heroicons:chevron-left'" class="text-primary-500 mr-3 hover:cursor-pointer" @click="showSidebar = !showSidebar" />
{{ route.meta.title.split(' | ')[0] }}
{{ route.meta.title }}
</div>
<NuxtPage class="" />
</div>

View File

@ -12,6 +12,17 @@ export default defineNuxtConfig({
'nuxt-icon',
'@nuxtjs/eslint-module'
],
app: {
head: {
link: [
{ rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' },
{ rel: 'icon', sizes: '32x32', type: 'image/png', href: '/favicon-32x32.png' },
{ rel: 'icon', sizes: '16x16', type: 'image/png', href: '/favicon-16x16.png' },
{ rel: 'manifest', href: '/site.webmanifest' }
]
},
pageTransition: { name: 'page', mode: 'out-in' }
},
runtimeConfig: {
discordClientId: '',
discordClientSecret: '',

View File

@ -75,9 +75,11 @@
<script lang="ts" setup>
definePageMeta({
middleware: ['auth'],
title: 'Dashboard | Polarcraft'
title: 'Dashboard'
})
useHead({ title: 'Dashboard | Polarcraft' })
const user = useState<IUser>('user')
const disableButtons = ref(false)

View File

@ -13,5 +13,7 @@ definePageMeta({
layout: 'blank'
})
useHead({ title: 'Login | Polarcraft' })
const config = useRuntimeConfig()
</script>

View File

@ -8,8 +8,10 @@
<script lang="ts" setup>
definePageMeta({
middleware: ['auth'],
title: 'Team | Polarcraft'
title: 'Team'
})
useHead({ title: 'Team | Polarcraft' })
const user = useState<IUser>('user')
</script>

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 825 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -0,0 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}