CSCI 446 Unit #5

Programming Assignment

For this assignment you will create a page very similar to the following:

Greeting card when load
Figure 1: Greeting Card upon load
Greeting card after changes
Figure 2: Greeting Card after selections

See Specific Requirements for more details. The example card is for Valentine's Day, but you can choose some other card theme.

You should expect this lab to take longer than Unit 4.

Hints

For simplicity, I set up variables to contain the hard-coded color choices.


	var foregroundColors = ["#00FFFF","#FF7F50","#FFD700", "#FFF", "#000"];
	var backgroundColors = ["#0000FF","#DC143C","#20B2AA", "#FFF", "#000"];

The structure of this program will be similar to the last example on the Events in React page (the code that includes increase(e). Be sure to understand that example before you begin to code! A few specific hints:

I suggest you draw a quick design on paper before you begin to code (maybe review the design process from Creating Complex Components).

Potentially helpful links for dealing with the Ascii Art: