Archived
2
0
This repository has been archived on 2024-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
neko-custom/client/src/components/emoji.vue

49 lines
1.0 KiB
Vue
Raw Normal View History

2020-01-23 06:16:40 +13:00
<template>
<div class="emoji">
<ul>
<li><i @click.stop.prevent="click('heart')" class="fas fa-heart"></i></li>
<li><i @click.stop.prevent="click('poo')" class="fas fa-poo"></i></li>
<li><i @click.stop.prevent="click('grin')" class="fas fa-grin-tears"></i></li>
<li><i @click.stop.prevent="click('dizzy')" class="fas fa-dizzy"></i></li>
</ul>
</div>
</template>
<style lang="scss" scoped>
.emoji {
ul {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
li {
font-size: 24px;
margin: 0 5px;
i {
cursor: pointer;
}
}
}
}
</style>
<script lang="ts">
import { Vue, Component } from 'vue-property-decorator'
@Component({
name: 'neko-emoji',
})
export default class extends Vue {
click(emoji: string) {
this.$swal({
title: 'Error!',
text: 'This feature is not available yet',
icon: 'error',
confirmButtonText: 'Cool',
})
}
}
</script>