Submitted over 2 years agoA solution to the URL shortening API landing page challenge
Link Shortening Functional and Responsive
bem, tailwind-css
@olaknowct

Solution retrospective
I've been working lately with tailwind-css and I'd like to utilize it more for memory muscle purposes. Supposedly, I'd like to move forward to another design after working and completing 'Shortly' however it happens to be that I wasn't doing anything on my Friday night. And yea, I've decided to complete the task using Vanilla JavaScript 🙄
Learnings/Challenges 📝:
- Tailwind builds don't detect All future DOM (an element to be inserted based on a certain event) unless configured in tailwind config. ✅
- Implementing pub-sub pattern JS - Since (from my implementation) there is HTML that is being inserted based on some events, it's best to subscribe to a function that will take care of handling events. ✅
- Navigator has a clipboard object wherein you can use a method to copy by passing it as argument ✅
- Generated Shorted Link doesn't not redirect you (when pasted to browser) to supposed Link ✅
If anyone of you can review ill be happy about it. Cheers! 🍻 😊
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Christopher Olano's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord