diff --git a/.vscode/settings.json b/.vscode/settings.json index 02fc543..90767c9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,6 @@ { "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" }, "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true, diff --git a/README.md b/README.md index d0f3456..78cc9b5 100644 --- a/README.md +++ b/README.md @@ -80,9 +80,12 @@ yarn install 4. Go to the [**`src/data/svgs.ts`**](https://github.com/pheralb/svgl/blob/main/src/data/svgs.ts) and add the information about your logo, following the structure: +> [!IMPORTANT] +> To avoid conflicts with other svgs IDs, generate a short random number for the id: [Generate (only check 'include numbers')](https://nanoid.yuuniworks.com/). + ```json { - "id": 1, + "id": 45248, "title": "Title", "category": "Category", "route": "/library/your_logo.svg", diff --git a/src/app.html b/src/app.html index f3f9eab..6f17e09 100644 --- a/src/app.html +++ b/src/app.html @@ -1,4 +1,4 @@ - + @@ -27,7 +27,10 @@ A beautiful library with SVG logos - Svgl %sveltekit.head% - +
%sveltekit.body%
diff --git a/src/data/svgs.ts b/src/data/svgs.ts index a720ff6..d3dbe06 100644 --- a/src/data/svgs.ts +++ b/src/data/svgs.ts @@ -1592,30 +1592,59 @@ export const svgs: iSVG[] = [ }, { id: 228, + title: 'Unreal Engine', + category: 'Software', + route: '/library/unreal_engine.svg', + url: 'https://www.unrealengine.com/' + }, + { + id: 229, + title: 'Godot Engine', + category: 'Software', + route: '/library/godot_engine.svg', + url: 'https://godotengine.org/' + }, + { + id: 230, + title: 'Datadog', + category: 'Software', + route: '/library/datadog.svg', + url: 'https://www.datadoghq.com/' + }, + { + id: 231, + title: 'Randevum', + category: 'Software', + 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: 229, + id: 233, title: 'Edge', category: 'Browser', route: '/library/edge.svg', url: 'https://www.microsoft.com/en-us/edge' }, { - id: 229, + id: 234, title: 'Safari', category: 'Browser', route: '/library/safari.svg', url: 'https://www.apple.com/safari' }, { - id: 230, + id: 235, title: 'Vivaldi', category: 'Browser', route: '/library/vivaldi.svg', url: 'https://vivaldi.com' } + ]; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index b5b4d0b..4f3f2d4 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -28,7 +28,7 @@ import Theme from '@/components/theme.svelte'; -
+