- Fork the repo.
- Clone the forked one. (The project link should have your name but not
mate-academy) - Run
npm install(or justnpm i) - Run
npm start. - Open one more terminal window for the next steps
git checkout -b develop- to create new branch and switch on it- Write you code in
srcfolder - Run
npm run lintand fix code style errors. - Run
npm run deployto deploy your solution to gh-pages git add . && git commit -m 'solution'to save your chagesgit push origin develop- to send you code for PR- Create a Pull Request (PR) from your branch
developto branchmasterof original repo. - Replace
<your_account>with your Github username in the DEMO LINK - Copy
DEMO LINKto the PR description
To update you PR repeat steps 7-11
Display a calendar in the middle of the screen. The HTML of the calendar needs to have the following structure:
<div class="calendar calendar-30 calendar-tue">
<div></div>
<div></div>
<!--
...
31 child divs in total
...
-->
<div></div>
</div>- Use SASS (.scss) for this task. Please do not use JavaScript.
- You can use
flexandmargin-leftof required size for the:first-child - Use the given HTML (don't change anything or add numbers 1 through 31).
- The first day of the week is Monday. (the first column)
- The
calendar-30classname here means that the month has 30 days, andcalendar-tuemeans that the first day of the month is Tuesday. - Your calendar should also accept the following alternative classnames and display itself accordingly:
calendar-28,calendar-29,calendar-30,calendar-31;calendar-mon,calendar-tue,calendar-wed,calendar-thu,calendar-fri,calendar-sat,calendar-sun. - Each day must be represented by a 100px × 100px #eeeeee-colored cell (including 1px black borders).
- The gap between the cells must be 1 pixel.
- The date should be written in the middle of the corresponding cell with Arial 30px font.
- Upon hovering over a cell, the cursor should become pointer.
- The hovered cell has to become pink
- (Optional) Move it up by
20px. - (Optional) both of these properties are to be animated with the duration of half a second.
- (Optional) Move it up by
