Блоги #1

Merged
rndtrash merged 64 commits from feature-blogs into master 2025-10-22 08:44:56 +03:00
3 changed files with 39 additions and 10 deletions
Showing only changes of commit 89211b3e22 - Show all commits

View file

@ -0,0 +1,18 @@
<script lang="ts">
import Icon from '@iconify/svelte';
export let bgStrong: string;
export let bgBleak: string;
export let icon: string;
export let caption: string;
</script>
<section class="flex flex-col sm:flex-row">
<div class="flex flex-row items-center gap-2 {bgStrong} p-2 text-slate-50">
<Icon width={32} height={32} {icon} color={'#f8fafc'} />
<span class="sm:hidden">{caption}</span>
</div>
<div class="{bgBleak} p-4 sm:grow">
<slot />
</div>
</section>

View file

@ -1,13 +1,12 @@
<script lang="ts">
import Icon from '@iconify/svelte';
import IconBlock from './IconBlock.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">
<IconBlock
bgStrong="bg-blue-500"
bgBleak="bg-blue-50"
icon="material-symbols:info"
caption="Обратите внимание"
>
<slot />
</div>
</section>
</IconBlock>

View file

@ -0,0 +1,12 @@
<script lang="ts">
import IconBlock from './IconBlock.svelte';
</script>
<IconBlock
bgStrong="bg-amber-500"
bgBleak="bg-amber-50"
icon="material-symbols:warning"
caption="Внимание"
>
<slot />
</IconBlock>