mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(editor): NDV UI overhaul experiment (#14209)
Co-authored-by: jakeranallo <jake.ranallo@gmail.com>
This commit is contained in:
42
packages/frontend/editor-ui/src/components/NDVEmptyState.vue
Normal file
42
packages/frontend/editor-ui/src/components/NDVEmptyState.vue
Normal file
@@ -0,0 +1,42 @@
|
||||
<script setup lang="ts">
|
||||
defineProps<{ title: string }>();
|
||||
|
||||
defineSlots<{
|
||||
icon(): unknown;
|
||||
description(): unknown;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<article :class="$style.empty">
|
||||
<slot name="icon" />
|
||||
<h1 :class="$style.title">{{ title }}</h1>
|
||||
<p :class="$style.description"><slot name="description" /></p>
|
||||
</article>
|
||||
</template>
|
||||
|
||||
<style lang="css" module>
|
||||
.empty {
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--spacing-2xs);
|
||||
|
||||
line-height: 2;
|
||||
color: var(--color-text-base);
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: var(--font-size-m);
|
||||
font-weight: var(--font-weight-bold);
|
||||
color: var(--color-text-base);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.description {
|
||||
font-size: var(--font-size-s);
|
||||
max-width: 180px;
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user