empty
No events empty state with calendar illustration
No events empty state with calendar illustration
Загрузка превью…
src/empty/c-empty-20.vue
<script setup lang="ts">
import { Button } from "@/components/ui/button"
import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "@/components/ui/empty"
</script>
<template>
<div class="flex items-center justify-center p-4">
<Empty class="py-12">
<EmptyHeader>
<EmptyMedia>
<svg width="160" height="140" viewBox="0 0 160 140" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<rect x="24" y="28" width="112" height="96" rx="10" class="fill-background stroke-border" stroke-width="1.5" />
<rect x="24" y="28" width="112" height="24" rx="10" class="fill-muted dark:fill-muted/60" />
<rect x="24" y="42" width="112" height="10" class="fill-muted dark:fill-muted/60" />
<line x1="56" y1="20" x2="56" y2="36" class="stroke-muted-foreground/30" stroke-width="3" stroke-linecap="round" />
<line x1="104" y1="20" x2="104" y2="36" class="stroke-muted-foreground/30" stroke-width="3" stroke-linecap="round" />
<circle cx="48" cy="68" r="4" class="fill-muted-foreground/10" />
<circle cx="68" cy="68" r="4" class="fill-muted-foreground/10" />
<circle cx="88" cy="68" r="4" class="fill-muted-foreground/10" />
<circle cx="108" cy="68" r="4" class="fill-muted-foreground/10" />
<circle cx="48" cy="86" r="4" class="fill-muted-foreground/10" />
<circle cx="68" cy="86" r="4" class="fill-muted-foreground/10" />
<circle cx="88" cy="86" r="4" class="fill-primary/25" />
<circle cx="88" cy="86" r="2" class="fill-primary" />
<circle cx="108" cy="86" r="4" class="fill-muted-foreground/10" />
<circle cx="48" cy="104" r="4" class="fill-muted-foreground/10" />
<circle cx="68" cy="104" r="4" class="fill-muted-foreground/10" />
<circle cx="88" cy="104" r="4" class="fill-muted-foreground/10" />
<circle cx="108" cy="104" r="4" class="fill-muted-foreground/10" />
<circle cx="14" cy="70" r="2" class="fill-muted-foreground/10" />
<circle cx="148" cy="56" r="2.5" class="fill-primary/10" />
<circle cx="146" cy="100" r="1.5" class="fill-muted-foreground/8" />
</svg>
</EmptyMedia>
<EmptyTitle>No upcoming events</EmptyTitle>
<EmptyDescription>
Your schedule is clear. Create an event to get started.
</EmptyDescription>
</EmptyHeader>
<EmptyContent>
<Button>Create event</Button>
</EmptyContent>
</Empty>
</div>
</template>