/urlshorter

Shortly from .frontendmentor.io/challenges

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Frontend Mentor - Shortly URL shortening API Challenge solution

This is a solution to the Shortly URL shortening API Challenge challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout for the site depending on their device's screen size
  • Shorten any valid URL
  • See a list of their shortened links, even after refreshing the browser
  • Copy the shortened link to their clipboard in a single click
  • Receive an error message when the form is submitted if:
    • The input field is empty

Screenshot

Links

My process

Built with

What I learned

  • A lot of exercises about relative/absolute CSS positioning.
  • How to really control SVGs properties with Tailwind classes.

Continued development

  • Again this solution is not a "fluid design", it really only looks good at 1440px and 375px. It would be a scary challenge to make it nice in all resolutions...

Useful resources

  • Documentation of the React Hook Form was very helpful.

Author

Acknowledgments

  • A lot of reading in the TailwindCSS documentation !