How I get tweets onto https://umaar.com/dev-tips/feedback
Note: To fill in TWITTER_BEARER_TOKEN
, run the next step
TWITTER_CONSUMER_KEY=
TWITTER_CONSUMER_SECRET=
TWITTER_BEARER_TOKEN=
npm i
make get-bearer-token
mkdir images
make start
Generate sprites of all images in ./images
. Save the output image to /assets/images/twitter-profile-pics.jpg
.
For the class prefixes, use: dt-fb-sprite
(in the "sprite class name" input) & dt-fb-pic-
(in the "class prefix" input)
The sprite generator is here: https://instantsprite.com/ / Forked at https://github.com/umaar/InstantSprite
- Can use horizontal direction
- 0px offet
- instantsprite exports as a png, so open with preview and export to .jpg with a lower quality
Copy the markup from tmp.txt and paste it into umaar/app/dev-tips/main/tweets
Take the CSS from instantsprite and paste it into dev-tips-feedback.scss. Find '*.jpg'
and replace it with /assets/images/twitter-profile-pics.jpg
.
[...document.querySelectorAll("blockquote")].map((b) => {
return [...b.querySelectorAll("a")].reverse()[0].href.split("status/")[1];
});
https://api.twitter.com/1.1/statuses/lookup.json?id=20,432656548536401920
make test