delucis / astro-badge

Badges for Astro projects
https://astro.badg.es
85 stars 11 forks source link

Request to resize default badge #20

Closed torn4dom4n closed 1 year ago

torn4dom4n commented 1 year ago

Hello, I have a request to resize the default badge. I must add HTML img tag in order for this badge to be the same size as other badges like Netlify or GitHub CI. For example, add this to README:

[![Built with Astro](https://astro.badg.es/v1/built-with-astro.svg)](https://astro.build) [![Netlify Build](https://api.netlify.com/api/v1/badges/c882c9a0-e5f6-4066-89fd-c07c7ca2efdf/deploy-status)](https://app.netlify.com/sites/astro-multiverse/deploys)

The README look like this: Built with Astro Netlify Build

You can see the BWA badge is bigger than Netlify badge. So I need a HTML img tag with height:

<p>
  <a href="https://astro.build">
    <img src="https://astro.badg.es/v1/built-with-astro.svg" alt="Built with Astro" height="20">
  </a>
  <a href="https://github.com/AREA44/astro-research-theme/actions/workflows/pages.yml">
    <img src="https://github.com/AREA44/astro-research-theme/actions/workflows/pages.yml/badge.svg" alt="Deploy Astro site to Pages">
  </a>
  <a href="https://app.netlify.com/sites/astro-multiverse/deploys">
    <img src="https://api.netlify.com/api/v1/badges/c882c9a0-e5f6-4066-89fd-c07c7ca2efdf/deploy-status" alt="Netlify Status">
  </a>
</p>

The result looks better:

Built with Astro Deploy Astro site to Pages Netlify Status

delucis commented 1 year ago

We probably shouldn't resize the existing sizes given some people are already using them and expect those sizes, but we could definitely add a smaller size like this!

Would you be interested in making a PR?

torn4dom4n commented 1 year ago

@delucis I can do it. But before start, what is the name of new size? We have small, medium and large. BTW, can I change default copy with new size at https://astro.badg.es/bwa/? It'll be easy for new people to copy & pate it.

delucis commented 1 year ago

How about extra-small or tiny?

And sure, you can update the copy snippets if you like!