mirror of
https://github.com/pheralb/svgl.git
synced 2024-11-10 14:46:54 +08:00
📚一个拥有 SVG 徽标的美丽图书馆。使用 Sveltekit 与 Tailwind CSS 构建。
https://svgl.app/
data | ||
public | ||
src | ||
.eslintrc.json | ||
.gitignore | ||
LICENSE | ||
next-env.d.ts | ||
next.config.js | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json | ||
vitest.config.ts |
📦 Packages:
- ⚡️ Nextjs - The React Framework for Production.
- ⚒️ React 18 - A JavaScript library for building user interfaces.
- 💙 Typescript - A superset of JavaScript.
- ✅ Vitest - A blazing fast unit test framework.
- 💅 Chakra UI - Create accessible React apps with speed.
- 💥 Framer Motion - Production-ready motion library.
- 💖 Phosphor-Icons - A flexible icon family for everyone.
- ⬇️ Next-PWA - Zero config PWA plugin for Next.js, with workbox.
🚀 Getting started:
You need:
- Clone the repository:
git@github.com:pheralb/svgl.git
- Install dependencies:
npm install
# or
yarn install
- Run:
npm run dev
# or
yarn dev
- Test & Build:
npm run ready
# or
yarn ready
🥳 Open localhost:3000 with your browser to see the result.
🚂 Endpoints:
- /api/all: returns all the logos in the /data/ folder.
- /api/search?id=2: returns the logo with id 2.
- /api/search?name=logo: returns the logo with name logo.
⚒️ Shortcuts:
- ⭐ SVG Library: /public/library/.
- ✍️ SVG JSON logos: /data/.
🔑 License:
- MIT.