Frederico Curti (@fredcurti) profile picture

software engineer @brexhq

São José do Rio Preto, Brasil
Joined November 2009
Excited to share a cool thing I’ve put together: Here’s the new File Preview at Brex, featuring: - Smooth panning and zooming - Keyboard navigation and gestures support - Receipt item highlighting - Dropzone …And more! See thread for how it came together - and how AI helped!
3
5
2
26
1,786
We decided to use react-zoom-pan-pinch (github.com/BetterTyped/react…), which had the features we needed (like zooming into elements for multi-page PDFs) and a performant approach. We also used motion (motion.dev) for the other animations like the shared layout transition
1
5
161
Overall, this was a very fun project to work on. The most difficult things were: - Tweaking to get all the animations just right - Rendering the figma-like dotted background - Handling pointer/cursor events given all the UI layers Excited to see this ship soon!
7
145
Frederico Curti retweeted
Replying to @DOGE
@elonmusk @DOGE me and my eng team built our card rails and expense mgmt from the ground up to solve this exact problem for the largest co's in the world. Ready to be in DC with a team of engs and work side by side with DOGE team to improve payment systems. All volunteers. DM me.
16
32
10
373
20,170