Skip to content

Auddity/FEM_URL-Shortening-API-Landing-Page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Shortly URL shortening API Challenge solution

My solution to the Shortly URL shortening API Challenge on Frontend Mentor

Overview

  • Responsive site
  • Any valid URL can be shortened
  • Display's List of shortened URL's
    • Can copy shortened URL
  • Empty input field error

Links

Code Git: Github Auddity Live Site: Shortly URL Landing Page

Built with

  • Semantic HTML5
  • Sass (scss)
  • Flexbox
  • Mobile-first
  • Javasctipt
    • HTTP Request

Newly Learned

Clipboard API

This project introduced me to the Clipboard API

const copyShortUrl = (text, copyBtn) => {
  navigator.clipboard.writeText(text)
    .then(() => {
      copyBtn.textContent = 'Copied!';
      copyBtn.style.background = 'hsl(257, 27%, 26%)';
    })
    .catch(err => {
      alert('Error in copying url: ', err);
    });
};

Author