Компонент блока с информацией
This commit is contained in:
parent
c0f216ceb2
commit
68c331f146
1 changed files with 13 additions and 0 deletions
13
src/lib/components/InfoBlock.svelte
Normal file
13
src/lib/components/InfoBlock.svelte
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import Icon from '@iconify/svelte';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<section class="flex flex-col sm:flex-row">
|
||||||
|
<div class="flex flex-row items-center gap-2 bg-blue-500 p-2 text-slate-50">
|
||||||
|
<Icon width={32} height={32} icon={'material-symbols:info'} color={'#f8fafc'} />
|
||||||
|
<span class="sm:hidden">Обратите внимание</span>
|
||||||
|
</div>
|
||||||
|
<div class="bg-blue-50 p-4 sm:grow">
|
||||||
|
<slot />
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue