mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-27 18:16:15 -04:00
feat(new tool): emoji picker (#551)
This commit is contained in:
parent
dfa1ba8554
commit
93f7cf0e98
11 changed files with 192 additions and 6 deletions
42
src/tools/emoji-picker/emoji-card.vue
Normal file
42
src/tools/emoji-picker/emoji-card.vue
Normal file
|
@ -0,0 +1,42 @@
|
|||
<script setup lang="ts">
|
||||
import type { EmojiInfo } from './emoji.types';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
|
||||
const props = (defineProps<{ emojiInfo: EmojiInfo }>());
|
||||
const { emojiInfo } = toRefs(props);
|
||||
|
||||
const { copy } = useCopy();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-card flex items-center gap-3 important:py-8px important:pl-10px important:pr-5px>
|
||||
<div cursor-pointer text-30px @click="copy(emojiInfo.emoji, { notificationMessage: `Emoji ${emojiInfo.emoji} copied to the clipboard` })">
|
||||
{{ emojiInfo.emoji }}
|
||||
</div>
|
||||
|
||||
<div min-w-0 flex-1>
|
||||
<div truncate font-bold>
|
||||
{{ emojiInfo.title }}
|
||||
</div>
|
||||
|
||||
<!-- <div>
|
||||
<c-link>
|
||||
{{ emojiInfo.codePoints }}
|
||||
</c-link>
|
||||
</div>
|
||||
<div />
|
||||
<div rounded op-70>
|
||||
Unicode: <span border="1px solid current op-30" b-rd-xl px-12px py-4px>{{ emojiInfo.unicode }}</span>
|
||||
</div> -->
|
||||
|
||||
<div flex gap-2 font-mono text-xs op-70>
|
||||
<span cursor-pointer transition hover:text-primary @click="copy(emojiInfo.codePoints, { notificationMessage: `Code points '${emojiInfo.codePoints}' copied to the clipboard` })">
|
||||
{{ emojiInfo.codePoints }}
|
||||
</span>
|
||||
<span cursor-pointer truncate transition hover:text-primary @click="copy(emojiInfo.unicode, { notificationMessage: `Unicode '${emojiInfo.unicode}' copied to the clipboard` })">
|
||||
{{ emojiInfo.unicode }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</c-card>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue