aboutsummaryrefslogtreecommitdiff
path: root/client/src/views/Product.vue
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/views/Product.vue
parent080ca69a42ae8c510560bd176484adafd2c29a0c (diff)
downloadmevn-ecommerce-d30fd3054c66d707a8210872b7db6cf4a1a98793.tar.gz
mevn-ecommerce-d30fd3054c66d707a8210872b7db6cf4a1a98793.zip
Added boilerplate pages and `ProductCard` component.
Diffstat (limited to 'client/src/views/Product.vue')
-rw-r--r--client/src/views/Product.vue30
1 files changed, 30 insertions, 0 deletions
diff --git a/client/src/views/Product.vue b/client/src/views/Product.vue
new file mode 100644
index 0000000..e03c900
--- /dev/null
+++ b/client/src/views/Product.vue
@@ -0,0 +1,30 @@
+<template>
+ <div class="row">
+ <div class="col-md-4">
+ <img :src="productImg">
+ </div>
+ <div class="col-md-4">
+ <h3>{{ productName }}</h3>
+ <p>{{ productDescription }}</p>
+ <div class="btn btn-primary" @click="buy">Add to cart</div>
+ </div>
+ </div>
+</template>
+
+<script>
+export default {
+ name: 'Product',
+ data() {
+ return {
+ productName: String,
+ productDescription: String,
+ productImg: String
+ }
+ },
+ methods: {
+ buy() {
+
+ }
+ }
+}
+</script>