🛠️ Create 'notFound' component.

This commit is contained in:
pheralb
2023-03-21 16:54:46 +00:00
parent b9bf4bf48a
commit cc0d49b30c
2 changed files with 26 additions and 0 deletions
+4
View File
@@ -10,6 +10,7 @@
import Grid from '@/components/grid.svelte';
import Search from '@/components/search.svelte';
import SvgCard from '@/components/svgCard.svelte';
import NotFound from '@/components/notFound.svelte';
// Search:
let searchTerm = '';
@@ -44,4 +45,7 @@
<SvgCard svgInfo={svg} />
{/each}
</Grid>
{#if filteredSvgs.length === 0}
<NotFound notFoundTerm={searchTerm} />
{/if}
</Container>