2021-07-01 09:31:26 +03:00
|
|
|
<script>
|
|
|
|
|
// import
|
2021-07-03 19:29:41 +00:00
|
|
|
// border border-gray-300 rounded-md p-3 bg-blue-200 bg-opacity-25
|
2021-07-08 09:44:16 +03:00
|
|
|
export let width = "max-w-3xl";
|
2021-07-01 09:31:26 +03:00
|
|
|
</script>
|
|
|
|
|
|
2021-07-08 09:44:16 +03:00
|
|
|
<div class="mt-4 mx-auto {width} relative pb-5">
|
2021-07-01 09:31:26 +03:00
|
|
|
{#if $$slots.header}
|
|
|
|
|
<div
|
2021-07-03 19:29:41 +00:00
|
|
|
class="head flex bg-white items-center justify-between sticky right-0 w-full py-3"
|
2021-07-01 09:31:26 +03:00
|
|
|
>
|
|
|
|
|
<slot name="header" />
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
<slot />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.head {
|
2021-07-03 19:29:41 +00:00
|
|
|
top: 61px;
|
|
|
|
|
z-index: 1;
|
2021-07-01 09:31:26 +03:00
|
|
|
}
|
|
|
|
|
</style>
|