This commit is contained in:
Dmitry Borisenko
2022-02-06 18:19:38 +01:00
parent 00bf4f3ad2
commit a1a78f8b7b
4 changed files with 160 additions and 13 deletions

View File

@@ -0,0 +1,25 @@
<script>
export let title;
</script>
<div class="alm">
{#if title}
<h1 class="alm-hdr">{title}</h1>
{/if}
<slot />
</div>
<style lang="postcss" global>
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer components {
.alm-hdr {
@apply text-center text-base text-gray-500 font-bold pb-0;
}
.alm {
@apply mb-4 w-full p-2 sm:p-2 md:p-2 lg:p-2 xl:px-4 xl:py-2 2xl:px-4 2xl:py-2 bg-red-100 shadow-md lg:shadow-lg border border-gray-300 rounded;
}
}
</style>

View File

@@ -8,3 +8,18 @@
{/if}
<slot />
</div>
<style lang="postcss" global>
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer components {
.crd {
@apply w-full p-2 sm:p-2 md:p-2 lg:p-2 xl:px-8 xl:py-4 2xl:px-8 2xl:py-4 bg-white rounded-lg shadow-md lg:shadow-lg border border-gray-100;
}
.crd-hdr {
@apply text-center text-lg text-gray-500 font-bold pb-4;
}
}
</style>