Skip to content

Ifescohub/password-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Password Generator App

This is a solution to the Scrimba Password Generator Solo Project.

Table of contents

Overview

Users will be able to:

  • generate random password on each button click,
  • include or not include(toggle) numbers or symbols,
  • copy password to clipboard on click of any of the password

Screenshot

Links

My process

Built with

  • HTML5 markup
  • Pure CSS
  • Vanilla JavaScript
  • Flexbox
  • CSS Grid
  • Desktop-first workflow
  • Google Fonts - For Fonts

What I learned

I learnt a lot through this project. I learnt how to use CSS to create a toggle switch. I was able add a feature that allows a user to include or not include numbers or symbols in the password. I also learnt how to create copy to clipboard with javascript. Like the code bellow

passwordElement.forEach((password) => {
    password.addEventListener("click", ()=>{
        navigator.clipboard.writeText(password.innerHTML);
        copyNotice.textContent = `Password copied to clipboard`;
        
        setTimeout(() => {
            copyNotice.textContent = `Click any password to copy to clipboard`;
        }, 2000);
    })
})

Useful resource

Author

Acknowledgments

I acknowledge scrimba tutors for creating a solo project challenge like this to help learnings apply what they are learning. You can also learn from Scrimba. Check the Links below.

Happy Coding!

About

This web app helps to generate random password.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages