📚一个拥有 SVG 徽标的美丽图书馆。使用 Sveltekit 与 Tailwind CSS 构建。 https://svgl.app/
Go to file
2023-12-16 20:18:23 +00:00
.github 🔧 Add check-size workflow. 2023-12-16 20:11:43 +00:00
.vscode 🔧 Update vscode settings. 2023-12-14 12:21:54 +00:00
check-size 🔧 Clean check-size output. 2023-12-16 20:18:23 +00:00
src 🧹 Clean comments. 2023-12-16 20:11:19 +00:00
static 🐛 Merge branch 'main' of github.com:pheralb/svgl into next. 2023-12-16 17:45:22 +00:00
.eslintignore 🧡 Initial commit with Sveltekit. 2023-03-14 21:08:22 +00:00
.eslintrc.cjs 🔨 Update eslint config. 2023-07-07 09:16:54 +01:00
.gitignore 🐛 Merge branch 'main' of github.com:pheralb/svgl into next. 2023-12-16 17:45:22 +00:00
.npmrc 🧡 Initial commit with Sveltekit. 2023-03-14 21:08:22 +00:00
.prettierignore 🧡 Initial commit with Sveltekit. 2023-03-14 21:08:22 +00:00
.prettierrc 🛠️ Update prettier json. 2023-03-15 11:27:46 +00:00
LICENSE 📝 Update license. 2023-03-20 00:39:40 +00:00
package.json ⬆️ Upgrade to Sveltekit v2. 2023-12-16 17:07:22 +00:00
pnpm-lock.yaml ⬆️ Upgrade to Sveltekit v2. 2023-12-16 17:07:22 +00:00
postcss.config.cjs 🛠️ Add tailwindcss. 2023-03-15 11:28:22 +00:00
prettier.config.cjs 🛠️ Add prettier-plugin-tailwindcss. 2023-03-15 12:11:13 +00:00
README.md 📝 Update readme. 2023-12-16 20:09:20 +00:00
svelte.config.js 🔧 Update vite-plugin-svelte. 2023-12-16 17:07:44 +00:00
tailwind.config.cjs 🚀 Merge branch 'main' of github.com:pheralb/svgl into next. 2023-12-14 13:32:52 +00:00
tsconfig.json 🔧 Update tsconfig. 2023-12-16 20:10:57 +00:00
vercel.json 🛠 Create vercel.json. 2023-03-16 10:23:17 +00:00
vite.config.ts 🚀 Initial sveltekit config. 2023-03-15 11:29:15 +00:00

Svelte Badge Build Status GitHub stars GitHub issues GitHub forks GitHub PRs Tailwind CSS Badge

🛠️ Stack

🚀 Getting Started

You will need:

  1. Clone or fork this repository:
git clone git@github.com:pheralb/svgl.git
  1. Install dependencies:
# with pnpm (recommended):
pnpm install

# with npm:
npm install
  1. Go to the static/library folder and add your .svg logo.

Warning

Remember to optimize SVG for web, you can use SVGOMG. The size limit for each .svg is 20kb.

  1. Go to the src/data/svgs.ts and add the information about your logo, following the structure:
{
  "title": "Title",
  "category": "Category",
  "route": "/library/your_logo.svg",
  "url": "Website"
},

or to support a different logo for light and dark themes:

{
  "title": "Title",
  "category": "Category",
  "route": {
    "light": "/library/your_logo_light.svg",
    "dark": "/library/your_logo_dark.svg"
  },
  "url": "Website"
},

Note

The list of categories is here: src/types/categories.ts. If you want to add a new category, you can do it.

And create a pull request with your logo 🚀.

✌️ Contributing

🔑 License