aboutsummaryrefslogtreecommitdiff
path: root/client/src/components
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-07-24 18:58:17 +0200
committerMateja <mail@matejamaric.com>2021-07-24 18:58:17 +0200
commitd30fd3054c66d707a8210872b7db6cf4a1a98793 (patch)
tree6667713fc67fcaaa4e4dae291d95828fc5e802ad /client/src/components
parent080ca69a42ae8c510560bd176484adafd2c29a0c (diff)
downloadmevn-ecommerce-d30fd3054c66d707a8210872b7db6cf4a1a98793.tar.gz
mevn-ecommerce-d30fd3054c66d707a8210872b7db6cf4a1a98793.zip
Added boilerplate pages and `ProductCard` component.
Diffstat (limited to 'client/src/components')
-rw-r--r--client/src/components/ExampleComponent.vue14
-rw-r--r--client/src/components/ProductCard.vue20
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>