mirror of
https://github.com/pheralb/svgl.git
synced 2025-02-06 15:17:58 +08:00
🛠️ Add notFound component.
This commit is contained in:
parent
cc0d49b30c
commit
f38595d21c
@ -10,6 +10,7 @@
|
|||||||
import Container from '@/components/container.svelte';
|
import Container from '@/components/container.svelte';
|
||||||
import SvgCard from '@/components/svgCard.svelte';
|
import SvgCard from '@/components/svgCard.svelte';
|
||||||
import Grid from '@/components/grid.svelte';
|
import Grid from '@/components/grid.svelte';
|
||||||
|
import NotFound from '@/components/notFound.svelte';
|
||||||
|
|
||||||
// Search:
|
// Search:
|
||||||
let searchTerm = '';
|
let searchTerm = '';
|
||||||
@ -44,4 +45,7 @@
|
|||||||
<SvgCard svgInfo={svg} />
|
<SvgCard svgInfo={svg} />
|
||||||
{/each}
|
{/each}
|
||||||
</Grid>
|
</Grid>
|
||||||
|
{#if filteredSvgs.length === 0}
|
||||||
|
<NotFound notFoundTerm={searchTerm} />
|
||||||
|
{/if}
|
||||||
</Container>
|
</Container>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user