2022-11-22 00:37:34 +01:00
|
|
|
<template>
|
2022-11-29 21:38:55 +01:00
|
|
|
<section
|
|
|
|
class="p-3 rounded-lg flex flex-col"
|
|
|
|
:class="{'bg-gray-800': second === false, 'bg-gray-700': second === true}"
|
|
|
|
>
|
2022-11-24 00:59:40 +01:00
|
|
|
<div class="flex items-center">
|
|
|
|
<heading class="col-span-full" v-if="heading">{{ heading }}</heading>
|
|
|
|
<slot name="in-title"></slot>
|
|
|
|
</div>
|
2022-11-22 01:55:57 +01:00
|
|
|
<main :class="{'mt-3': heading, 'containerClass': true}">
|
2022-11-22 00:37:34 +01:00
|
|
|
<slot></slot>
|
|
|
|
</main>
|
|
|
|
</section>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
heading: {
|
|
|
|
type: String,
|
|
|
|
},
|
2022-11-29 21:38:55 +01:00
|
|
|
second: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false,
|
|
|
|
},
|
2022-11-22 00:37:34 +01:00
|
|
|
containerClass: {
|
|
|
|
default: function () {
|
|
|
|
return '';
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
components: {
|
|
|
|
heading: () => import('./Heading'),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|