MEMORY is aplication to play nad fun. I created it to train my skills in basic html, scss and Vanilla JS to have some fun from using it. This project was prepared without any framework. For styling I used pure scss styling. Structure of the project is very simple: index.html file with HTML code, style.scss file with styles and script.js file with all JS code.
https://webster2020.github.io/MEMORY/
- git clone git@github.com:Webster2020/MEMORY.git
- npm install
- npm run watch - run the project and than You can see it on Your device
*...or use link if You only want to check how it works
Used technologies:
- Vanilla js without any framework with ES6+ standard
- Scss for styling
- HTML5 for content
Implemented solutions
- Content are divided into several parts:
- part 'menu' putted in index.html in one container
- part 'board' creating by button (4x4 or 6x6) click
- Styles are divided into several parts:
- constants
- global
- header
- game board
- results
- @media
- JS code is divided to several functions and constants
- MEMORY functionalities:
- MENU:
- create board with 16 or 36 cards by button 'click'
- calculate and display amount of 'clicks'
- save high scores for both of board types
- highlight button efect with mouse events
- BOARD
- rotate card efect nad change card color after 'click' on card
- remove pair of cards which have the same color
- box-shadow cards efect with mouse events
Project is not diveded on component (like in e.g. React), because of its structure size is very simple:
- HTML - content of aplication
- SCSS - all styles
- JS - all functions and logic for aplication
- root file: index.html
- configuration files: gitignore, package.json etc.
Project was prepared based on my own idea.
- Creating bigger board with 64 cards
- Refactoring code (focus on DRY principle)
- Michal Szwajgier - Webster2020 -
Free licence