goodbye react, hello vue

This commit is contained in:
2026-01-29 21:23:52 -05:00
parent 8f454e5ce8
commit 24b8a6c4ec
35 changed files with 20258 additions and 4519 deletions

View File

@@ -0,0 +1,32 @@
<template>
<div
class="desktop-icon flex flex-col items-center cursor-pointer p-2 rounded select-none w-20"
:class="{ 'bg-[#000080] bg-opacity-50': isSelected }"
@click="$emit('click')"
@dblclick="$emit('dblclick')"
>
<div class="icon-image w-12 h-12 mb-1 flex items-center justify-center text-4xl">
{{ icon }}
</div>
<span class="text-white text-xs text-center drop-shadow-lg">{{ label }}</span>
</div>
</template>
<script setup lang="ts">
defineProps<{
icon: string
label: string
isSelected?: boolean
}>()
defineEmits<{
click: []
dblclick: []
}>()
</script>
<style scoped>
.desktop-icon:hover {
background: rgba(0, 0, 128, 0.3);
}
</style>