Design improvements.

This commit is contained in:
pheralb 2023-10-29 13:58:11 +00:00
parent 68c929b755
commit dfc975df71
5 changed files with 24 additions and 10 deletions

View File

@ -10,11 +10,11 @@
font-style: normal; font-style: normal;
} }
body { body,
nav {
--sb-track-color: #171717; --sb-track-color: #171717;
--sb-thumb-color: #404040; --sb-thumb-color: #404040;
--sb-size: 10px; --sb-size: 10px;
scrollbar-color: var(--sb-thumb-color) var(--sb-track-color); scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
} }
@ -29,3 +29,15 @@ body::-webkit-scrollbar-track {
body::-webkit-scrollbar-thumb { body::-webkit-scrollbar-thumb {
background: var(--sb-thumb-color); background: var(--sb-thumb-color);
} }
nav::-webkit-scrollbar {
width: var(--sb-size);
}
nav::-webkit-scrollbar-track {
background: var(--sb-track-color);
}
nav::-webkit-scrollbar-thumb {
background: var(--sb-thumb-color);
}

View File

@ -8,6 +8,7 @@
import DownloadSimple from 'phosphor-svelte/lib/DownloadSimple'; import DownloadSimple from 'phosphor-svelte/lib/DownloadSimple';
import Copy from 'phosphor-svelte/lib/Copy'; import Copy from 'phosphor-svelte/lib/Copy';
import Link from 'phosphor-svelte/lib/Link'; import Link from 'phosphor-svelte/lib/Link';
import Star from 'phosphor-svelte/lib/Star';
// Props: // Props:
export let svgInfo: iSVG; export let svgInfo: iSVG;
@ -31,6 +32,7 @@
await navigator.clipboard.writeText(content); await navigator.clipboard.writeText(content);
} }
toast.success('Copied to clipboard!', { toast.success('Copied to clipboard!', {
icon: Star,
description: `${svgInfo.title} - ${svgInfo.category}` description: `${svgInfo.title} - ${svgInfo.category}`
}); });
}; };

View File

@ -473,7 +473,7 @@ export const svgs: iSVG[] = [
{ {
id: 68, id: 68,
title: 'Arc', title: 'Arc',
category: 'Jobs', category: 'Social',
route: '/library/arc.svg', route: '/library/arc.svg',
url: 'https://arc.dev' url: 'https://arc.dev'
}, },
@ -1257,7 +1257,7 @@ export const svgs: iSVG[] = [
{ {
id: 180, id: 180,
title: 'Infojobs', title: 'Infojobs',
category: 'Jobs', category: 'Social',
route: '/library/infojobs-logo.svg', route: '/library/infojobs-logo.svg',
url: 'https://www.infojobs.net/' url: 'https://www.infojobs.net/'
}, },
@ -1498,5 +1498,5 @@ export const svgs: iSVG[] = [
category: 'Crypto', category: 'Crypto',
route: '/library/matic.svg', route: '/library/matic.svg',
url: 'https://polygon.technology/' url: 'https://polygon.technology/'
}, }
]; ];

View File

@ -38,7 +38,7 @@
class="flex items-center space-x-2 duration-150 hover:text-neutral-500 dark:hover:text-neutral-300" 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> <h3 class="text-xl font-medium">svgl</h3>
<p class="text-neutral-500">v3.2.0</p> <p class="text-neutral-500">v3.2.1</p>
</div> </div>
</a> </a>
<Theme /> <Theme />
@ -130,8 +130,9 @@
<Toaster <Toaster
position="bottom-right" position="bottom-right"
toastOptions={{ toastOptions={{
class: style: `background-color: #171717;
'font-sans dark:bg-neutral-800 dark:text-white bg-neutral-200 text-neutral-800 border dark:border-neutral-900 border-neutral-300' color: #ffff;
border-radius: 0.4rem; border: 1px solid #262626;`
}} }}
/> />
</div> </div>

View File

@ -13,5 +13,4 @@ export type tCategory =
| 'Entertainment' | 'Entertainment'
| 'Browser' | 'Browser'
| 'Language' | 'Language'
| 'Education' | 'Education';
| 'Jobs';