mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-14 18:59:59 +01:00
Refactor: swap status colors for 'active' and 'completed'; add full-card link overlay for navigation
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
export function useProjectColors() {
|
||||
const statusColors: Record<string, string> = {
|
||||
'active': 'green',
|
||||
'completed': 'blue',
|
||||
'active': 'blue',
|
||||
'completed': 'green',
|
||||
'archived': 'neutral',
|
||||
'in-progress': 'amber',
|
||||
'in progress': 'amber'
|
||||
}
|
||||
|
||||
|
||||
@@ -149,8 +149,7 @@ const activeFilterCount = computed(() => (selectedStatus.value ? 1 : 0) + select
|
||||
<UCard
|
||||
v-for="project in filteredProjects"
|
||||
:key="project.slug"
|
||||
:to="`/projects/${project.slug}`"
|
||||
class="hover:scale-[1.02] transition-transform cursor-pointer"
|
||||
class="relative hover:scale-[1.02] transition-transform cursor-pointer"
|
||||
>
|
||||
<template #header>
|
||||
<div class="flex items-start justify-between gap-4">
|
||||
@@ -228,6 +227,13 @@ const activeFilterCount = computed(() => (selectedStatus.value ? 1 : 0) + select
|
||||
</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- Full-card link overlay for navigation -->
|
||||
<NuxtLink
|
||||
:to="`/projects/${project.slug}`"
|
||||
:aria-label="`Open project: ${project.title}`"
|
||||
class="absolute inset-0"
|
||||
/>
|
||||
</UCard>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user