Skip to content

Commit 637f53b

Browse files
committed
Tag and card styling, cleanup
1 parent a3e978b commit 637f53b

File tree

3 files changed

+5
-39
lines changed

3 files changed

+5
-39
lines changed

website/components/PopularWorkflows.vue

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,3 @@ const workflows = computed(() => {
2525
</div>
2626
</div>
2727
</template>
28-
29-
<style scoped>
30-
@media (max-width: 1024px) {
31-
.grid {
32-
grid-template-columns: 1fr;
33-
}
34-
}
35-
</style>

website/components/WorkflowCard.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defineProps<{
1212
:id="`workflow-${workflow.definition.uuid}`"
1313
:ui="{
1414
strategy: 'override',
15-
base: `flex flex-col ${compact ? 'h-full shadow-md hover:shadow-lg transition-shadow' : 'mb-6'}`,
15+
base: `flex flex-col ${compact ? 'h-[18rem] shadow-md hover:shadow-lg transition-shadow' : 'mb-6'}`,
1616
header: {
1717
padding: compact ? 'p-3' : 'px-6 py-4',
1818
},
@@ -24,8 +24,7 @@ defineProps<{
2424
padding: compact ? 'p-3' : 'px-6 py-2',
2525
},
2626
}"
27-
:class="compact ? 'bg-white bg-opacity-90 backdrop-blur-sm rounded-lg' : ''"
28-
:color="compact ? 'white' : undefined">
27+
:class="compact ? 'bg-white bg-opacity-90 backdrop-blur-sm rounded-lg' : ''">
2928
<template #header>
3029
<ULink :to="`/workflow/${encodeURIComponent(workflow.trsID)}/`">
3130
<h2 :class="`font-bold hover:underline ${compact ? 'text-lg' : 'text-xl mb-2'}`">
@@ -40,7 +39,7 @@ defineProps<{
4039
</p>
4140

4241
<div v-if="workflow.collections && workflow.collections.length > 0 && !compact">
43-
<UBadge v-for="collection in workflow.collections" :key="collection" class="mr-2 mb-2" variant="solid">
42+
<UBadge v-for="collection in workflow.collections" :key="collection" class="mr-2 mb-2" variant="soft">
4443
{{ collection }}
4544
</UBadge>
4645
</div>
@@ -49,11 +48,10 @@ defineProps<{
4948
v-for="collection in workflow.collections.slice(0, 2)"
5049
:key="collection"
5150
class="mr-1 mb-1"
52-
size="xs"
5351
variant="soft">
5452
{{ collection }}
5553
</UBadge>
56-
<UBadge v-if="workflow.collections.length > 2" size="xs" variant="soft" class="mr-1 mb-1">
54+
<UBadge v-if="workflow.collections.length > 2" variant="soft" class="mr-1 mb-1">
5755
+{{ workflow.collections.length - 2 }}
5856
</UBadge>
5957
</div>

website/pages/index.vue

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ const filteredWorkflows = computed(() =>
3636
const matchesSearch = workflow.definition.name.toLowerCase().includes(searchQuery.value.toLowerCase());
3737
const matchesFilters =
3838
!workflowStore.selectedFilters.length ||
39-
workflowStore.selectedFilters.every(
40-
(filter) => workflow.collections.includes(filter)
41-
);
39+
workflowStore.selectedFilters.every((filter) => workflow.collections.includes(filter));
4240
return matchesSearch && matchesFilters;
4341
}),
4442
);
@@ -75,29 +73,7 @@ function selectWorkflow(workflow: Workflow) {
7573
and reliably.
7674
</h2>
7775
<PopularWorkflows :workflow-trs-ids="POPULAR_WORKFLOW_TRS_IDS" />
78-
<div class="mt-6">
79-
<UButton
80-
to="#workflows"
81-
variant="outline"
82-
color="white"
83-
@click="scrollToGrid"
84-
icon="i-heroicons-arrow-down"
85-
class="font-medium"
86-
>
87-
Browse all workflows
88-
</UButton>
89-
</div>
9076
</div>
91-
<!-- <div class="overflow-hidden p-0">
92-
<svg
93-
viewBox="14 0 100 40"
94-
preserveAspectRatio="none"
95-
height="100"
96-
class="fill-ebony-clay w-full"
97-
:style="{ transform: 'rotate(180deg)' }">
98-
<use :xlink:href="`${waveSvg}#path`" />
99-
</svg>
100-
</div> -->
10177
</template>
10278
<template #content>
10379
<div class="h-16">

0 commit comments

Comments
 (0)