From 310ed0c078056400668b09f76fc20216bd497a31 Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Tue, 17 Dec 2024 15:16:05 -0600 Subject: [PATCH] add `WorkflowCard`, `PopularWorkflows` components, more stuff to hero --- website/components/PopularWorkflows.vue | 30 ++++++++++ website/components/WorkflowCard.vue | 46 +++++++++++++++ website/layouts/default.vue | 7 ++- website/pages/index.vue | 74 +++++++++++-------------- website/stores/workflows.ts | 5 ++ 5 files changed, 118 insertions(+), 44 deletions(-) create mode 100644 website/components/PopularWorkflows.vue create mode 100644 website/components/WorkflowCard.vue diff --git a/website/components/PopularWorkflows.vue b/website/components/PopularWorkflows.vue new file mode 100644 index 000000000..081242847 --- /dev/null +++ b/website/components/PopularWorkflows.vue @@ -0,0 +1,30 @@ + + + diff --git a/website/components/WorkflowCard.vue b/website/components/WorkflowCard.vue new file mode 100644 index 000000000..5cb65383b --- /dev/null +++ b/website/components/WorkflowCard.vue @@ -0,0 +1,46 @@ + + \ No newline at end of file diff --git a/website/layouts/default.vue b/website/layouts/default.vue index bebea6c0c..2539e4646 100644 --- a/website/layouts/default.vue +++ b/website/layouts/default.vue @@ -3,6 +3,10 @@ import { computed, useSlots } from "vue"; const slots = useSlots(); +const hasHero = computed(() => { + return !!slots.hero; +}); + const hasLeftSidebar = computed(() => { return !!slots.leftSidebar; }); @@ -11,7 +15,8 @@ const hasRightSidebar = computed(() => { });