Closed KeithRWalker closed 5 years ago
its fine to put the buttons in your string builder for now but leave those lines commented out until you get to the tickets that actually use them
its fine to put the buttons in your string builder for now but leave those lines commented out until you get to the tickets that actually use them
okay sounds good
👍
User Story
As a user when I load the product page want to see a list of products (beer) available to purchase.
AC
WHEN The user loads the page they should see a collection of cards with products available to purchase. AND the cards should have a title, photo, two buttons, and a price. AND The cards should be displayed as a grid system, with the ability to change positions. (4 per row?)
Development
printToDom(divId, txt)
function. which should accept an container element id, and a string.beerArray
it should be a collection of objects representing the products (provided by team) they should have the following propertiesname: 'string'
img: 'url'
abv: '10%'
description: 'string'
price: int
ing: ['array','of','strings','ingredients']
beerCardBuilder( )
function which has one input ofarrayToPrint
, and an empty string named stringToPrintbeerCardBuilder( )
loop througharrayToPrint
withforEach
stringToPrint
.