I really like that suble off-white coloring (sorry, someone had to say it).
Show HN: A GitHub business card generator
11–20 of 59 posts
Re: Show HN: A GitHub business card generator
#12Very cool project! What do you think about including a QR code linking back to the user's GitHub page on the rendered card?
I’m planning on adding a few customization options to the generation. I may add the QR code as one :)
Re: Show HN: A GitHub business card generator
#13Re: Show HN: A GitHub business card generator
#14Re: Show HN: A GitHub business card generator
#15Re: Show HN: A GitHub business card generator
#16I quite like `dom-to-image-more` (sorta active fork of `dom-to-image`) that renders a SVG with a foreignElement that is a data URL of an XHTML page to a canvas. It also led me to rewriting my own image rendering stuff to just build an SVG in DOM, use toDataURL on it, and then render that in a canvas. So much simpler
Re: Show HN: A GitHub business card generator
#17Maybe only use the first link. Or wrap a little bit to allow for multiple lines.
Re: Show HN: A GitHub business card generator
#18Huh, `@vercel/og` is interesting! It looks like the same approach as `html2canvas` (implement custom rendering for each HTML element + CSS property), with all the tradeoffs that entails, but they actually rightly limited some of the features they're willing to support (like external stylesheets). And it looks like it'll be more supported than `html2canvas` currently is. I quite like `dom-to-image-more` (sorta active…
[1]: https://github.com/metabolize/react-flexbox-svg
Edit: for a React-less implementation, see https://blog.scottlogic.com/2015/02/02/svg-layout-flexbox.ht...
Re: Show HN: A GitHub business card generator
#19Doesn't render for me: https://github-business-card.vercel.app/api/github?username=...
Re: Show HN: A GitHub business card generator
#20Huh, `@vercel/og` is interesting! It looks like the same approach as `html2canvas` (implement custom rendering for each HTML element + CSS property), with all the tradeoffs that entails, but they actually rightly limited some of the features they're willing to support (like external stylesheets). And it looks like it'll be more supported than `html2canvas` currently is. I quite like `dom-to-image-more` (sorta active…