Compare commits
2 commits
84512c7a9b
...
49646c3a09
| Author | SHA1 | Date | |
|---|---|---|---|
| 49646c3a09 | |||
| 89211b3e22 |
6 changed files with 57 additions and 28 deletions
18
src/lib/components/IconBlock.svelte
Normal file
18
src/lib/components/IconBlock.svelte
Normal 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>
|
||||||
|
|
@ -1,13 +1,12 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Icon from '@iconify/svelte';
|
import IconBlock from './IconBlock.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section class="flex flex-col sm:flex-row">
|
<IconBlock
|
||||||
<div class="flex flex-row items-center gap-2 bg-blue-500 p-2 text-slate-50">
|
bgStrong="bg-blue-500"
|
||||||
<Icon width={32} height={32} icon={'material-symbols:info'} color={'#f8fafc'} />
|
bgBleak="bg-blue-50"
|
||||||
<span class="sm:hidden">Обратите внимание</span>
|
icon="material-symbols:info"
|
||||||
</div>
|
caption="Обратите внимание"
|
||||||
<div class="bg-blue-50 p-4 sm:grow">
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</IconBlock>
|
||||||
</section>
|
|
||||||
|
|
|
||||||
12
src/lib/components/WarningBlock.svelte
Normal file
12
src/lib/components/WarningBlock.svelte
Normal 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>
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import SocialButton from '$lib/components/SocialButton.svelte';
|
import WarningBlock from '$lib/components/WarningBlock.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section
|
<section class="hero flex shrink-0 flex-col items-center justify-center gap-5 overflow-hidden p-4">
|
||||||
class="flex shrink-0 flex-col items-center justify-center gap-5 overflow-hidden p-4 hero"
|
|
||||||
>
|
|
||||||
<div
|
<div
|
||||||
class="flex flex-col flex-nowrap items-center justify-center gap-3 lg:flex-row lg:flex-nowrap"
|
class="flex flex-col flex-nowrap items-center justify-center gap-3 lg:flex-row lg:flex-nowrap"
|
||||||
>
|
>
|
||||||
|
|
@ -16,6 +14,8 @@
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<WarningBlock>Страница находится в разработке!</WarningBlock>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@import "$src/app.css";
|
@import '$src/app.css';
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import SocialButton from '$lib/components/SocialButton.svelte';
|
import WarningBlock from '$lib/components/WarningBlock.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section
|
<section class="hero flex shrink-0 flex-col items-center justify-center gap-5 overflow-hidden p-4">
|
||||||
class="flex shrink-0 flex-col items-center justify-center gap-5 overflow-hidden p-4 hero"
|
|
||||||
>
|
|
||||||
<div
|
<div
|
||||||
class="flex flex-col flex-nowrap items-center justify-center gap-3 lg:flex-row lg:flex-nowrap"
|
class="flex flex-col flex-nowrap items-center justify-center gap-3 lg:flex-row lg:flex-nowrap"
|
||||||
>
|
>
|
||||||
|
|
@ -16,6 +14,8 @@
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<WarningBlock>Страница находится в разработке!</WarningBlock>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@import "$src/app.css";
|
@import '$src/app.css';
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import SocialButton from '$lib/components/SocialButton.svelte';
|
import WarningBlock from '$lib/components/WarningBlock.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section
|
<section class="hero flex shrink-0 flex-col items-center justify-center gap-5 overflow-hidden p-4">
|
||||||
class="flex shrink-0 flex-col items-center justify-center gap-5 overflow-hidden p-4 hero"
|
|
||||||
>
|
|
||||||
<div
|
<div
|
||||||
class="flex flex-col flex-nowrap items-center justify-center gap-3 lg:flex-row lg:flex-nowrap"
|
class="flex flex-col flex-nowrap items-center justify-center gap-3 lg:flex-row lg:flex-nowrap"
|
||||||
>
|
>
|
||||||
|
|
@ -16,6 +14,8 @@
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<WarningBlock>Страница находится в разработке!</WarningBlock>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@import "$src/app.css";
|
@import '$src/app.css';
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue