diff options
Diffstat (limited to 'client/src/components')
-rw-r--r-- | client/src/components/ExampleComponent.vue | 14 | ||||
-rw-r--r-- | client/src/components/ProductCard.vue | 20 |
2 files changed, 20 insertions, 14 deletions
diff --git a/client/src/components/ExampleComponent.vue b/client/src/components/ExampleComponent.vue deleted file mode 100644 index 5e207f9..0000000 --- a/client/src/components/ExampleComponent.vue +++ /dev/null @@ -1,14 +0,0 @@ -<template> - <div> - <p v-text="msg"></p> - </div> -</template> - -<script> -export default { - name: 'ExampleComponent', - props: { - msg: String - } -} -</script> 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> |