Merge branch 'main' into midday

This commit is contained in:
Pablo Hdez
2023-12-12 09:41:08 +00:00
committed by GitHub
46 changed files with 860 additions and 9 deletions
+1 -1
View File
@@ -29,7 +29,7 @@
</head>
<body
data-sveltekit-preload-data="hover"
class="min-h-screen bg-light font-sans text-mini dark:bg-dark dark:text-white"
class="min-h-screen bg-light font-sans text-mini dark:bg-dark dark:text-white antialiased"
>
<div>%sveltekit.body%</div>
</body>
+50 -3
View File
@@ -41,7 +41,16 @@
<CardSpotlight>
<div class="flex flex-col items-center justify-center rounded-md p-4">
<img src={svgInfo.route} alt={svgInfo.title} class="mb-4 mt-2 h-10" />
<img
class="hidden dark:block mb-4 mt-2 h-10"
src={typeof svgInfo.route !== 'string' ? svgInfo.route.dark : svgInfo.route}
alt={svgInfo.title}
/>
<img
class="block dark:hidden mb-4 mt-2 h-10"
src={typeof svgInfo.route !== 'string' ? svgInfo.route.light : svgInfo.route}
alt={svgInfo.title}
/>
<div class="mb-3 flex flex-col items-center justify-center">
<p class="truncate text-[15px] font-medium">{svgInfo.title}</p>
<a
@@ -53,7 +62,26 @@
<button
title="Copy to clipboard"
on:click={() => {
copyToClipboard(svgInfo.route);
const svgHasTheme = typeof svgInfo.route !== 'string';
if (!svgHasTheme) {
copyToClipboard(
typeof svgInfo.route === 'string'
? svgInfo.route
: "Something went wrong. Couldn't copy the SVG."
);
return;
}
const dark = document.documentElement.classList.contains('dark');
copyToClipboard(
typeof svgInfo.route !== 'string'
? dark
? svgInfo.route.dark
: svgInfo.route.light
: svgInfo.route
);
}}
class="flex items-center space-x-2 rounded-md p-2 duration-100 hover:bg-neutral-200 dark:hover:bg-neutral-700/40"
>
@@ -62,7 +90,26 @@
<button
title="Download"
on:click={() => {
downloadSvg(svgInfo.route);
const svgHasTheme = typeof svgInfo.route !== 'string';
if (!svgHasTheme) {
downloadSvg(
typeof svgInfo.route === 'string'
? svgInfo.route
: "Something went wrong. Couldn't copy the SVG."
);
return;
}
const dark = document.documentElement.classList.contains('dark');
downloadSvg(
typeof svgInfo.route !== 'string'
? dark
? svgInfo.route.dark
: svgInfo.route.light
: svgInfo.route
);
}}
class="flex items-center space-x-2 rounded-md p-2 duration-100 hover:bg-neutral-200 dark:hover:bg-neutral-700/40"
>
+283 -4
View File
@@ -1592,6 +1592,13 @@ export const svgs: iSVG[] = [
},
{
id: 228,
title: 'Salesforce',
category: 'Software',
route: '/library/salesforce.svg',
url: 'https://www.salesforce.com'
},
{
id: 4929293,
title: 'Unreal Engine',
category: 'Software',
route: '/library/unreal_engine.svg',
@@ -1618,6 +1625,69 @@ export const svgs: iSVG[] = [
route: '/library/randevum.svg',
url: 'https://www.randevum.co'
},
{
id: 232,
title: 'Chromium',
category: 'Browser',
route: '/library/chromium.svg',
url: 'https://www.chromium.org'
},
{
id: 233,
title: 'Edge',
category: 'Browser',
route: '/library/edge.svg',
url: 'https://www.microsoft.com/en-us/edge'
},
{
id: 234,
title: 'Safari',
category: 'Browser',
route: '/library/safari.svg',
url: 'https://www.apple.com/safari'
},
{
id: 235,
title: 'Vivaldi',
category: 'Browser',
route: '/library/vivaldi.svg',
url: 'https://vivaldi.com'
},
{
id: 293291,
title: 'Beacon',
category: 'Software',
route: '/library/Beacon-Logo.svg',
url: 'https://www.beacon.com'
},
{
id: 95775,
title: 'Affinity Designer',
category: 'Design',
route: '/library/affinity_designer.svg',
url: 'https://affinity.serif.com/en-us/designer/'
},
{
id: 44448,
title: 'Affinity Photo',
category: 'Software',
route: '/library/affinity_photo.svg',
url: 'https://affinity.serif.com/en-us/photo/'
},
{
id: 39170,
title: 'Affinity Publisher',
category: 'Software',
route: '/library/affinity_publisher.svg',
url: 'https://affinity.serif.com/en-us/publisher/'
},
{
id: 24525,
title: 'Roblox',
category: 'Software',
route: '/library/roblox.svg',
url: 'https://www.roblox.com/'
},
{
id: 68067,
title: 'Stately.ai',
@@ -1626,13 +1696,13 @@ export const svgs: iSVG[] = [
url: 'https://stately.ai/'
},
{
id: 68068,
id: 233,
title: 'XState',
category: 'Library',
route: '/library/xstate.svg',
url: 'https://github.com/statelyai/xstate'
},
{
{
id: 232,
title: 'Hashnode',
category: 'Social',
@@ -1640,14 +1710,14 @@ export const svgs: iSVG[] = [
url: 'https://hashnode.com'
},
{
id: 69114,
id: 235,
title: 'Rowy',
category: 'CMS',
route: '/library/rowy.svg',
url: 'https://www.rowy.io/'
},
{
id: 12251,
id: 236,
title: 'BuildShip',
category: 'AI',
route: '/library/buildship.svg',
@@ -1666,5 +1736,214 @@ export const svgs: iSVG[] = [
category: 'Software',
route: '/library/midday.svg',
url: 'https://midday.ai'
},
{
id: 238,
title: 'Cursor AI',
category: 'Software',
route: '/library/cursor.svg',
url: 'https://cursor.sh/'
},
{
id: 239,
title: 'Calendly',
category: 'Software',
route: '/library/calendly.svg',
url: 'https://calendly.com/'
},
{
id: 240,
title: 'Mintlify',
category: 'Software',
route: '/library/mintlify.svg',
url: 'https://mintlify.com/'
},
{
id: 241,
title: 'Patreon',
category: 'Software',
route: '/library/patreon.svg',
url: 'https://www.patreon.com/'
},
{
id: 242,
title: 'Peerlist',
category: 'Social',
route: '/library/peerlist.svg',
url: 'https://www.peerlist.io/'
},
{
id: 243,
title: 'Product Hunt',
category: 'Software',
route: '/library/producthunt.svg',
url: 'https://www.producthunt.com/'
},
{
id: 244,
title: 'Remotion',
category: 'Framework',
route: '/library/remotion.svg',
url: 'https://www.remotion.dev/'
},
{
id: 245,
title: 'Warp',
category: 'Software',
route: '/library/warp.svg',
url: 'https://www.warp.dev/'
},
{
id: 706747866206488963651,
title: 'SST',
category: 'Framework',
route: '/library/sst.svg',
url: 'https://sst.dev/'
},
{
id: 2342453,
title: 'Documenso',
category: 'Software',
route: '/library/documenso.svg',
url: 'https://documenso.com'
},
{
id: 326851,
title: 'Bash',
category: 'Language',
route: '/library/bash.svg',
url: 'https://www.gnu.org/software/bash/'
},
{
id: 740938,
title: 'C',
category: 'Language',
route: '/library/c.svg',
url: 'https://en.wikipedia.org/wiki/C_(programming_language)'
},
{
id: 156807,
title: 'C++',
category: 'Language',
route: '/library/c++.svg',
url: 'https://en.wikipedia.org/wiki/C%2B%2B'
},
{
id: 854167,
title: 'Cobol',
category: 'Language',
route: '/library/cobol.svg',
url: 'https://en.wikipedia.org/wiki/COBOL'
},
{
id: 473965,
title: 'Fortran',
category: 'Language',
route: '/library/fortran.svg',
url: 'https://en.wikipedia.org/wiki/Fortran'
},
{
id: 429673,
title: 'Haskell',
category: 'Language',
route: '/library/haskell.svg',
url: 'https://www.haskell.org/'
},
{
id: 907583,
title: 'matlab',
category: 'Language',
route: '/library/matlab.svg',
url: 'https://www.mathworks.com/products/matlab.html'
},
{
id: 754396,
title: 'R',
category: 'Language',
route: '/library/r.svg',
url: 'https://www.r-project.org/'
},
{
id: 783625,
title: 'Rust',
category: 'Language',
route: '/library/rust.svg',
url: 'https://www.rust-lang.org/'
},
{
id: 586019,
title: 'Zig',
category: 'Language',
route: '/library/zig.svg',
url: 'https://ziglang.org/'
},
{
id: 233,
title: 'Instatus',
category: 'Software',
route: '/library/instatus.svg',
url: 'https://instatus.com'
},
{
id: 6676113873388621,
title: 'Front',
category: 'Software',
route: '/library/front.svg',
url: 'https://front.com'
},
{
id: 473836,
title: 'Monero',
category: 'Crypto',
route: '/library/monero.svg',
url: 'https://www.getmonero.org/'
},
{
id: 775133760594,
title: 'Axiom',
category: 'Software',
route: {
dark: '/library/axiom-dark.svg',
light: '/library/axiom-light.svg'
},
url: 'https://axiom.co/'
},
{
id: 382900874177765,
title: 'ArtisanLabs',
category: 'Software',
route: '/library/ArtisanLabs.svg',
url: 'https://artisanlabs.io'
},
{
id: 14839,
title: 'Django',
category: 'Framework',
route: '/library/django.svg',
url: 'https://www.djangoproject.com/'
},
{
id: 246,
title: 'Zeabur',
category: 'Hosting',
route: {
light: '/library/zeabur-light.svg',
dark: '/library/zeabur-dark.svg'
},
url: 'https://zeabur.com/'
},
{
id: 247,
title: 'MetaMask',
category: 'Crypto',
route: '/library/metamask.svg',
url: 'https://metamask.io/'
},
{
id: 248,
title: 'shadcn/ui',
category: 'Library',
route: '/library/shadcn-ui.svg',
url: 'https://ui.shadcn.com/'
}
];
+6 -1
View File
@@ -4,6 +4,11 @@ export interface iSVG {
id: number;
title: string;
category: tCategory;
route: string;
route:
| string // for backwards compat of when theme support was not added
| {
dark: string;
light: string;
};
url: string;
}