Skip to content

Latest commit

 

History

History
67 lines (43 loc) · 3.03 KB

README.md

File metadata and controls

67 lines (43 loc) · 3.03 KB

Solo Project: Password Generator

This is the Password Generator project in the Scrimba Frontend Developer Career Path.

Table of contents

Overview

The challenge

The challenge was to create a Password Generator app using a Figma design. When the user clicks on the Generate passwords button, the app generates two 15 characters long passwords and shows them to the user.

Stretch Goals

I went beyond the project scope and created a copy password functionality and light and dark themes. To do that, I had to change the design a little, showing a message when the user copied the password and a theme-switcher button.

Screenshot

GIF of the app

Links

My process

Built with

  • Figma
  • Semantic HTML5 markup
  • CSS custom properties
  • Media Queries
  • JavaScript

What I learned

My first challenge was learning how to create web pages with light and dark modes and how to use the operating system appearance settings. For example, on my computer, this app will use light mode during the day and automatically change to dark mode at night.

I also learned how to copy text to the clipboard using navigator.clipboard, and use Google's Material Symbols. This project was a fantastic opportunity to practice using JavaScript to manipulate the DOM. Event handling was tricky, and my app wasn't working until I used event.currentTarget instead of event.target.

Continued development

Since the user could change between light and dark modes using both the system settings and clicking on a button, I had to repeat a lot of CSS code. I could be more succinct if I used a CSS preprocessor like Sass. But this project was already taking too long, so I kept it like that.

Useful resources

Author