add empty card when data not available

Signed-off-by: nurRiyad <asadnurriyad@gmail.com>
This commit is contained in:
nurRiyad
2023-01-10 00:13:46 +06:00
parent 5b9032cf68
commit cdab5c90ea
13 changed files with 313 additions and 20 deletions

21
components/blog/empty.vue Normal file
View File

@@ -0,0 +1,21 @@
<template>
<article class="group border m-2 rounded-2xl overflow-hidden shadow-lg text-zinc-700">
<NuxtLink to="/">
<div
class="lg:h-48 md:h-36 w-full object-cover object-center group-hover:scale-[1.05] transition-all duration-500"
>
<LogoConfused />
</div>
<div class="p-5">
<h2 class="text-3xl font-semibold text-black pb-1 group-hover:text-sky-600">
No Post Available
</h2>
<div class="flex group-hover:underline text-sky-600 items-center pt-2">
<p>Back To Home</p>
<LogoArrow />
</div>
</div>
</NuxtLink>
</article>
</template>