diff options
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> |