mirror of
https://github.com/IoTManagerProject/IoTManagerWeb.git
synced 2026-03-28 07:52:32 +03:00
ghjdthrf
This commit is contained in:
25
src/components/Alarm.svelte
Normal file
25
src/components/Alarm.svelte
Normal 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>
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user