mirror of
https://github.com/pheralb/svgl.git
synced 2025-03-13 00:20:34 +08:00
💄 Design improvements, update layout content.
This commit is contained in:
parent
2b57fee182
commit
52f067f87a
@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
// Icons:
|
// Icons:
|
||||||
import Heart from 'phosphor-svelte/lib/Heart';
|
import Heart from 'phosphor-svelte/lib/Heart';
|
||||||
import ArrowLeft from 'phosphor-svelte/lib/ArrowLeft';
|
|
||||||
import { ArrowUpRight } from 'lucide-svelte';
|
import { ArrowUpRight } from 'lucide-svelte';
|
||||||
|
|
||||||
// Toaster:
|
// Toaster:
|
||||||
@ -21,7 +20,6 @@
|
|||||||
|
|
||||||
// Components for all pages:
|
// Components for all pages:
|
||||||
import Transition from '@/components/transition.svelte';
|
import Transition from '@/components/transition.svelte';
|
||||||
import Container from '@/components/container.svelte';
|
|
||||||
|
|
||||||
// Layout:
|
// Layout:
|
||||||
import Navbar from '@/components/navbar.svelte';
|
import Navbar from '@/components/navbar.svelte';
|
||||||
@ -79,19 +77,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
<div class="py-2 md:ml-56 md:py-2">
|
<div class="md:ml-56 pb-6">
|
||||||
{#if data.pathname !== '/' && data.pathname !== 'directory'}
|
|
||||||
<Container>
|
|
||||||
<a href="/">
|
|
||||||
<div
|
|
||||||
class="flex items-center space-x-2 duration-100 hover:text-neutral-500 dark:text-neutral-400 dark:hover:text-white"
|
|
||||||
>
|
|
||||||
<ArrowLeft size={20} />
|
|
||||||
<span>View all</span>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</Container>
|
|
||||||
{/if}
|
|
||||||
<Transition pathname={data.pathname}>
|
<Transition pathname={data.pathname}>
|
||||||
<slot />
|
<slot />
|
||||||
</Transition>
|
</Transition>
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
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';
|
import NotFound from '@/components/notFound.svelte';
|
||||||
|
import { cn } from '@/utils/cn';
|
||||||
|
|
||||||
// Search:
|
// Search:
|
||||||
let searchTerm = '';
|
let searchTerm = '';
|
||||||
@ -39,13 +40,14 @@
|
|||||||
<title>A beautiful library with SVG logos - Svgl</title>
|
<title>A beautiful library with SVG logos - Svgl</title>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
|
<Search
|
||||||
|
bind:searchTerm
|
||||||
|
on:input={searchSvgs}
|
||||||
|
clearSearch={() => clearSearch()}
|
||||||
|
placeholder={`Search ${filteredSvgs.length} logos...`}
|
||||||
|
/>
|
||||||
|
|
||||||
<Container>
|
<Container>
|
||||||
<Search
|
|
||||||
bind:searchTerm
|
|
||||||
on:input={searchSvgs}
|
|
||||||
clearSearch={() => clearSearch()}
|
|
||||||
placeholder={`Search ${filteredSvgs.length} logos...`}
|
|
||||||
/>
|
|
||||||
<Grid>
|
<Grid>
|
||||||
{#each filteredSvgs as svg}
|
{#each filteredSvgs as svg}
|
||||||
<SvgCard svgInfo={svg} />
|
<SvgCard svgInfo={svg} />
|
||||||
|
16
src/routes/directory/[slug]/+layout.svelte
Normal file
16
src/routes/directory/[slug]/+layout.svelte
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<script>
|
||||||
|
import Container from '@/components/container.svelte';
|
||||||
|
import { ArrowLeft } from 'lucide-svelte';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Container>
|
||||||
|
<a href="/">
|
||||||
|
<div
|
||||||
|
class="flex items-center space-x-2 duration-100 hover:text-neutral-500 dark:text-neutral-400 dark:hover:text-white"
|
||||||
|
>
|
||||||
|
<ArrowLeft size={20} />
|
||||||
|
<span>View all</span>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</Container>
|
||||||
|
<slot />
|
Loading…
x
Reference in New Issue
Block a user