aboutsummaryrefslogtreecommitdiff
path: root/client/src/views/Product.vue
blob: e03c900e05ecf649913017ec214bca19bc700912 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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>