This is a solution to the URL shortening API Challenge on Frontend Mentor. This landing page integrates with the shrtcode API, which is used to shorten any valid URL through a simple query. It's open-source and it's completely free.
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 - URL is invalid
- The
Desktop and mobile version of URL Shortening Page.
- Live Site URL: URL Shortening Page
- Semantic HTML5 markup
- CSS variables
- Flexbox
- Asynchronous JavaScript
- Regular expressions
- localStorage
- Mobile-first workflow
- Adding ::after horizontal lines - This helped me add cyan horizontal lines after cards in Info section. I really like this concept and I will use it going forward.
- Getting current width of the screen - This helped me get my current screen width I needed for manipulation of links' length.
- GitHub - https://github.com/jelenkoo10
- Frontend Mentor - @jelenkoo10
- LinkedIn - Veljko Jelenković