Birthday Cal is a week long Calendar. It's a fun way to demonstrate Vanilla JS skills.
Just drop a json data in the text area in the below given format and hit the update button to see the magic!
Render a card for each day of the week. For a given year, figure out whose birthday belongs to which card. Place people's initials in the card according to the these rules.
- Each person must always be rendered as a square.
- Use person's initials to label birthdays.
- Order people inside the card based on their age(youngest to oldest)
- Each square in a card must be of equal size and should fill up as much space in the card as possible.
[
{
name: "Tyrion Lannister",
birthday: "12/02/1978",
},
{
name: "Cersei Lannister",
birthday: "11/30/1975",
},
{
name: "Daenerys Targaryen",
birthday: "11/24/1991",
},
{
name: "Arya Stark",
birthday: "11/25/1996",
},
];
-
Clone the repository
git clone URL
-
cd
into the repository folder -
Open the index.html file using modern web browser or launch using live server in VSCode.