diff options
author | Mateja <mail@matejamaric.com> | 2021-07-24 18:58:17 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-07-24 18:58:17 +0200 |
commit | d30fd3054c66d707a8210872b7db6cf4a1a98793 (patch) | |
tree | 6667713fc67fcaaa4e4dae291d95828fc5e802ad /client/src/components/ProductCard.vue | |
parent | 080ca69a42ae8c510560bd176484adafd2c29a0c (diff) | |
download | mevn-ecommerce-d30fd3054c66d707a8210872b7db6cf4a1a98793.tar.gz mevn-ecommerce-d30fd3054c66d707a8210872b7db6cf4a1a98793.zip |
Added boilerplate pages and `ProductCard` component.
Diffstat (limited to 'client/src/components/ProductCard.vue')
-rw-r--r-- | client/src/components/ProductCard.vue | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/client/src/components/ProductCard.vue b/client/src/components/ProductCard.vue new file mode 100644 index 0000000..57698e5 --- /dev/null +++ b/client/src/components/ProductCard.vue @@ -0,0 +1,20 @@ +<template> + <div class="card"> + <img :src="productImg" class="card-img-top"> + <div class="card-body"> + <h5 class="card-title">{{ productName }}</h5> + <a :href="productLink" class="btn btn-dark w-100">Details</a> + </div> + </div> +</template> + +<script> +export default { + name: 'ProductCard', + props: { + productName: String, + productImg: String, + productLink: String + } +} +</script> |