feat(brand): rebrand to Hedena Gold and bring main user-app chrome

Rename the brand, ship Hedena logos, persist login OTP text in the SMS list, and port home/nav/auth/theme polish from main while keeping expert customers intact.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
mahmood
2026-10-27 16:40:54 +03:30
co-authored by Cursor
parent bc881a0a8a
commit c438ab2159
94 changed files with 3385 additions and 1396 deletions
+82 -14
View File
@@ -90,21 +90,29 @@
</div>
</div>
<!-- Per-item note -->
<!-- Per-item note — floating island, same language as the tab bar -->
<Drawer
v-model:visible="cartData.showPopUp"
placement="bottom"
v-if="cartData.tempRow?.product"
:closable="false"
height="300px"
height="auto"
wrap-class-name="cart-note-island"
class="rtl"
:bodyStyle="{ padding: 0 }"
:body-style="{ padding: 0 }"
:drawer-style="{ background: 'transparent', boxShadow: 'none' }"
>
<div class="sheet">
<div class="sheet__handle" aria-hidden="true" />
<h3 class="sheet__title">توضیح برای {{ cartData.tempRow.product.title }}</h3>
<Form :model="formModel" name="noteForm" layout="vertical" autocomplete="off" @finish="setNote">
<FormItem has-feedback name="note">
<Textarea v-model:value="formModel.note" :rows="4" placeholder="مثلاً سایز یا جزئیات سفارش" />
<FormItem has-feedback name="note" class="sheet__field">
<Textarea
v-model:value="formModel.note"
:rows="3"
placeholder="مثلاً سایز یا جزئیات سفارش"
class="sheet__input"
/>
</FormItem>
<button type="submit" class="sheet__cta">ثبت توضیحات</button>
</Form>
@@ -124,7 +132,7 @@
<DialogVant :timeOut="-1" v-model:show="loginNotify" :closeOnClickOverlay="true">
<template v-slot:img>
<img :src="loginDialogImage" alt="" class="opacity-80" />
<img :src="loginDialogImage" alt="" />
</template>
<template v-slot:title>
<div class="p-8 text-justify">برای ثبت سفارش ابتدا باید وارد حساب کاربری خود شوید.</div>
@@ -143,7 +151,7 @@ import { useRouter } from 'vue-router'
import { Drawer, Form, FormItem, Textarea } from 'ant-design-vue'
import AppPullRefresh from '../components/ui/AppPullRefresh.vue'
import dialogEmpty4 from '../assets/img/empty/dialogEmpty4.svg'
import loginDialogImage from '../assets/img/empty/dialogEmpty1.svg'
import loginDialogImage from '../assets/img/empty/dialogLogin.svg'
import Icon from '../components/icon/Icon.vue'
import PageBar from '../components/ui/PageBar.vue'
import Spinner from '../components/Spinner.vue'
@@ -206,6 +214,9 @@ const submitOrder = async () => {
// Ignored by the server, which takes the customer from the token; still
// sent so older builds keep validating. Removed in Phase 2.
customerId: session.customerId ?? undefined,
// Wholesale (عمده) — same as legacy mobile; server also forces this for
// customer placements so admin omde list shows the order.
channel: 'WHOLESALE',
items: cart.items.map((item) => {
const variant = cart.variant(item)
return {
@@ -231,11 +242,8 @@ const submitOrder = async () => {
}
async function onRefresh() {
try {
await cart.init(true)
} finally {
refreshing.value = false
}
await cart.init(true)
refreshing.value = false
}
onMounted(async () => {
@@ -413,14 +421,31 @@ onMounted(async () => {
}
.sheet {
padding: 18px 16px 22px;
padding: 10px 16px 14px;
background: @canvas;
border: 1px solid @hairline;
border-radius: 22px;
box-shadow: 0 10px 28px -12px rgba(20, 22, 26, 0.18);
}
.sheet__handle {
width: 36px;
height: 4px;
margin: 0 auto 12px;
border-radius: 999px;
background: @hairline;
}
.sheet__title {
margin: 0 0 14px;
margin: 0 0 10px;
font-size: 13.5px;
font-weight: 800;
color: @ink;
line-height: 1.5;
}
.sheet__field {
margin-bottom: 12px;
}
.sheet__cta {
@@ -434,5 +459,48 @@ onMounted(async () => {
font-weight: 700;
color: #fff;
background: @primary;
transition: transform 0.15s ease;
}
.sheet__cta:active {
transform: scale(0.98);
}
</style>
<!-- Drawer teleports to body — island chrome must live outside scoped CSS. -->
<style lang="less">
.cart-note-island.ant-drawer-bottom .ant-drawer-content-wrapper {
left: 14px !important;
right: 14px !important;
bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
width: auto !important;
border-radius: 22px;
box-shadow: none;
}
.cart-note-island .ant-drawer-content {
background: transparent;
box-shadow: none;
}
.cart-note-island .ant-drawer-body {
padding: 0 !important;
background: transparent;
}
.cart-note-island .sheet__input.ant-input {
border-radius: 14px;
border-color: @hairline;
background: @hairlineSoft;
font-family: inherit;
font-size: 13px;
resize: none;
box-shadow: none;
}
.cart-note-island .sheet__input.ant-input:focus,
.cart-note-island .sheet__input.ant-input:hover {
border-color: alpha(@primary, 45%);
background: @canvas;
}
</style>