url-shortening-api-landing-page Svelte Themes

Url Shortening Api Landing Page

Solution for frontendmentor.io challenge: url-shortening-api-landing-page

Frontend Mentor - Shortly URL Shortening API Challenge Solution

This is a solution to the Shortly URL shortening API Challenge challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Solution post Live demo

Table of Contents

:sunrise: Project Overview

Challenge Requirements

  • 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

Status

Features

  • Shorten any valid URL using spoo.me API
  • Form controls with validations

Accessibility

  • Responsive accross different screen sizes
  • Interactive elements have clear focus indicator

Preview (Desktop)

:stars: Tech Stack and Approach

Built With

  • HTML5 – Semantic structure
  • Svelte – Fine-grained reactivity state management
  • TailwindCSS – Utility-first CSS for fast development
  • TypeScript - Interactivity and application logic
  • Vite - Fast development server, production build and easy configuration

Approach

:leaves: Local Development

Prerequisites

Install the following:

  • Git (latest version)
  • Node.js (latest LTS recommended)
  • pnpm (latest version)

Setup

git clone https://github.com/haquanq-frontendmentor/url-shortening-api-landing-page.git
cd url-shortening-api-landing-page
pnpm install

Start Development Server

pnpm dev

:maple_leaf: Deployment

Deployed to Github Pages via Github Actions (manually triggered).

Top categories

Loading Svelte Themes