github-readme-stats icon indicating copy to clipboard operation
github-readme-stats copied to clipboard

Support repository card's Social Preview

Open SpenserCai opened this issue 2 years ago • 6 comments

Is your feature request related to a problem? Please describe.

when we share repo we wil see like: image the picture is Social Preview image so "github-readme-stats" may be can support this style's repo card. may like this: image

Describe the solution you'd like

Keep the original style while adding social preview images

Describe alternatives you've considered

No response

Additional context

No response

SpenserCai avatar Aug 25 '23 07:08 SpenserCai

Hey @SpenserCai,

We genuinely appreciate your feature request! 🚀 Being a community project, we love getting input like yours. We're a small team, and to prioritize, we rely on upvotes 👍🏻 to gauge interest (check out our system here).

Your suggestions and PRs are vital, and if they garner enough support, we're all in to review and merge them into the main branch. Thanks for contributing to the awesomeness of our project! ❤️‍🔥

rickstaa avatar Oct 12 '23 08:10 rickstaa

I see @qwerty541 already assigned the hacktoberfest label, so if you or other people want, they can create an accompanying pull request.

rickstaa avatar Oct 12 '23 08:10 rickstaa

Hello @rickstaa , I've got a solution for this issue, though its not as good looking as image in the issue. To make it like in the issue, we may have to completely revamp the Card class. Here's how Card would look,

After

image

Before

image

bikrantjajware avatar Oct 25 '23 15:10 bikrantjajware

may be can support this style's repo card. may like this:

@bikrantjajware Appreciate your input! Your suggestion seems quite valuable—consider adding it as a feature under the image_header flag 👍🏻. Feel free to initiate a pull request if you're up for it. By the way, have you figured out how to fetch the GitHub header? My hunch is that the Discord images are sourced from the openGraphImageUrl property in the repository object.

rickstaa avatar Oct 26 '23 19:10 rickstaa

Thank you, i'll start on it

bikrantjajware avatar Oct 27 '23 03:10 bikrantjajware

Hello @rickstaa , linked a PR please review

bikrantjajware avatar Oct 28 '23 13:10 bikrantjajware