mirror of
https://github.com/pheralb/svgl.git
synced 2025-02-06 15:08:07 +08:00
Merge branch 'main' into main
This commit is contained in:
commit
ccc135abaf
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -1,6 +1,6 @@
|
||||
{
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": true
|
||||
"source.fixAll.eslint": "explicit"
|
||||
},
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"editor.formatOnSave": true,
|
||||
|
@ -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",
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
@ -27,7 +27,10 @@
|
||||
<title>A beautiful library with SVG logos - Svgl</title>
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
<body data-sveltekit-preload-data="hover">
|
||||
<body
|
||||
data-sveltekit-preload-data="hover"
|
||||
class="min-h-screen bg-light font-sans text-mini dark:bg-dark dark:text-white"
|
||||
>
|
||||
<div>%sveltekit.body%</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1578,20 +1578,34 @@ export const svgs: iSVG[] = [
|
||||
},
|
||||
{
|
||||
id: 226,
|
||||
title: 'Dub',
|
||||
category: 'Software',
|
||||
route: '/library/dub.svg',
|
||||
url: 'https://dub.co'
|
||||
},
|
||||
{
|
||||
id: 227,
|
||||
title: 'Opera',
|
||||
category: 'Browser',
|
||||
route: '/library/opera.svg',
|
||||
url: 'https://www.opera.com'
|
||||
},
|
||||
{
|
||||
id: 228,
|
||||
title: 'Unreal Engine',
|
||||
category: 'Software',
|
||||
route: '/library/unreal_engine.svg',
|
||||
url: 'https://www.unrealengine.com/'
|
||||
},
|
||||
{
|
||||
id: 227,
|
||||
id: 229,
|
||||
title: 'Godot Engine',
|
||||
category: 'Software',
|
||||
route: '/library/godot_engine.svg',
|
||||
url: 'https://godotengine.org/'
|
||||
},
|
||||
{
|
||||
id: 228,
|
||||
id: 230,
|
||||
title: 'Datadog',
|
||||
category: 'Software',
|
||||
route: '/library/datadog.svg',
|
||||
|
@ -28,7 +28,7 @@
|
||||
import Theme from '@/components/theme.svelte';
|
||||
</script>
|
||||
|
||||
<main class="min-h-screen bg-light font-sans text-mini dark:bg-dark dark:text-white">
|
||||
<main>
|
||||
<nav
|
||||
class="z-50 w-full overflow-y-auto overflow-x-hidden border-b border-neutral-300 dark:border-neutral-800 md:fixed md:left-0 md:top-0 md:h-full md:w-60 md:border-none md:pb-10"
|
||||
>
|
||||
|
17
static/library/dub.svg
Normal file
17
static/library/dub.svg
Normal file
@ -0,0 +1,17 @@
|
||||
<svg width="191" height="191" viewBox="0 0 191 191" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_36_30)">
|
||||
<path d="M191 95.5C191 148.243 148.243 191 95.5 191C42.7568 191 0 148.243 0 95.5C0 42.7568 42.7568 0 95.5 0C148.243 0 191 42.7568 191 95.5Z" fill="black"/>
|
||||
<mask id="mask0_36_30" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="191" height="191">
|
||||
<path d="M191 95.5C191 148.243 148.243 191 95.5 191C42.7568 191 0 148.243 0 95.5C0 42.7568 42.7568 0 95.5 0C148.243 0 191 42.7568 191 95.5Z" fill="black"/>
|
||||
</mask>
|
||||
<g mask="url(#mask0_36_30)">
|
||||
<circle cx="95" cy="100" r="49" fill="white"/>
|
||||
<path d="M122 -14H144V148H122V-14Z" fill="white"/>
|
||||
</g>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_36_30">
|
||||
<rect width="191" height="191" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 811 B |
16
static/library/opera.svg
Normal file
16
static/library/opera.svg
Normal file
@ -0,0 +1,16 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 1000 1000">
|
||||
<linearGradient id="a" x1="416.6229" x2="416.6229" y1="16.304" y2="985.446" gradientUnits="userSpaceOnUse">
|
||||
<stop offset=".3" stop-color="#ff1b2d"/>
|
||||
<stop offset=".4381" stop-color="#fa1a2c"/>
|
||||
<stop offset=".5939" stop-color="#ed1528"/>
|
||||
<stop offset=".7581" stop-color="#d60e21"/>
|
||||
<stop offset=".9272" stop-color="#b70519"/>
|
||||
<stop offset="1" stop-color="#a70014"/>
|
||||
</linearGradient>
|
||||
<path fill="url(#a)" d="M335.4 781.8c-55.3-65.3-91.1-161.7-93.5-270v-23.6c2.4-108.3 38.2-204.7 93.5-270C407.2 125.1 513.8 66 632.8 66c73.2 0 141.8 22.4 200.4 61.3C745.2 48.5 629.2.5 501.9 0H500C223.9 0 0 223.9 0 500c0 268.2 211.1 487 476.2 499.4 7.9.4 15.8.6 23.8.6 128 0 244.8-48.1 333.2-127.2-58.6 38.8-127.1 61.2-200.4 61.2-119 0-225.6-59.1-297.4-152.2z"/>
|
||||
<linearGradient id="b" x1="667.7092" x2="667.7092" y1="73.4257" y2="930.5844" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" stop-color="#9c0000"/>
|
||||
<stop offset=".7" stop-color="#ff4b4b"/>
|
||||
</linearGradient>
|
||||
<path fill="url(#b)" d="M335.4 218.2c45.9-54.2 105.1-86.8 169.9-86.8 145.6 0 263.5 165 263.5 368.6s-118 368.6-263.5 368.6c-64.7 0-124-32.7-169.9-86.8C407.2 874.9 513.8 934 632.8 934c73.2 0 141.8-22.4 200.4-61.2C935.6 781.2 1000 648.1 1000 500c0-148.1-64.4-281.2-166.8-372.7C774.6 88.4 706.1 66 632.8 66c-119 0-225.6 59.1-297.4 152.2z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.4 KiB |
Loading…
x
Reference in New Issue
Block a user