generated from Flosciante/nuxt-image-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
38 lines (33 loc) · 933 Bytes
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<script setup lang="ts">
const { getImages } = useFile()
useHead({
link: [
{ rel: 'icon', href: '/favicon.ico' }
],
htmlAttrs: {
lang: 'en'
}
})
const title = 'NuxtHub Image Gallery Starter'
const description = 'A Nuxt template to build your full-stack image gallery application on the edge.'
useSeoMeta({
title,
ogTitle: title,
description,
ogDescription: description,
ogSiteName: 'NuxtHub image gallery template',
ogImage: 'https://image-gallery.nuxt.dev/social-card.png',
twitterCard: 'summary_large_image'
})
await getImages()
</script>
<template>
<div
class="bg-black min-h-[100dvh] overflow-x-auto relative"
:class="{ 'flex flex-col md:block': $router.currentRoute.value.fullPath !== '/' }"
>
<UNotifications />
<NuxtPage />
<ImageThumbnailList :class="$router.currentRoute.value.fullPath !== '/' ? 'opacity-100 z-[9999]' : 'opacity-0 z-[-1]'" />
</div>
</template>