Create Calendar component as per mock up in design directory #14
Labels
Frontend
Issues pertaining to the Front end team
good first issue
Good for newcomers
v2
For our beta release
Task
Use the mockup in the design directory to create a separate component for the calendar.
What done looks like
We have a Calendar.js component in /components.
We have a .css file to style the Calendar.js component in /css.
Design considerations
We have decided to use regular CSS files to keep things simple for now. This allows for more contributors and less time to upskill to contribute.
Once MVP is done the team can discuss if we want to transition it to styled-components or something like CSS modules.
Folder paths
CSS is located in /client/src/css
Components are located in /client/src/components
Style guide for CSS files:
Naming convention:
Component -> Calendar.js
CSS file -> Calendar.css
To avoid naming collisions:
prefix class names with the name of component and link with kebab case.
Class name -> .Calendar-header { ... }
How to handle state:
If you can use redux, use it.
Create action and reducer with an appropriate name.
testing
No need to worry about testing for now.
If you choose to add tests, please place in client/src/tests
The text was updated successfully, but these errors were encountered: