URL Shortener
Features:
User Input Validation:
- Validates the entered URL to ensure it's properly formatted.
Live URL Shortening:
- Integrates with
https://api.shrtco.deto fetch short URLs in real-time.
- Integrates with
Error Handling:
- Displays an error message for invalid or empty inputs and handles API errors gracefully.
Copy-to-Clipboard:
- Allows users to easily copy the shortened URL with a single click.
Responsive Design:
- The tool is fully responsive and works seamlessly across desktop, tablet, and mobile devices.
Colorful Styling:
- Features a vibrant gradient background and modern, user-friendly design.
How It Works:
Input:
- The user enters a URL in the input field and clicks "Shorten URL."
API Call:
- The tool sends a request to the
shrtco.deAPI with the entered URL.
- The tool sends a request to the
Response Handling:
- If successful, the shortened URL is displayed with a "Copy" button.
- If unsuccessful, an error message is shown.
Copy Functionality:
- The user can copy the shortened URL to their clipboard using the "Copy" button.
Validation:
- Ensures the input is a valid URL before making an API call.
No comments:
Post a Comment