Skip to content

simple website with login page and forget password that generates OTP

License

Notifications You must be signed in to change notification settings

f-lajoc/Cocokitchen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cokokitchen

Simple website with nav bar and hamburger menu, login page and forget password that generates OTP

Table of contents

Overview

The challenge

Users should be able to:

  • Website with home page, login, forget password and navigation bar.

Video

InShot_20230320_041330073.mp4

Links

My process

Built with

  • Semantic HTML5 markup
  • Flexbox
  • JavaScript
  • Media query

Troubles

I mostly had issues with css styling

-The forget password,i wanted to make it send the otp to email but after using my knowledge so far and research, i figured I'll need framework to do that, at first i created it as a form with submit button that shows the otp on click, but submit button refreshes the page in nanoseconds so the otp barely displayed, after brainstorming on possible ways to make it work, I'll also need framework to not make the submit button submit immediately... so i later resorted to this

  • I had to separate my JavaScript for each page, cause in line 6 of forget password js file, the addEventListener, i keep getting -Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')- but my code works so i left the debugging but it hindered the execution of the index js which i didn't realize for awhile, had me questioning my knowledge on JavaScript, before i resorted to separating them which solved my problem

  • Then some other minor issues like image on text, avatar images, that Google search solved

What I learned and used

  • I understand z-index is to stack poditioned elements, through this project, i used it in the hamburger menu to cover the home page using JavaScript style.

  • I learnt something new about how to add video to Readme, i just clicked on attach files at the bottom of readme editing and the video becomes embedded in it From the knowledge I have now, i used some JavaScript I've learnt like

  • variable declaration

  • function

  • querySelector

  • eventListener

  • iteration statement

  • Math.floor and Math.random

  • fetching DOM

  • JavaScript style

Continued development

I should learn some CSS part I'm yet to master side by side with JavaScript

  • Flex
  • Grid
  • Transition
  • Animation
  • Responsives Hopefully bootstrap

Useful resources

Author

Acknowledgments

  • Ayobami - for giving me the task