joelshepherd / tabliss

A beautiful, customisable New Tab page for Firefox, Chrome, and Edge.
https://tabliss.io
GNU General Public License v3.0
2.24k stars 294 forks source link

[Feature] Add Bitcoin Mempool widget #486

Open pwltr opened 2 years ago

pwltr commented 2 years ago

Adds a widget for mempool.space that shows the last 1 - 5 mined blocks with their info and re-fetches data every minute. If for any reason you don't want a Bitcoin related widget in this app that's fine. Just had some fun with this and quickly built something.

Screenshot_20220504_113634 Screenshot_20220504_113703

joelshepherd commented 2 years ago

Hi, looks fun!

While the aesthetic does not match the rest of Tabliss, your widget does look nice. I'll have a bit of a think of this.

If you would like the widget to land in Tabliss, we do need to handle translations for dashboard text (in your case, the copy "transactions", and the relative date formatting). Check react-intl docs, or follow some of the other widgets for an example.

Thanks!

pwltr commented 2 years ago

Added a transparent color option that maybe fits a bit better into the overall design. For translations I used Intl.RelativeTimeFormat which has good support and avoids importing locales from date-fns.

joelshepherd commented 2 years ago

Code-wise it looks good. I'll check out your branch this weekend and give it a final test before merging. Thanks for the addition!

pwltr commented 2 years ago

Thanks for reviewing and this great project, I love how clean my start page is now!