This app empowers users to effortlessly shorten URLs with its user-friendly interface. It leverages the CleanURI API, Clipboard API, and advanced CSS for seamless functionality. Additionally, CORS proxy is utilized for enhanced API integration.
Live Site: Shortly
- Easily shorten any valid URL.
- Access a list of your shortened links, which persists even after refreshing the browser.
- Copy the shortened link to your clipboard with a single click.
- Click on shortened links to open them directly in a new page.
- Clear button to remove all shortened URLs from the list.
- Enjoy an optimal layout tailored to your device's screen size for a seamless user experience.
- CleanURI API
- Clipboard API
- Vuejs
- CSS
- Bootstrap
- Starting with a mobile-first approach proved to be more effective for me.
- Employing
navigator.clipboard.writeText(index)
enables copying text to the clipboard using JavaScript. - Utilizing the
:not()
pseudo-class in CSS allows styling all elements except those specified inside the:not()
selector. - To use
mx-auto
properly, apply it to a block-level element with a defined width. - When confused, adding an outer div container can help organize layout.
JSON.parse()
converts strings into JavaScript objects, often used for API responses.- In Vue.js,
computed
properties reactively update based on changes, whilewatch
is used for side effects. - Utilized CORS proxy to bypass CORS restrictions when accessing the public endpoint of CleanURL API.
This project is a solution to the challenges provided by Frontend Mentor, with additional features implemented by me.