diff options
author | Adam Carpenter <atc@53hor.net> | 2020-04-28 22:23:20 -0400 |
---|---|---|
committer | Adam Carpenter <atc@53hor.net> | 2020-04-28 22:23:20 -0400 |
commit | e0ed684d5a31a30cac52c56e12c000e8cc7bdcaa (patch) | |
tree | e8438e4ace3dc8168cba945190427d3b84485d41 /iridescence/src/components/InventoryCard.vue | |
parent | df4105ae63c94c5ee8556ebc994ba2c0fd946288 (diff) | |
download | theglassyladies-e0ed684d5a31a30cac52c56e12c000e8cc7bdcaa.tar.xz theglassyladies-e0ed684d5a31a30cac52c56e12c000e8cc7bdcaa.zip |
made inventory cards arranged in a column list with basic info from inventory in store
Diffstat (limited to 'iridescence/src/components/InventoryCard.vue')
-rw-r--r-- | iridescence/src/components/InventoryCard.vue | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/iridescence/src/components/InventoryCard.vue b/iridescence/src/components/InventoryCard.vue new file mode 100644 index 0000000..75e683a --- /dev/null +++ b/iridescence/src/components/InventoryCard.vue @@ -0,0 +1,44 @@ +<template> + <div id="inventoryCard"> + <div class="card"> + <div class="card-image"> + <figure class="image is-4by3"> + <img + src="https://bulma.io/images/placeholders/1280x960.png" + :alt="name" + /> + </figure> + </div> + <div class="card-content"> + <div class="content"> + <p class="title is-4">{{ name }}</p> + <p class="subtitle is-4"> + {{ dollars(cents) }} + </p> + <p class="subtitle is-6">{{ quantity }} in stock.</p> + </div> + + <div class="content"> + {{ description }} + </div> + </div> + </div> + </div> +</template> + +<script> +export default { + name: "InventoryCard", + props: { + id: Number, + name: String, + quantity: Number, + cents: Number, + imgPath: String, + description: String + }, + methods: { + dollars: cents => "$ " + (cents / 100).toFixed(2) + } +}; +</script> |