BServicio.vue 4.06 KB
Newer Older
Esteban Choque's avatar
Esteban Choque committed
1
2
3
4
<template>
  <div class="b-servicio">
    <span class="b-servicio-titulo">
      <span class="b-services-short">BOLIVIA S.</span>
Esteban Choque's avatar
Esteban Choque committed
5
      <!--<span class="b-services-long">{{ $t('bServices.title') }}</span>-->
6
      <!--<span class="b-service-two-points">:</span>-->
Esteban Choque's avatar
Esteban Choque committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
      <i class="b-icon-arrow-down el-icon-arrow-down"></i>
    </span>
    <ul class="b-servicio-opciones">
      <li
        v-for="item in items"
        :key="item.label"
        class="b-servicio-item">
        <el-button
          type="text"
          :icon="item.icon"
          @click="action(item)"
          class="app-btn__link">
        </el-button>
      </li>
    </ul>
    <!--  -->
  </div>
</template>

<script>
export default {
  data() {
    return {
      servicios: [
        {
          label: 'facebook',
          icon: 'icon-facebook',
          url: 'https://www.facebook.com/AGETIC/',
          active: true
        },
        {
          label: 'twitter',
          icon: 'icon-twitter',
          url: 'https://twitter.com/AgeticBolivia',
          active: true
        },
        {
          label: 'youtube',
          icon: 'icon-youtube',
          url: 'https://www.youtube.com/channel/UCEJbZkvWhboLhVBSqC_XOoQ',
          active: true
        },
        //Esto no estaba comentado
        /*{
          label: 'record',
          icon: 'icon-record',
          active: true
        },
        {
          label: 'camera',
          icon: 'icon-camera',
          active: true
        },
        {
          label: 'phone',
          icon: 'icon-phone',
          active: true
64
        },
Esteban Choque's avatar
Esteban Choque committed
65
66
67
68
69
        {
          label: 'link',
          icon: 'icon-link',
          email: 'mailto:soporte@agetic.gob.bo',
          active: true
70
        },*/
Esteban Choque's avatar
Esteban Choque committed
71
72
73
        {
          label: 'whatsapp',
          icon: 'icon-whatsapp',
Esteban Choque's avatar
Esteban Choque committed
74
          url: 'https://wa.me/59175235634?text=Hola%20Bolivia%20Digital',
Esteban Choque's avatar
Esteban Choque committed
75
76
          active: true
        },
77
        /*{
Esteban Choque's avatar
Esteban Choque committed
78
79
80
81
          label: 'messenger',
          icon: 'icon-messenger',
          url: 'https://m.me/AGETIC',
          active: true
82
        }*/
Esteban Choque's avatar
Esteban Choque committed
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
      ]
    };
  },
  computed: {
    items () {
      return this.servicios.filter(item => item.active);
    }
  },
  methods: {
    action (item) {
      if (item.url) {
        window.open(item.url, '_blank');
      } else if (item.email) {
        window.location = item.email;
      }
    }
  }
};
</script>

<style lang="scss">
@import '~/assets/scss/_variables.scss';

.b-servicio {
  color: $colorMenu;
  font-weight: 300;
  line-height: $height;
  font-size: .8rem;
  display: inline-block;
  vertical-align: top;
}

.b-servicio-titulo {
  margin-right: 5px;
  text-transform: uppercase;
}

.b-icon-arrow-down {
  display: none;
}

.b-servicio-opciones {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-block;
}
.b-servicio-item {
  display: inline-block;

  .el-button {
    padding: 7px 0 0 0;
    vertical-align: top;
    opacity: .8;

    &:hover {
      opacity: 1;
    }
  }
}

[class^="icon-"],
[class*=" icon-"] {
  display: inline-block;
  height: 32px;
  width: 32px;
  vertical-align: top;
}

.b-services-short {
  display: none;
}

.icon-facebook {
  background: transparent url('~assets/images/resources/facebook.svg') no-repeat center center;
}
.icon-twitter {
  background: transparent url('~assets/images/resources/twitter.svg') no-repeat center center;
}
.icon-youtube {
  background: transparent url('~assets/images/resources/youtube.svg') no-repeat center center;
}
.icon-record {
  background: transparent url('~assets/images/resources/record.svg') no-repeat center center;
}
.icon-camera {
  background: transparent url('~assets/images/resources/camera.svg') no-repeat center center;
}
.icon-phone {
  background: transparent url('~assets/images/resources/phone.svg') no-repeat center center;
}
.icon-link {
  background: transparent url('~assets/images/resources/link.svg') no-repeat center center;
}
.icon-whatsapp {
  background: transparent url('~assets/images/resources/whatsapp.svg') no-repeat center center;
}
.icon-messenger {
  background: transparent url('~assets/images/resources/messenger.svg') no-repeat center center;
}
</style>