Skip to content

A responsive URL shortening landing page built with React, TypeScript, and TailwindCSS. Users can shorten links, copy them instantly, and persist their shortened URLs across page reloads.

Notifications You must be signed in to change notification settings

geliettech/shortly

Repository files navigation

Shortly - URL Shortening App 🌐

Frontend Mentor React Tailwind CSS Vite TypeScript License

A responsive URL shortening landing page built with React, TypeScript, and Tailwind CSS. Users can shorten links, copy them instantly, and persist their shortened URLs across page reloads.


🎯 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

Live Preview

Shortly Live Demo GitHub Repo

Shortly App Demo Demo showing URL shortening, copy-to-clipboard, and list persistence features.


Features

  • Responsive UI built with Tailwind CSS
  • Dynamic URL shortening with Axios + external API
  • Copy-to-clipboard functionality via react-copy-to-clipboard
  • Persistent shortened URLs using local storage
  • Form validation and error handling

Tech Stack

  • React 18 – For building dynamic UI components
  • TypeScript – Type-safe JavaScript for reliable code
  • Tailwind CSS 4 – Utility-first styling for responsive design
  • Vite – Lightning-fast development and build tool
  • Axios – API calls and HTTP requests
  • react-copy-to-clipboard – One-click URL copy functionality
  • React Icons – Lightweight icons for UI
{
  "@tailwindcss/vite": "^4.1.16",
  "@types/react-copy-to-clipboard": "^5.0.7",
  "axios": "^1.13.4",
  "react": "^18.2.0",
  "react-copy-to-clipboard": "^5.1.0",
  "react-dom": "^18.2.0",
  "react-icons": "^5.5.0",
  "tailwindcss": "^4.1.16"
}

Key Learnings

  • Managing state in React for dynamic lists
  • Implementing local storage for data persistence
  • Building mobile-first responsive layouts

Continued Development

Future improvements:

  • User authentication to save links across devices
  • Link analytics (click counts, trends)
  • Improved accessibility and keyboard navigation
  • Animations for smoother user experience

Useful Resources


Author


Acknowledgments

  • Frontend Mentor – For providing the challenge and supporting practical frontend skill development
  • Tailwind CSS Docs & React Docs – For guidance on responsive design and state management

About

A responsive URL shortening landing page built with React, TypeScript, and TailwindCSS. Users can shorten links, copy them instantly, and persist their shortened URLs across page reloads.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published