Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,20 +1,34 @@
<template>
<div
class="grid grid-cols-3 md:grid-cols-2 gap-5 pr-8 pb-10 pl-3"
>
<div class="flex flex-col items-center">
<app-eagle-eye-loading-card
size="small"
class="mt-30 w-64"
/>
<h5 class="mt-8">Loading results...</h5>
<div
v-for="(_, index) in Array(3)"
:key="index"
class="col-span-1 flex flex-col gap-5"
v-if="showLongerLoading"
class="text-gray-600 text-sm mt-4"
>
<app-eagle-eye-loading-card
:size="index === 1 ? 'medium' : 'small'"
/>
<app-eagle-eye-loading-card />
Generating your Eagle Eye feed can take up to 10
seconds.
</div>
</div>
</template>

<script setup>
import AppEagleEyeLoadingCard from '@/premium/eagle-eye/components/list/eagle-eye-loading-card.vue'
import { onMounted, onUnmounted, ref } from 'vue'

const showLongerLoading = ref(false)
const timeout = ref()

onMounted(() => {
timeout.value = setTimeout(() => {
showLongerLoading.value = true
}, 2000)
})

onUnmounted(() => {
clearTimeout(timeout.value)
})
</script>