70 lines
1.1 KiB
Vue

<template>
<div class="file-info-card">
<div class="title">{{ name }}</div>
<div class="meta-row">
<span class="meta">{{ size }}</span>
</div>
<div class="meta-row">
<span class="meta">{{ modified }}</span>
</div>
<span class="arrow" />
</div>
</template>
<script setup lang="ts">
interface Props {
name: string
size: string
modified: string
}
const props = defineProps<Props>()
const { name, size, modified } = props
</script>
<style scoped>
.file-info-card {
position: relative;
background: #fff;
border-radius: 4px;
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
padding: 12px 16px;
min-width: 140px;
max-width: 220px;
border: 1px solid #ECECEC;
}
.title {
font-size: 14px;
font-weight: 600;
color: #333;
margin-bottom: 8px;
}
.meta-row {
display: flex;
align-items: center;
gap: 8px;
margin-top: 2px;
}
.meta {
font-size: 10px;
color: #999;
}
.arrow {
position: absolute;
left: -6px;
top: 18px;
width: 0;
height: 0;
border-top: 6px solid transparent;
border-bottom: 6px solid transparent;
border-right: 6px solid #fff;
filter: drop-shadow(-1px 0 0 #ECECEC);
}
</style>