Skip to content

Commit

Permalink
🎨 Design improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
pheralb committed Jul 7, 2023
1 parent 3082244 commit c1d8b7d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/svgCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
const content = (await getSvgContent(url, false)) as string;
await navigator.clipboard.writeText(content);
}
toast.message('Copied to clipboard!', {
toast.success('Copied to clipboard!', {
description: `${svgInfo.title} - ${svgInfo.category}`
});
};
Expand Down
11 changes: 7 additions & 4 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
class="flex items-center space-x-2 duration-150 hover:text-neutral-500 dark:hover:text-neutral-300"
>
<h3 class="text-xl font-medium">svgl</h3>
<p class="text-neutral-500">v3.0.0</p>
<p class="text-neutral-500">v3.1.0</p>
</div>
</a>
<Theme />
Expand All @@ -54,7 +54,8 @@
${data.pathname === `/` ? 'bg-neutral-200 dark:bg-neutral-700/30' : ''}`}
data-sveltekit-preload-data>All</a
>
{#each categories as category}
<!-- Order alfabetically: -->
{#each categories.sort() as category}
<a
href={`/directory/${category.toLowerCase()}`}
class={`flex w-full items-center rounded-md p-2 transition-none duration-100 hover:bg-neutral-200 dark:hover:bg-neutral-700/40
Expand Down Expand Up @@ -86,8 +87,10 @@
<div class="flex items-center space-x-2">
<span class="flex items-center justify-center">Repository</span>
{#if data.stars}
<div class="flex items-center space-x-1 text-neutral-400">
<div><Star size={14} weight="duotone" /></div>
<div class="flex items-center space-x-1 text-neutral-600 dark:text-neutral-400">
<div>
<Star size={14} weight="duotone" class="text-yellow-700 dark:text-yellow-500" />
</div>
<span>{data.stars}</span>
</div>
{/if}
Expand Down
1 change: 1 addition & 0 deletions src/types/categories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export type tCategory =
| 'All'
| 'AI'
| 'Software'
| 'Library'
| 'Hosting'
Expand Down

1 comment on commit c1d8b7d

@vercel
Copy link

@vercel vercel bot commented on c1d8b7d Jul 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

svgl – ./

svgl-git-main-pheralb.vercel.app
svgl-pheralb.vercel.app
svgl.vercel.app

Please sign in to comment.