nuxt-start/pages/rent/category.vue
2025-01-01 23:06:17 +01:00

40 lines
1001 B
Vue

<template>
<div>
<div class="flex flex-col gap-3 p-3">
<Card v-for="categori in categories" :pt="{ root: 'mb-3' }">
<template #content>
<div class="flex">
<div class="flex justify-center items-center text-3xl font-bold" style="width: 56px; font-size: 32px;">{{ categori.shortname }}</div>
<div>
<div class="text-sm">{{ categori.name }}</div>
<div class="text-primary-500">{{ HUFormat.format(categori.price) }} / nap</div>
</div>
</div>
</template>
</Card>
</div>
</div>
</template>
<script lang="ts" setup>
definePageMeta({
rentStep: 2,
title:'Válassz egy kategóriát'
})
const categoriestStore = useCategoriesStore()
const categories: CategoryType[] = computed(() => {
return categoriestStore.categories
})
let HUFormat = new Intl.NumberFormat('hu-HU', {
style: 'currency',
currency: 'HUF',
maximumFractionDigits:0
});
</script>
<style>
</style>