DashboardView ("میز کار"): Rebuilt from scratch with a new structure, distinct from the old card+grid layout but visually aligned with HomeView (same blurred bar, @ink/@wine palette, staged reveal animation on mount):
Single hero card (ink→wine gradient) showing balance, gold/fiat debt, and identity — no quick-action icons inside it anymore.
Live gold rate folded into a slim inline row at the bottom instead of a titled section.
Iterated shadow/spacing on the hero card per feedback (softer, less clipped).
DialogVant / DialogVantOneButton (shared modal components, used in 7+ call sites: Dashboard, Cart, SingleProduct, Register, App): Replaced Vant's default dialog chrome with the app's own rounded-card language — circular icon badge for the illustration, pill-shaped primary/secondary buttons. No call-site markup changed.
LoginView: Rebuilt from scratch — full-bleed dark hero (brand + step copy) overlapped by a floating white form sheet, animated crossfade transition between the mobile-number and OTP steps, same staged entrance animation as Home/Dashboard. All auth logic (API check, OTP stub, session login) unchanged.
33 lines
650 B
Vue
33 lines
650 B
Vue
<!-- Ported from legacy henza_pwa/src/components/empty.vue -->
|
|
<template>
|
|
<div class="flex justify-center items-center empty">
|
|
<Empty description="موردی یافت نشد" :image="image" class="h-[200px] w-[200px] opacity-70" />
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { Empty } from 'ant-design-vue'
|
|
|
|
withDefaults(
|
|
defineProps<{
|
|
description?: string
|
|
image?: string
|
|
}>(),
|
|
{},
|
|
)
|
|
</script>
|
|
|
|
<style lang="less">
|
|
.ant-empty {
|
|
.ant-empty-description {
|
|
font-size: 16px !important;
|
|
font-weight: 600;
|
|
margin-top: -36px;
|
|
}
|
|
}
|
|
.empty {
|
|
min-height: calc(100vh - 350px);
|
|
vertical-align: middle;
|
|
}
|
|
</style>
|