Giter VIP home page Giter VIP logo

svgl's Introduction

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

🛠️ Stack

🚀 Getting Started

Important

Before submitting the SVG, make sure that you have permission or that the license of the SVG allows you to add it to svgl. If you are not sure, please contact the company or author.

You will need:

  1. Fork this repository and clone it locally:
git clone [email protected]:your_username/svgl.git
  1. Install dependencies:
# Install pnpm globally if you don't have it:
npm install -g pnpm

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

Warning

  • Remember to optimize SVG for web, you can use SVGOMG.
  • When you optimize the SVG, make sure that the viewBox is not removed.
  • 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:
  • If the logo is a solid color:
{
  "title": "Title",
  "category": "Category",
  "route": "/library/your_logo.svg",
  "url": "Website"
}
  • If the logo has logo + wordmark version:
{
  "title": "Title",
  "category": "Category",
  "route": "/library/your_logo.svg",
  "wordmark": "/library/your_logo_wordmark.svg",
  "url": "Website"
}
  • If the logo/wordmark has light and dark mode:
{
  "title": "Title",
  "category": "Category",
  "route": {
    "light": "/library/your_logo_light.svg",
    "dark": "/library/your_logo_dark.svg"
  },
  "wordmark": {
    "light": "/library/your_wordmark-logo_light.svg",
    "dark": "/library/your_wordmark-logo_dark.svg"
  },
  "url": "Website"
}

Note

  • The list of categories is here: src/types/categories.ts. You can add a new category if you need it.
  • You can add multiple categories to the same logo, for example: "category": ["Social", "Design"] (max 3 categories per logo).

And create a pull request with your logo 🚀.

  1. (Optional) If you want to run the API locally, you will need to create a .env file in the root of the project with the following variables:
SVGL_API_REQUESTS = 1
UPSTASH_REDIS_URL = ""
UPSTASH_REDIS_TOKEN = ""

📦 Extensions

A list of extensions that use the svgl API, created by the community:

Extension Description Created by Link
svgls A CLI for easily adding SVG icons to your project. sujjeee Github Repository
SVGL for Figma Add svgs from svgl to your Figma project. quilljou Figma Plugin
SVGL for Raycast Search SVG logos via svgl. 1weiho Raycast Store
SVGL for VSCode SVGL directly in your VSCode. girlazote VSCode Marketplace
SVGL Badge A beautiful badges with svgl SVG logos. ridemountainpig Svgl Badge

✌️ Contributing

🔑 License

svgl's People

Contributors

1weiho avatar advaith-unnikrishnan avatar alanhaertel avatar bdsqqq avatar bjohansebas avatar chadha93 avatar eduardo282 avatar ephraimduncan avatar esteve-segura-vm avatar estevesegura avatar ikurotime avatar jamerrq avatar juansemprun avatar kamran1819g avatar lauracastrillonmp avatar marpeand avatar matheusmanuel avatar midudev avatar pheralb avatar pritamhn avatar pyr33x avatar quilljou avatar ridemountainpig avatar stv-beep avatar sujjeee avatar svensken94 avatar tmchein avatar trinhdinhtai avatar wilmer2000 avatar xavimondev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

svgl's Issues

🚀 Next updates.

I will work on the following features to improve the app:

  • Fix sidebar scroll bug for medium sizes.
  • Create API routes to get all svgs & categories.
  • Sticky search bar when scroll.
  • Add light/dark mode for scrollbar.
  • Improve app performance to avoid loading 200 svgs directly.

🚀🚀

More obvious sorting, removing ids

Hi! With the use of random identifiers (id field) for objects in a logo array, the items are now arranged in a strange order. Those logos that have been given a random number identifier (e.g. a 21 digit number) are always placed first.

screenshot

Is there at least one reason why id's are needed other than sorting by number? Wouldn't it be better to sort logos on the main page and in categories in a more obvious way (e.g. alphabetically)?

It will also make it easier for anyone adding new logos to the library.

Improve logo search.

A thought about improving the search alowing multiple words search.

For example if I search open boot it would give me 0 results but searching why words would give me 1 results.

image

Let me know if you like this feature and I can make a PR for hacktoberfest 😄

Edit: update example

svg add Linux

Le pudiera sugerir que agrugue alguno de linux, ademas de distros como de ubuntu, ...

Redux

I love your project, it is very well thought out.
I would add the redux logo and just because I was needing it and I couldn't find it

Can't copy to clipboard in Safari

Safari version: Versión 15.5 (17613.2.7.1.8)

Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.

Seems to be a permission error... I have all default permissions and then also tested making svgl.vercel.app to have all of them in allowed.

I've been looking and found this stackoverflow answer pointing to this

Async Clipboard API

WebKit brings the Async Clipboard API to this release of Safari. It provides access to the system clipboard and clipboard operations while keeping the webpage responsive. This API is much more flexible than DataTransfer, allowing developers to write multiple items with multiple types per item. Additionally, it brings programmatic paste to all websites on macOS and iOS.

The implementation is available through the navigator.clipboard API which must be called within user gesture event handlers like pointerdown or pointerup, and only works for content served in a secure context (e.g. https://). Instead of a permissions-based model for reading from the clipboard, a native UI is displayed when the page calls into the clipboard API; the clipboard can only be accessed if the user then explicitly interacts with the platform UI.

TL:DR;

Instead of a permissions-based model for reading from the clipboard, a native UI is displayed when the page calls into the clipboard API; the clipboard can only be accessed if the user then explicitly interacts with the platform UI.

But looking at the code I can't see a good reason explaining why this is happening...

const copyToClipboard = (url?: string) => {
  fetch(url || "").then((response) => {
    response.text().then((content) => {
      navigator.clipboard.writeText(content);
      toast("Copied to clipboard", ToastTheme);
    });
  });
};

/* ... */

<Button
    variant="ghost"
    borderWidth="1px"
    leftIcon={<Copy />}
    onClick={() => copyToClipboard(props.slug)}
    mb={{ base: "2", md: "0" }}
    mr={{ base: "0", md: "3" }}
    >
    Copy to clipboard
</Button>

EDIT: Forgot to add the error lol

Affinity Suite

Would be great to have the Affinity suite of applications (Affinity Designer, Photo and Publisher).

I've attached the SVG files, optimised with SVGO.

affinityPublisher
affinityPhoto
affinityDesigner

Make various Changes to make it more attractive.

Styling : It should be enhanced by changing various things like it doesn't have footer no main header which will look a bit more fancy and also in footer section more links can be added . I am going to do many for it which can make changes to this website anad will be surely make more attractive and people will feel more productive on this website.

Roblox Logo?

A popular logo i tend to work with these days, and quite hard to find good svgs.

Permission to use part of your code

Hi! I'd like to use part of your Tailwind code to use in my personal side project. Would you mind granting me permission for this? thank you.

Create a new category : Community

I noticed that Google Developer Students Club is listed in the education category, even though it is a community. It would be great if you could add the category "community" so that if someone uploads logos of communities, they can be displayed separately in that category.
svgl

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.