Skip to content

Stamps.com 2nd level test excercise

Notifications You must be signed in to change notification settings

chriseugenerodriguez/stamps

Repository files navigation

HTML/CSS

  • It should work on the latest Chrome, Firefox, Edge, and Safari (Mac) browsers.

  • Feel free to write the CSS with or without a pre-processor like Sass* or LESS.

  • The page should be responsive and you can create your own media queries or use a framework like Bootstrap* or Foundation.

  • Only the largest viewport has been provided so use your judgment when arranging the content for smaller devices.

  • The grid overlay is not enabled upon opening the Zeplin file, but use it as needed. Toggling “Grid” in the right panel will display a 12 column grid layout to assist with responsive coding.

  • Add hover/active states to the navigation and products as you see fit.

Please note, Zeplin provides CSS for selected elements. Reference it as needed to extract values for properties such as fonts and colors, but I advise against relying on it too heavily. It’s auto-generated and based on how the designer structured the file, which may not correlate with the best approach for semantic mark-up, code structure, or performance.

JavaScript

  • The product images are draggable items with the cart icon in the upper right as the drop target.

  • At the start of the application, populate every white dropdown/select below a product with a random quantity between 1 and 20. The total displayed in the cart will be zero, for both quantity and price.

  • When the user drags and drops a product image onto the cart icon, add the quantity and total price for that product to the current totals displayed. For example, say the total quantity is 2 and total price is $70.00. When a user drops a product with quantity 5 and price $35.00, then the total quantity becomes 7 and the total price becomes $245.00.

  • After each successful drop, reset the quantities for every product to a new set of random numbers. If the user misses the cart icon when letting go of drag, then the product image snaps back to the starting location and there is no other change.

  • Touch events do not need to be considered for purposes of this exercise. The draggable requirements will be evaluated on desktop in the browsers listed in the HTML/CSS section.

  • Feel free to use a JavaScript library (jQuery*, etc.) or framework (Angular*, React, Vue, etc.) and any plugins.

When you are complete please zip the files and return them to me. Our exchange server will strip the attachment if returned via e-mail, so please provide these via a service such as Dropbox, Google Drive, or Github.

About

Stamps.com 2nd level test excercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published