aboutsummaryrefslogtreecommitdiff
path: root/src/components/favorite_button/favorite_button.vue
blob: 6eaf0607b5d16d24359209e4e85f4ff77cbefac1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<template>
  <div>
    <i :class='classes' class='favorite-button fa' v-on:click.prevent='favorite()'></i>
    <span v-if='status.fave_num > 0'>{{status.fave_num}}</span>
  </div>
</template>

<script src="./favorite_button.js" ></script>

<style lang='scss'>
  @import '../../_variables.scss';
  .favorite-button {
      cursor: pointer;
      &:hover {
        color: $main-color;
      }
  }
  .icon-star {
      color: $main-color;
  }
</style>