mirror of
https://github.com/IoTManagerProject/IoTManagerWeb.git
synced 2026-03-30 11:59:21 +03:00
изменения
This commit is contained in:
@@ -1,22 +1,10 @@
|
||||
<script>
|
||||
import CloudIcon from "../svg/Cloud.svelte";
|
||||
export let title;
|
||||
export let cloud = false;
|
||||
export let cloudColor;
|
||||
export let title = false;
|
||||
</script>
|
||||
|
||||
<div class="crd">
|
||||
{#if title && !cloud}
|
||||
{#if title}
|
||||
<h1 class="crd-hdr">{title}</h1>
|
||||
{:else if title && cloud}
|
||||
<div class="flex items-center">
|
||||
<div class="w-11/12">
|
||||
<h1 class="crd-hdr">{title}</h1>
|
||||
</div>
|
||||
<div class="flex justify-end w-1/12">
|
||||
<CloudIcon color={cloudColor} />
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<slot />
|
||||
</div>
|
||||
@@ -28,7 +16,7 @@
|
||||
|
||||
@layer components {
|
||||
.crd {
|
||||
@apply w-full mb-2 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 shadow-md lg:shadow-lg border border-gray-200 rounded-lg;
|
||||
@apply w-full mb-2 p-2 sm:p-2 md:p-2 lg:p-2 xl:px-4 xl:py-4 2xl:px-4 2xl:py-4 bg-white shadow-md lg:shadow-lg border border-gray-200 rounded-lg;
|
||||
}
|
||||
.crd-hdr {
|
||||
@apply text-center text-lg text-gray-500 font-bold pb-4;
|
||||
|
||||
Reference in New Issue
Block a user