🛠️ Add notFound component.

This commit is contained in:
pheralb 2023-03-21 22:38:08 +00:00
parent cc0d49b30c
commit f38595d21c

View File

@ -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>