Add hover highlight
This commit is contained in:
@@ -3,11 +3,15 @@ import Logo from '@/components/logo.vue'
|
||||
import type { CardT } from '@/colors.ts'
|
||||
|
||||
const card = defineModel<CardT>({ required: true })
|
||||
const props = defineProps<{
|
||||
active?: boolean
|
||||
}>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
class="flex flex-col border-2 border-gray-200 card mx-auto w-full"
|
||||
class="flex flex-col border-2 border-gray-200 transition-colors card mx-auto w-full"
|
||||
:class="{ 'border-gray-800': active }"
|
||||
:style="{ backgroundColor: card.color }"
|
||||
>
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user