/landing-page-shortening

Desafio de codificação Front-End, landing page shortened URLs.

Primary LanguageJavaScript

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.

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

Screenshot

Mobile Result

Desktop Results Tablets

Desktop Result

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • RWD(Responsive Web Design)
  • React - JS library
    • React Hooks
  • Bem Metodology CSS - BEM Metodology CSS
  • Web Acessibility(Wai-arias, roles)
  • Normalize CSS
  • JavaScript Language Programming
    • fetch API networks request
    • API Clipboard clipboard's contents.
    • Regex URL - Regex URL to validator
  • shrtcode API - shrtcode API to shortened from urls
  • localStorage API from browser

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Author