MKLNKs / layout_calendar

Mate academy task: create simple Calendar, where you can change number of days and first day of month using only update in HTML file (due to SCSS loops: for and each), using BEM methodology, SCSS and animation

Home Page:https://mklnks.github.io/layout_calendar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calendar

Replace <your_account> with your Github username and copy the links to Pull Request description:


Follow this instructions

  • Write styles in src/styles/main.scss instead of src/style.css.
  • This task does not have tests so you need to check if it works as expected manually.

❗️❗️❗️ DON'T FORGET TO PROOFREAD YOUR CODE WITH CHECKLIST BEFORE SENDING YOUR PULL REQUEST❗️❗️❗️

Task

Display a calendar in the middle of the screen. Use SCSS and follow BEM. Don't use JS.

  • Create a markup for the calendar block with 31 days inside
    • DON'T add numbers in HTML (you will do it using CSS)
  • Each day is a grey (#eee) 100px square (including 1px black border)
    • Add a number (Arial 30px) in the center of each day using ::before and @for
  • Use flex with 1px gap and limit its width to exactly 7 columns + 10px paddings
    • Don't use hardcoded px values if they are used several times
    • Use properly named variables to make all the calculations more clear.
  • Implement start-day modifier for the calendar with mon, tue, wed, thu, fri, sat and sun values
    • Use @each to create all the modifiers
    • The month should start at the correct column (Monday is the 1st, Friday is the 5th)
    • You can just add correct margin-left for the first day
  • Add a modifier month-length for the calendar with values 28, 29, 30 and 31 (use @for)
    • It sets the last day to show (use nth-child)

On hovering over a cell:

  • cursor should become pointer
  • The hovered cell has to become pink

If you already know Transition and Transform

  • Move the hovered cell up by 20px (use transform)
  • All changes should be animated with the duration of 0.5s

--> CHECKLIST

Here is a preview:

reference image.

About

Mate academy task: create simple Calendar, where you can change number of days and first day of month using only update in HTML file (due to SCSS loops: for and each), using BEM methodology, SCSS and animation

https://mklnks.github.io/layout_calendar/

License:GNU General Public License v3.0


Languages

Language:HTML 51.4%Language:JavaScript 44.6%Language:SCSS 4.0%