Skip to content

Commit bbe2226

Browse files
committed
feat: replace placeholders with video support in features and remove unused media configurations
1 parent c51df79 commit bbe2226

File tree

4 files changed

+3
-47
lines changed

4 files changed

+3
-47
lines changed

website/.vitepress/theme/ProPage.vue

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,7 @@ const workflowFeatures = [
5454
'Conditional branching and parallel execution paths',
5555
'Simulation mode with step-through debugging',
5656
],
57-
placeholder: {
58-
type: 'video' as const,
59-
title: 'Workflow Editor Demo',
60-
description: 'See the visual workflow designer in action',
61-
},
57+
video: '/editor.webm',
6258
},
6359
{
6460
tag: 'Dart Execution',
@@ -74,7 +70,6 @@ const workflowFeatures = [
7470
'Custom executor plugins for specialized tasks',
7571
],
7672
placeholder: {
77-
type: 'animation' as const,
7873
title: 'Executor Pipeline',
7974
description: 'Watch workflows execute step-by-step',
8075
},
@@ -93,7 +88,6 @@ const workflowFeatures = [
9388
'Alerting and notification integrations',
9489
],
9590
placeholder: {
96-
type: 'image' as const,
9791
title: 'Monitoring Dashboard',
9892
description: 'Live workflow analytics and insights',
9993
},
@@ -112,7 +106,6 @@ const workflowFeatures = [
112106
'Integration with external systems and APIs',
113107
],
114108
placeholder: {
115-
type: 'image' as const,
116109
title: 'Infrastructure Overview',
117110
description: 'Scalable workflow architecture',
118111
},
@@ -310,6 +303,7 @@ const comparisonRows: ComparisonRow[] = [
310303
:title="feature.title"
311304
:subtitle="feature.subtitle"
312305
:bullets="feature.bullets"
306+
:video="feature.video"
313307
:placeholder="feature.placeholder"
314308
:reverse="index % 2 === 1"
315309
/>

website/.vitepress/theme/components/FeatureSection.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Badge from './Badge.vue';
44
import MediaPlaceholder from './MediaPlaceholder.vue';
55
66
export interface PlaceholderConfig {
7-
type: 'video' | 'animation' | 'image' | 'gif';
87
title: string;
98
description: string;
109
}
@@ -52,7 +51,6 @@ defineProps<{
5251
<!-- Fallback to placeholder -->
5352
<MediaPlaceholder
5453
v-else-if="placeholder"
55-
:type="placeholder.type"
5654
:title="placeholder.title"
5755
:description="placeholder.description"
5856
/>
Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,16 @@
11
<script setup lang="ts">
2-
import { Icon } from '@iconify/vue';
3-
42
defineProps<{
5-
type: 'video' | 'animation' | 'image' | 'gif';
63
title: string;
74
description: string;
85
aspectRatio?: string;
96
}>();
10-
11-
const typeConfig = {
12-
video: { icon: 'ph:video-fill', label: 'Video' },
13-
animation: { icon: 'ph:gif-fill', label: 'Animation' },
14-
image: { icon: 'ph:image-fill', label: 'Image' },
15-
gif: { icon: 'ph:gif-fill', label: 'GIF' },
16-
};
177
</script>
188

199
<template>
2010
<div class="media-placeholder" :style="{ aspectRatio: aspectRatio || '16/10' }">
2111
<div class="media-placeholder-inner">
22-
<div class="media-placeholder-badge">
23-
<Icon :icon="typeConfig[type].icon" />
24-
<span>{{ typeConfig[type].label }}</span>
25-
</div>
2612
<h4 class="media-placeholder-title">{{ title }}</h4>
2713
<p class="media-placeholder-desc">{{ description }}</p>
28-
<div class="media-placeholder-hint">
29-
<Icon icon="ph:arrow-square-out-fill" />
30-
<span>Replace with actual media</span>
31-
</div>
3214
</div>
3315
</div>
3416
</template>
@@ -50,30 +32,12 @@ const typeConfig = {
5032
@apply text-center p-10 max-w-full box-border;
5133
}
5234
53-
.media-placeholder-badge {
54-
@apply inline-flex items-center gap-1.5 px-3.5 py-1.5 rounded-full text-xs font-semibold uppercase tracking-wider;
55-
@apply bg-white dark:bg-zinc-800 text-slate-500 dark:text-zinc-400 border border-slate-200 dark:border-zinc-600 mb-4;
56-
font-family: var(--vn-font-mono);
57-
}
58-
59-
.media-placeholder-badge svg {
60-
@apply text-sm text-violet-600 dark:text-violet-400;
61-
}
62-
6335
.media-placeholder-title {
6436
@apply text-base font-bold text-slate-800 dark:text-zinc-200 mb-2;
6537
font-family: var(--vn-font-display);
6638
}
6739
6840
.media-placeholder-desc {
69-
@apply text-sm text-slate-500 dark:text-zinc-400 leading-normal mb-4;
70-
}
71-
72-
.media-placeholder-hint {
73-
@apply inline-flex items-center gap-1.5 text-xs text-slate-400 dark:text-zinc-500;
74-
}
75-
76-
.media-placeholder-hint svg {
77-
@apply text-sm;
41+
@apply text-sm text-slate-500 dark:text-zinc-400 leading-normal;
7842
}
7943
</style>

website/public/editor.webm

782 KB
Binary file not shown.

0 commit comments

Comments
 (0)