Skip to content

PedroVillasBoas/URLShortner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shorten

Overview

The "URL Shorten" project is a simple web-based URL shortener, developed by Pedro Vilas Bôas. It allows users to input long URLs and generate shorter, more manageable versions using the TinyURL API. This project is built with HTML, CSS, and JavaScript, and features a clean, responsive design.

But, How does it look like?

Screenshot

Features

  • Shorten URL: Convert long URLs into shorter versions using TinyURL's API.
  • Reload Functionality: Reset the input and output fields to their default states.

How to Use

  1. Enter the URL: Type the long URL you want to shorten in the input field labeled "Enter URL To Shorten".
  2. Shorten the URL: Click the "Short It!" button to generate a shortened URL.
  3. Reload: Click the "Reload" button to clear the form and start over.

Installation

No installation is required for this project as it runs directly in the browser. Simply clone the repository and open the index.html file in your web browser.

git clone https://github.com/yourgithubusername/URLShortner.git
cd URLShortner
open index.html # or use any web browser to open the file

Code Structure

HTML

The HTML file includes basic setup, linking to external icon fonts and stylesheets, and defining the structure for the URL shortening interface.

CSS

Styles are provided in a separate CSS file and utilize the Google Poppins font. The styling emphasizes a modern look with background gradients and a centered card layout.

JavaScript

JavaScript is used for the functionality of the URL shortener. It interacts with the TinyURL API to fetch a shortened URL and handles the page reload action.

Contributions

Contributions are welcome! For major changes, please open an issue first to discuss what you would like to change.

License

This project is open-source and available under the MIT License.

Project made by:


Pedro Villas Boas

About

URL Shortner with custom CSS and JS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published