feat: add new key icon components for Cmd, Enter, Key, and Shift to enhance keyboard representation

This commit is contained in:
pandadev 2025-03-16 21:32:20 +01:00
parent fce7eec1fc
commit 843a1ea8b7
No known key found for this signature in database
GPG key ID: C39629DACB8E762F
4 changed files with 122 additions and 0 deletions

30
components/Keys/Key.vue Normal file
View file

@ -0,0 +1,30 @@
<template>
<div
class="key-container"
:style="{
backgroundColor: 'var(--border)',
padding: '0 7px',
height: '20px',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
borderRadius: '4px',
minWidth: '22px'
}"
>
<span
:style="{
color: '#E5E0D5',
fontSize: '12px'
}"
>
{{ input }}
</span>
</div>
</template>
<script setup lang="ts">
defineProps<{
input: string;
}>();
</script>