2023-03-03 15:54:28 +00:00
|
|
|
<script setup>
|
2024-04-29 09:25:50 +00:00
|
|
|
import { colorsBgLight } from '@/colors';
|
2023-03-03 15:54:28 +00:00
|
|
|
|
|
|
|
defineProps({
|
2023-10-31 14:38:43 +00:00
|
|
|
color: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
isPlacedWithHeader: {
|
|
|
|
type: Boolean,
|
|
|
|
},
|
2023-03-03 15:54:28 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2023-10-31 14:38:43 +00:00
|
|
|
<div class="flex flex-col mb-6 -mt-6 -mr-6 -ml-6 animate-fade-in">
|
|
|
|
<div :class="[colorsBgLight[color], { 'rounded-t-xl': !isPlacedWithHeader }]" class="flex flex-col p-6 transition-colors">
|
|
|
|
<slot />
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-03 15:54:28 +00:00
|
|
|
</template>
|