Using the provided feed data, construct a page that is formatted to match the included mockups. You will only be using one HTML document for this test. Your document will render both a promotion view and a promotion list view determined by the URL / query string.
The promotion view layout should be responsive and render as shown in the wide mockup (webdevtest/mockup-wide.jpg) for viewports greater than 480 pixels and as shown in the 480px mockup (webdevtest/mockup-480.jpg) below that breakpoint.
Place your code under in webdevtest/src/.
Your page should load data from the provided datafile. Almost no content will be hard-coded into your document.
- webdevtest/src/js/webdevtest-data.js
The page should render the promotion list view (webdevtest/mockup-list.jpg) when accessed by the URL below.
webdevtest/src/index.html
The links from the promotion list view should take us to the individual promotion view. The page should render one of the three promotions from the feed data when accessed by the URLs below.
- webdevtest/src/index.html?promo=promo01
- webdevtest/src/index.html?promo=promo02
- webdevtest/src/index.html?promo=promo03
For most visual elements, you are provided with details on styling below. Other visual elements that are not detailed below will require you to use your best judgement to match the mockups provided.
- Reference webdevtest/mockup-list.jpg
- All typefaces are Arial
- Promotion link text is 24px bold, #036dbe
- Promotion summary text and Next Drawing text is 14px, #444444
- Images have a dropshadow applied
- All typefaces are Arial
- "Drawing Schedule" and "Total Tickets Entered" text is 18px bold, #000000
- The summary text and other body text is 14px with 24px line heights, #444444
- Reference webdevtest/mockup-wide.jpg
- Promotion Name is 24px, #000000
- Background gradient is from #cccccc to #ffffff
- Reference webdevtest/mockup.jpg
- Next Entry Deadline text is 24px bold, #b20000
- Tables should render as shown
- Entries locked notice is #b20000
You will be evaluated on your HTML, CSS, and JavaScript code quality as well as your attention to detail in completing the code test. Be sure that your code reflects your abilities and knowledge.
You may use any libraries or frameworks that you choose for this task.