Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 2 years ago

Link Shortening Functional and Responsive

bem, tailwind-css
Christopher Olano•140
@olaknowct
A solution to the URL shortening API landing page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

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 📝:

  1. Tailwind builds don't detect All future DOM (an element to be inserted based on a certain event) unless configured in tailwind config. ✅
  2. 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. ✅
  3. Navigator has a clipboard object wherein you can use a method to copy by passing it as argument ✅
  4. 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 GitHub

Community 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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License