Files
speckle-server/packages/frontend-2/components/project/EmptyState.vue
T
andrewwallacespeckle f728f9f2cf feat(fe2): updated empty state component & new discussions empty state (#2198)
* Add new EmptyState Component

* Add small prop

* Remove animation

* Discussions Empty State

* Update to CTA

* Update to CTA
2024-04-09 11:49:37 +01:00

25 lines
622 B
Vue

<template>
<div class="flex flex-col items-center max-w-[180px] mx-auto">
<div
class="relative text-foreground-2 h-32 w-full"
:class="small ? 'scale-75 -mb-2' : 'mb-1'"
>
<slot name="image"></slot>
</div>
<div class="flex flex-col gap-1 items-center text-center">
<span class="text-foreground font-bold">{{ title }}</span>
<span v-if="text" class="text-xs text-foreground-2">
{{ text }}
</span>
</div>
<slot name="cta"></slot>
</div>
</template>
<script setup lang="ts">
defineProps<{
small?: boolean
title: string
text?: string
}>()
</script>