Mama Jenny wants to explore the art of Pastry making. She is extremely popular because of her burger business and has recently had the idea to expand into cake business too. Unfortunately, she isn't the best at web development. Mama has heard of ProGrads and she thought you could do a great job.
Help Mama create a website that'll attract more audience and help her make a living through it. Your task is to build a complete website which helps in customizing cakes for birthdays.
Fork this repo
Clone this repo
Practice DOM Features
Upon completion, run the following commands:
git add .
git commit -m "ProGrad ID"
git push origin master
And finally, create a pull request so your ProGrad Mentor (PM) can review your work.
As your first task, you've got to enable the different layers of the cake on the screen. Create a render()
for each ingredient and make sure that it displays the selected layer.
Size of the layer for each crust
#layer1{
width: 245px;
visibility: hidden;
}
#layer2{
width: 200px;
left: 40px;
visibility: hidden;
}
#layer3{
width: 160px;
left: 60px;
visibility: hidden;
}
#layer4{
width: 120px;
left: 80px;
visibility: hidden;
}
#layer5{
width: 80px;
left: 100px;
visibility: hidden;
}
Setup EventListeners
, so that we can add or remove different ingredients by clicking on the respective ingredient buttons. That's the whole point of it.
Make the ingredient buttons pop up based on their current active state. This would help customers identify what ingredients they've selected and what's left out.
Show the customer only the ingredients that they've selected on the chalk board.
The customer has had a good time customizing his cake. Time for him to pay. Use ingredient prices to calculate the cost of a cake and display it to the customer.