mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
♻️ Organize SVGs components, create svgs folder
This commit is contained in:
@@ -6,9 +6,9 @@
|
|||||||
import XIcon from "@lucide/svelte/icons/x";
|
import XIcon from "@lucide/svelte/icons/x";
|
||||||
import TagIcon from "@lucide/svelte/icons/tag";
|
import TagIcon from "@lucide/svelte/icons/tag";
|
||||||
import LinkIcon from "@lucide/svelte/icons/link";
|
import LinkIcon from "@lucide/svelte/icons/link";
|
||||||
|
import PaletteIcon from "@lucide/svelte/icons/palette";
|
||||||
import SparklesIcon from "@lucide/svelte/icons/sparkles";
|
import SparklesIcon from "@lucide/svelte/icons/sparkles";
|
||||||
import BaselineIcon from "@lucide/svelte/icons/baseline";
|
import BaselineIcon from "@lucide/svelte/icons/baseline";
|
||||||
import PaletteIcon from "@lucide/svelte/icons/palette";
|
|
||||||
import EllipsisIcon from "@lucide/svelte/icons/ellipsis";
|
import EllipsisIcon from "@lucide/svelte/icons/ellipsis";
|
||||||
|
|
||||||
// UI Components:
|
// UI Components:
|
||||||
@@ -17,10 +17,9 @@
|
|||||||
import { Button, buttonVariants } from "@/components/ui/button";
|
import { Button, buttonVariants } from "@/components/ui/button";
|
||||||
|
|
||||||
// Components:
|
// Components:
|
||||||
import CopySvg from "@/components/copySvg.svelte";
|
import CopySvg from "@/components/svgs/copySvg.svelte";
|
||||||
import DownloadSvg from "@/components/downloadSvg.svelte";
|
import DownloadSvg from "@/components/svgs/downloadSvg.svelte";
|
||||||
import Heart from "@lucide/svelte/icons/heart";
|
import AddToFavorite from "@/components/addToFavorite.svelte";
|
||||||
import AddToFavorite from "./addToFavorite.svelte";
|
|
||||||
|
|
||||||
// Props:
|
// Props:
|
||||||
interface Props {
|
interface Props {
|
||||||
@@ -9,8 +9,8 @@
|
|||||||
// Components:
|
// Components:
|
||||||
import Grid from "@/components/grid.svelte";
|
import Grid from "@/components/grid.svelte";
|
||||||
import Search from "@/components/search.svelte";
|
import Search from "@/components/search.svelte";
|
||||||
import SvgCard from "@/components/svgCard.svelte";
|
import SvgCard from "@/components/svgs/svgCard.svelte";
|
||||||
import SortSvgs from "@/components/sortSvgs.svelte";
|
import SortSvgs from "@/components/svgs/sortSvgs.svelte";
|
||||||
import Container from "@/components/container.svelte";
|
import Container from "@/components/container.svelte";
|
||||||
|
|
||||||
import PageCard from "@/components/pageCard.svelte";
|
import PageCard from "@/components/pageCard.svelte";
|
||||||
@@ -105,9 +105,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Container className="my-6">
|
<Container className="my-6">
|
||||||
<Grid
|
<Grid>
|
||||||
className="animate-in fill-mode-backwards fade-in slide-in-from-bottom-4 duration-500"
|
|
||||||
>
|
|
||||||
{#each displaySvgs as svg}
|
{#each displaySvgs as svg}
|
||||||
<SvgCard svgInfo={svg} />
|
<SvgCard svgInfo={svg} />
|
||||||
{/each}
|
{/each}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
// Components:
|
// Components:
|
||||||
import Grid from "@/components/grid.svelte";
|
import Grid from "@/components/grid.svelte";
|
||||||
import Search from "@/components/search.svelte";
|
import Search from "@/components/search.svelte";
|
||||||
import SvgCard from "@/components/svgCard.svelte";
|
import SvgCard from "@/components/svgs/svgCard.svelte";
|
||||||
import Container from "@/components/container.svelte";
|
import Container from "@/components/container.svelte";
|
||||||
|
|
||||||
import PageCard from "@/components/pageCard.svelte";
|
import PageCard from "@/components/pageCard.svelte";
|
||||||
@@ -116,9 +116,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Container className="my-6">
|
<Container className="my-6">
|
||||||
<Grid
|
<Grid>
|
||||||
className="animate-in fill-mode-backwards fade-in slide-in-from-bottom-4 duration-500"
|
|
||||||
>
|
|
||||||
{#each filteredSvgs as svg}
|
{#each filteredSvgs as svg}
|
||||||
<SvgCard svgInfo={svg} />
|
<SvgCard svgInfo={svg} />
|
||||||
{/each}
|
{/each}
|
||||||
|
|||||||
Reference in New Issue
Block a user