Login with any user name and Non-empty password, Drag image to other location (x) Logoff Login with other user Drag image to other location (y) the App will remember the location for each user..
npm browser with localstorage support
- Clone
- cd /LoginChallenge
- run npm install
- cd /LoginChallenge
- npm run tests
- npm run storybook or simply npm-start
- cd /LoginChallenge
- npm start
- Open chrome with the url localhost:3000
I used css modules for local scoping off css classes. You can read about it here: https://css-tricks.com/css-modules-part-1-need/
react-scripts (create-react-app)
Story Book Create react app Local Storage Session Storage Css Modules HTML5 Drag and Drop API
Refactor the welcome page - by using smaller components for example error / messages
Use react-router for future scale
Consider using some ui lib like material-ui
Design the welcome page (UX-Wise) using css flex
Hard code some images urls - userName mapping, so the app can show different picture for each user
├── build # Compiled files (alternatively `dist`)
├── docs # Documentation files (alternatively `doc`)
├── src # Source files
├── components (functional components)
├── containers (controlled components)
├── Services (AP, storage menagment)
├── stories (for testing components)
├── App.js # The root component
└── README.md