feature/comparison-slider #19
@@ -11,6 +11,7 @@ import { cn } from '$shared/shadcn/utils/shadcn-utils';
|
|||||||
import { Section } from '$shared/ui';
|
import { Section } from '$shared/ui';
|
||||||
import ComparisonSlider from '$widgets/ComparisonSlider/ui/ComparisonSlider/ComparisonSlider.svelte';
|
import ComparisonSlider from '$widgets/ComparisonSlider/ui/ComparisonSlider/ComparisonSlider.svelte';
|
||||||
import { FontSearch } from '$widgets/FontSearch';
|
import { FontSearch } from '$widgets/FontSearch';
|
||||||
|
import { SampleList } from '$widgets/SampleList';
|
||||||
import LineSquiggleIcon from '@lucide/svelte/icons/line-squiggle';
|
import LineSquiggleIcon from '@lucide/svelte/icons/line-squiggle';
|
||||||
import ScanEyeIcon from '@lucide/svelte/icons/scan-eye';
|
import ScanEyeIcon from '@lucide/svelte/icons/scan-eye';
|
||||||
|
|
||||||
@@ -34,10 +35,7 @@ $effect(() => {
|
|||||||
<div
|
<div
|
||||||
class={cn(
|
class={cn(
|
||||||
'flex flex-col transition-all duration-700 ease-[cubic-bezier(0.23,1,0.32,1)] mx-40',
|
'flex flex-col transition-all duration-700 ease-[cubic-bezier(0.23,1,0.32,1)] mx-40',
|
||||||
'will-change-[flex-grow] transform-gpu',
|
'will-change-[flex-grow] transform-gpu grow-0 justify-start',
|
||||||
isEmptyScreen
|
|
||||||
? 'grow justify-center'
|
|
||||||
: 'animate-search',
|
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@@ -50,33 +48,29 @@ $effect(() => {
|
|||||||
</div>
|
</div>
|
||||||
{/key}
|
{/key}
|
||||||
|
|
||||||
{#if displayedFontsStore.fonts.length > 1}
|
<Section class="my-12 gap-8" index={1}>
|
||||||
<Section class="my-12 gap-8" index={1}>
|
{#snippet icon({ className })}
|
||||||
{#snippet icon({ className })}
|
<ScanEyeIcon class={className} />
|
||||||
<ScanEyeIcon class={className} />
|
{/snippet}
|
||||||
{/snippet}
|
{#snippet title({ className })}
|
||||||
{#snippet title({ className })}
|
<h1 class={className}>
|
||||||
<h1 class={className}>
|
Optical<br>Comparator
|
||||||
Optical<br>Comparator
|
</h1>
|
||||||
</h1>
|
{/snippet}
|
||||||
{/snippet}
|
<ComparisonSlider />
|
||||||
<ComparisonSlider />
|
</Section>
|
||||||
</Section>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{#if displayedFontsStore.hasAnyFonts}
|
<Section class="my-12 gap-8" index={2}>
|
||||||
<Section class="my-12 gap-8" index={2}>
|
{#snippet icon({ className })}
|
||||||
{#snippet icon({ className })}
|
<LineSquiggleIcon class={className} />
|
||||||
<LineSquiggleIcon class={className} />
|
{/snippet}
|
||||||
{/snippet}
|
{#snippet title({ className })}
|
||||||
{#snippet title({ className })}
|
<h2 class={className}>
|
||||||
<h2 class={className}>
|
Sample<br>Set
|
||||||
Sample<br>Set
|
</h2>
|
||||||
</h2>
|
{/snippet}
|
||||||
{/snippet}
|
<SampleList />
|
||||||
<FontDisplay />
|
</Section>
|
||||||
</Section>
|
|
||||||
{/if}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
Reference in New Issue
Block a user