ramadanproject/resources/js/components/SelectionSidebar.vue
Ahmed Darrazi 01c0996c71
Some checks failed
tests / ci (pull_request) Failing after 5m27s
linter / quality (pull_request) Successful in 58s
fix(vue): add lang attrs, fix ESLint issues in Vue components
2026-01-03 05:15:04 +01:00

40 lines
909 B
Vue

<template>
<aside class="selection-sidebar">
<div class="info">
<div>Cells selected: <strong>{{ cellCount }}</strong></div>
<div>Price / cell: <strong>{{ pricePerCell }}</strong></div>
<div>Total: <strong>{{ total }}</strong></div>
</div>
<button class="btn" @click="$emit('open-upload')">Weiter</button>
</aside>
</template>
<script setup lang="ts">
import { computed } from 'vue';
const props = defineProps({
cellCount: { type: Number, default: 0 },
pricePerCell: { type: Number, default: 0 },
});
const total = computed(() => props.cellCount * props.pricePerCell);
</script>
<style scoped>
.selection-sidebar {
width: 300px;
padding: 1rem;
border-left: 1px solid rgba(0,0,0,0.06);
display: flex;
flex-direction: column;
gap: 1rem;
}
.btn {
background: #2563eb;
color: white;
padding: 0.5rem 1rem;
border: none;
border-radius: 6px;
}
</style>