40 lines
843 B
Vue
40 lines
843 B
Vue
<script setup lang="ts">
|
|
import DealCard from './DealCard.vue';
|
|
import type { PipelineAccent, PipelineDeal, PipelineUiCopy } from '@/lib/pipeline-board';
|
|
import { DEAL_BOARD_COPY } from '@/lib/pipeline-board';
|
|
|
|
withDefaults(
|
|
defineProps<{
|
|
deal: PipelineDeal;
|
|
accent: PipelineAccent;
|
|
x: number;
|
|
y: number;
|
|
copy?: PipelineUiCopy;
|
|
}>(),
|
|
{ copy: () => DEAL_BOARD_COPY },
|
|
);
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
class="overlay"
|
|
:style="{ transform: `translate3d(${x}px, ${y}px, 0)` }"
|
|
aria-hidden="true"
|
|
>
|
|
<DealCard :deal="deal" :accent="accent" :copy="copy" dragging />
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 80;
|
|
width: min(300px, 86vw);
|
|
pointer-events: none;
|
|
filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.16));
|
|
opacity: 0.97;
|
|
}
|
|
</style>
|