From 08c8a509e9acde5d6676a84e96168e3ed33ffaea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilo=20Avenda=C3=B1o?= Date: Sun, 22 Sep 2024 15:36:13 -0500 Subject: [PATCH 1/7] Added new category 'Cybersecurity' --- src/types/categories.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/categories.ts b/src/types/categories.ts index 7bd215b..6ef860c 100644 --- a/src/types/categories.ts +++ b/src/types/categories.ts @@ -12,6 +12,7 @@ export type tCategory = | 'Database' | 'Compiler' | 'Crypto' + | 'Cybersecurity' | 'Social' | 'Entertainment' | 'Browser' From d2264d07468654963563b8ab929c7be46a83694e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilo=20Avenda=C3=B1o?= Date: Sun, 22 Sep 2024 15:36:46 -0500 Subject: [PATCH 2/7] Add: Hack The Box logo --- src/data/svgs.ts | 10 ++++ static/library/hack-the-box-wordmark-dark.svg | 57 +++++++++++++++++++ .../library/hack-the-box-wordmark-light.svg | 1 + static/library/hack-the-box.svg | 33 +++++++++++ 4 files changed, 101 insertions(+) create mode 100644 static/library/hack-the-box-wordmark-dark.svg create mode 100644 static/library/hack-the-box-wordmark-light.svg create mode 100644 static/library/hack-the-box.svg diff --git a/src/data/svgs.ts b/src/data/svgs.ts index 19f7c46..4ab8467 100644 --- a/src/data/svgs.ts +++ b/src/data/svgs.ts @@ -1,6 +1,16 @@ import type { iSVG } from '../types/svg'; export const svgs: iSVG[] = [ + { + title: 'Hack The Box', + category: 'Cybersecurity', + route: '/library/hack-the-box.svg', + wordmark: { + light: '/library/hack-the-box-wordmark-light.svg', + dark: '/library/hack-the-box-wordmark-dark.svg' + }, + url: 'https://www.hackthebox.com/' + }, { title: 'Milanote', category: 'Software', diff --git a/static/library/hack-the-box-wordmark-dark.svg b/static/library/hack-the-box-wordmark-dark.svg new file mode 100644 index 0000000..0854521 --- /dev/null +++ b/static/library/hack-the-box-wordmark-dark.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + diff --git a/static/library/hack-the-box-wordmark-light.svg b/static/library/hack-the-box-wordmark-light.svg new file mode 100644 index 0000000..7713e9a --- /dev/null +++ b/static/library/hack-the-box-wordmark-light.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/library/hack-the-box.svg b/static/library/hack-the-box.svg new file mode 100644 index 0000000..e2fa305 --- /dev/null +++ b/static/library/hack-the-box.svg @@ -0,0 +1,33 @@ + + + + + + From 1108b024a1e4a5fee41787048b1fa704eec02b22 Mon Sep 17 00:00:00 2001 From: ridemountainpig Date: Thu, 10 Oct 2024 11:37:55 +0800 Subject: [PATCH 3/7] fix: wordmark SVG error --- src/components/svgCard.svelte | 10 ++++++++-- src/routes/+page.svelte | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/svgCard.svelte b/src/components/svgCard.svelte index 5cda850..078370b 100644 --- a/src/components/svgCard.svelte +++ b/src/components/svgCard.svelte @@ -28,6 +28,7 @@ // Props: export let svgInfo: iSVG; + export let searchTerm: string; let isInFigma = false; onMount(() => { @@ -37,6 +38,11 @@ // Wordmark SVG: let wordmarkSvg = false; + $: { + if (searchTerm) { + wordmarkSvg = false; + } + } const insertSVG = async (url?: string) => { const content = (await getSvgContent(url)) as string; @@ -59,7 +65,7 @@ class="group flex flex-col items-center justify-center rounded-md border border-neutral-200 p-4 transition-colors duration-100 hover:bg-neutral-100/80 dark:border-neutral-800 dark:hover:bg-neutral-800/20" > - {#if wordmarkSvg == true} + {#if wordmarkSvg == true && svgInfo.wordmark !== undefined} {/if} - {#if wordmarkSvg} + {#if wordmarkSvg && svgInfo.wordmark !== undefined} {:else} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 021e713..a06b2cb 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -134,7 +134,7 @@ {#each filteredSvgs.slice(0, showAll ? undefined : 30) as svg} - + {/each} {#if filteredSvgs.length > 30 && !showAll} From bf6aa58ac0fac0ae610d5db55f2d8693a06b1161 Mon Sep 17 00:00:00 2001 From: pheralb Date: Mon, 14 Oct 2024 14:13:10 +0100 Subject: [PATCH 4/7] =?UTF-8?q?=F0=9F=93=A6=20Add=20``Carrd``=20svg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/data/svgs.ts | 16 +++++++++++----- static/library/carrd.svg | 1 + 2 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 static/library/carrd.svg diff --git a/src/data/svgs.ts b/src/data/svgs.ts index 4d09831..9c47c4b 100644 --- a/src/data/svgs.ts +++ b/src/data/svgs.ts @@ -2965,11 +2965,17 @@ export const svgs: iSVG[] = [ { title: 'MediaWiki', category: ['Software', 'CMS'], - "route": "/library/mediawiki.svg", - "wordmark": { - "light": "/library/mediawiki-wordmark-light.svg", - "dark": "/library/mediawiki-wordmark-dark.svg" + route: '/library/mediawiki.svg', + wordmark: { + light: '/library/mediawiki-wordmark-light.svg', + dark: '/library/mediawiki-wordmark-dark.svg' }, - "url": "https://www.mediawiki.org/" + url: 'https://www.mediawiki.org/' + }, + { + title: 'Carrd', + category: ['Social'], + route: '/library/carrd.svg', + url: 'https://carrd.co/' } ]; diff --git a/static/library/carrd.svg b/static/library/carrd.svg new file mode 100644 index 0000000..6d17e3a --- /dev/null +++ b/static/library/carrd.svg @@ -0,0 +1 @@ + \ No newline at end of file From 5c8931f5f6a7cbbb2e8d67fba9b80a291d3c2de6 Mon Sep 17 00:00:00 2001 From: pheralb Date: Mon, 14 Oct 2024 14:29:11 +0100 Subject: [PATCH 5/7] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20Add=20new=20request-sv?= =?UTF-8?q?g=20issue=20template?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/request-svg-.md | 23 ------- .github/ISSUE_TEMPLATE/request-svg.yml | 92 ++++++++++++++++++++++++++ 2 files changed, 92 insertions(+), 23 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/request-svg-.md create mode 100644 .github/ISSUE_TEMPLATE/request-svg.yml diff --git a/.github/ISSUE_TEMPLATE/request-svg-.md b/.github/ISSUE_TEMPLATE/request-svg-.md deleted file mode 100644 index 1e15060..0000000 --- a/.github/ISSUE_TEMPLATE/request-svg-.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -name: Request SVG. -about: Request an SVG here. -title: 'πŸ”” [Request]:' -labels: request ---- - -## πŸ”Ž Information: - -> **All fields are required**: - -- **Title**: -- **Category** ([check categories](https://github.com/pheralb/svgl/blob/main/src/types/categories.ts#L1)): -- **Source (.svg)** (type the link of the svg): -- **Company/Product Website**: - -## πŸ“ Checklist: - -> **Make sure that you have completed the following steps**: - -- [x] I have permission to use this logo. -- [x] The link I have provided is optimized for web use. -- [x] The size of the SVG is less than **20kb**. diff --git a/.github/ISSUE_TEMPLATE/request-svg.yml b/.github/ISSUE_TEMPLATE/request-svg.yml new file mode 100644 index 0000000..003af14 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/request-svg.yml @@ -0,0 +1,92 @@ +name: πŸ”” Request SVG +description: Request a new SVG icon to be added to the collection. +title: '[πŸ”” Request SVG]: ' +labels: [request] +body: + - type: markdown + attributes: + value: | + πŸ‘‹ Thanks for requesting a new SVG icon! Please fill out the form below to help us understand your request better: + + - type: input + id: svg-name + attributes: + label: Title + description: Product name, brand name. + placeholder: SVGL + validations: + required: true + + - type: input + id: svg-url + attributes: + label: SVG URL + description: The URL to the SVG file. + placeholder: https://website.com/logo.svg + validations: + required: true + + - type: input + id: svg-url-dark + attributes: + label: SVG Dark Mode URL (optional) + description: The URL to the SVG file for dark mode. + placeholder: https://website.com/logo-dark.svg + validations: + required: false + + - type: input + id: svg-product-url + attributes: + label: Product URL + description: The URL to the product or brand. + placeholder: https://website.com + validations: + required: true + + - type: dropdown + id: svg-category + attributes: + label: Category + description: Category/Categories of the product. If the category does not exist, select β€œOthers”. + multiple: true + options: + - AI + - Software + - Hardware + - Library + - Hosting + - Framework + - Devtool + - Monorepo + - CMS + - Database + - Compiler + - Crypto + - Cybersecurity + - Social + - Entertainment + - Browser + - Language + - Education + - Design + - Community + - Marketplace + - Music + - Vercel + - Google + - Payment + - void(0) + - Other + + - type: checkboxes + id: terms + attributes: + label: Checklist + options: + - label: I have permission to use this logo. + required: true + - label: The .svg URL I have provided is optimized for web use. + required: true + - label: The .svg size is less than **20kb**. + required: true From 2b0a46a7ec401ca936e0df9a4195dbdf74aee038 Mon Sep 17 00:00:00 2001 From: pheralb Date: Mon, 14 Oct 2024 17:55:35 +0100 Subject: [PATCH 6/7] =?UTF-8?q?=F0=9F=93=A6=20Update=20Claude=20AI=20logo?= =?UTF-8?q?=20+=20add=20UnoCSS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/data/svgs.ts | 22 ++++++++++++++----- static/library/claude-ai-icon.svg | 1 + .../library/claude-ai-wordmark-icon_dark.svg | 1 + .../library/claude-ai-wordmark-icon_light.svg | 1 + static/library/unocss.svg | 1 + 5 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 static/library/claude-ai-icon.svg create mode 100644 static/library/claude-ai-wordmark-icon_dark.svg create mode 100644 static/library/claude-ai-wordmark-icon_light.svg create mode 100644 static/library/unocss.svg diff --git a/src/data/svgs.ts b/src/data/svgs.ts index 9c47c4b..229ce59 100644 --- a/src/data/svgs.ts +++ b/src/data/svgs.ts @@ -2272,12 +2272,6 @@ export const svgs: iSVG[] = [ route: '/library/sourcegraph.svg', url: 'https://about.sourcegraph.com/' }, - { - title: 'Claude AI', - category: 'AI', - route: '/library/claude-ai.svg', - url: 'https://claude.ai/' - }, { title: 'Perplexity AI', category: 'AI', @@ -2977,5 +2971,21 @@ export const svgs: iSVG[] = [ category: ['Social'], route: '/library/carrd.svg', url: 'https://carrd.co/' + }, + { + title: 'Claude AI', + category: 'AI', + route: '/library/claude-ai-icon.svg', + wordmark: { + light: '/library/claude-ai-wordmark-icon_light.svg', + dark: '/library/claude-ai-wordmark-icon_dark.svg' + }, + url: 'https://claude.ai/' + }, + { + title: 'UnoCSS', + category: 'Devtool', + route: '/library/unocss.svg', + url: 'https://unocss.dev/' } ]; diff --git a/static/library/claude-ai-icon.svg b/static/library/claude-ai-icon.svg new file mode 100644 index 0000000..d300701 --- /dev/null +++ b/static/library/claude-ai-icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/library/claude-ai-wordmark-icon_dark.svg b/static/library/claude-ai-wordmark-icon_dark.svg new file mode 100644 index 0000000..bdb54e9 --- /dev/null +++ b/static/library/claude-ai-wordmark-icon_dark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/library/claude-ai-wordmark-icon_light.svg b/static/library/claude-ai-wordmark-icon_light.svg new file mode 100644 index 0000000..48ae968 --- /dev/null +++ b/static/library/claude-ai-wordmark-icon_light.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/library/unocss.svg b/static/library/unocss.svg new file mode 100644 index 0000000..dfdb22f --- /dev/null +++ b/static/library/unocss.svg @@ -0,0 +1 @@ + \ No newline at end of file From 6ad19d71f48aa34ebddae8ae1418ac1b607d6903 Mon Sep 17 00:00:00 2001 From: pheralb Date: Mon, 14 Oct 2024 18:23:27 +0100 Subject: [PATCH 7/7] =?UTF-8?q?=F0=9F=8E=A8=20Fix=20Python=20SVG=20propert?= =?UTF-8?q?ies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/library/python.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/library/python.svg b/static/library/python.svg index c260651..42396bb 100644 --- a/static/library/python.svg +++ b/static/library/python.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file