Split desktop and mobile layouts with shared page data so APIs fetch once per context.

Add layout shells, desktop views, module-level page caches, and UI fixes for auth, home, wallet, transactions, address, and related pages.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-14 10:08:46 +03:30
co-authored by Cursor
parent 4404b4cb92
commit a5e458ed25
234 changed files with 18425 additions and 5503 deletions
@@ -0,0 +1,516 @@
/* Premium desktop home — SaaS dashboard design tokens */
.dhome {
min-height: 100%;
background: #f6f7f9;
color: #111827;
font-feature-settings: 'ss01' on;
}
.dhome__container {
max-width: 1180px;
margin: 0 auto;
padding: 28px 36px 40px;
}
.dhome-label {
display: block;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.06em;
color: #9ca3af;
margin-bottom: 6px;
}
.dhome-surface {
background: #ffffff;
border-radius: 14px;
padding: 22px 24px;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
min-width: 0;
overflow: hidden;
.home-referral {
margin-top: 0;
}
}
.dhome-section {
&__header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
}
&__title {
font-size: 13px;
font-weight: 600;
color: #374151;
letter-spacing: -0.01em;
}
}
/* Topbar */
.dhome-topbar {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 24px;
margin-bottom: 28px;
padding-bottom: 24px;
border-bottom: 1px solid rgba(15, 23, 42, 0.06);
&__eyebrow {
font-size: 12px;
font-weight: 500;
color: #9ca3af;
margin-bottom: 4px;
}
&__title {
font-size: 26px;
font-weight: 600;
letter-spacing: -0.03em;
color: #111827;
line-height: 1.2;
}
&__actions {
display: flex;
align-items: center;
gap: 8px;
}
}
.dhome-btn-ghost {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 12px;
border: none;
border-radius: 8px;
background: transparent;
font-size: 13px;
font-weight: 500;
color: #6b7280;
cursor: pointer;
transition: color 0.15s ease, background 0.15s ease;
&:hover {
color: #111827;
background: rgba(15, 23, 42, 0.04);
}
}
/* Alerts */
.dhome-alerts {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 20px;
}
.dhome-alert {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
border-radius: 10px;
font-size: 12px;
font-weight: 500;
line-height: 1.5;
&--warning {
background: #fef3f2;
color: #b42318;
}
&--info {
background: #f0f4ff;
color: #344054;
}
}
/* Hero price */
.dhome-hero-row {
display: grid;
grid-template-columns: minmax(0, 1fr) 300px;
gap: 16px;
margin-bottom: 16px;
}
.dhome-hero-price {
&__brand {
font-size: 13px;
color: #6b7280;
margin: 0 0 12px;
}
&__value-row {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 10px;
}
&__odometer {
font-size: 32px !important;
font-weight: 600 !important;
letter-spacing: -0.03em;
color: #111827;
direction: ltr;
line-height: 1;
}
&__unit {
font-size: 14px;
font-weight: 500;
color: #9ca3af;
}
&__delta {
display: inline-flex;
align-items: center;
padding: 4px 8px;
border-radius: 6px;
font-size: 12px;
font-weight: 600;
direction: ltr;
&--up {
background: #ecfdf3;
color: #027a48;
}
&--down {
background: #fef3f2;
color: #b42318;
}
}
}
.dhome-price-range {
display: flex;
flex-direction: column;
justify-content: center;
gap: 16px;
height: 100%;
&__item {
display: flex;
flex-direction: column;
gap: 4px;
}
&__value {
font-size: 18px;
font-weight: 600;
letter-spacing: -0.02em;
direction: ltr;
text-align: right;
}
&__value--high {
color: #027a48;
}
&__value--low {
color: #b42318;
}
&__divider {
height: 1px;
background: rgba(15, 23, 42, 0.06);
}
}
/* Asset metrics */
.dhome-metrics {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
gap: 12px;
margin-bottom: 16px;
}
.dhome-metric-tile {
background: #ffffff;
border-radius: 12px;
padding: 16px 18px;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
transition: box-shadow 0.15s ease;
&:hover {
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
&__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 8px;
}
&__label {
font-size: 12px;
font-weight: 500;
color: #6b7280;
}
&__info {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border: none;
border-radius: 6px;
background: transparent;
color: #9ca3af;
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease;
&:hover {
background: #f3f4f6;
color: #374151;
}
}
&__value {
font-size: 20px;
font-weight: 600;
letter-spacing: -0.02em;
color: #111827;
line-height: 1.2;
}
}
/* Main dashboard grid */
.dhome-main-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) 272px;
gap: 16px;
align-items: start;
}
.dhome-chart {
:deep(.bg-gray-50) {
background: transparent !important;
border-radius: 0;
padding-top: 0;
padding-bottom: 0;
}
:deep(.w-full.text-center.pt-2) {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
:deep(.chart-metal-segment) {
display: inline-flex;
background: #f3f4f6;
border-radius: 8px;
padding: 3px;
margin-bottom: 0 !important;
flex-shrink: 0;
}
:deep(.chart-metal-segment__item) {
border-radius: 6px;
font-size: 12px;
font-weight: 500;
}
:deep(.chart-timeline-group) {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 6px;
width: 100%;
margin-bottom: 4px;
}
:deep(.chart-timeline-group .ant-radio-button-wrapper) {
margin: 0;
}
}
/* Quick actions */
.dhome-actions {
display: flex;
flex-direction: column;
gap: 2px;
}
.dhome-action {
display: flex;
align-items: center;
gap: 12px;
width: 100%;
padding: 11px 10px;
border: none;
border-radius: 10px;
background: transparent;
cursor: pointer;
text-align: right;
font-family: inherit;
transition: background 0.15s ease;
&:hover {
background: #f9fafb;
}
&__icon {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: 10px;
background: #f3f4f6;
color: @App-primary-color;
flex-shrink: 0;
transition: background 0.15s ease;
}
&:hover &__icon {
background: #eef2f6;
}
&__label {
flex: 1;
font-size: 13px;
font-weight: 600;
color: #374151;
}
&__chevron {
color: #d1d5db;
flex-shrink: 0;
}
}
/* Default layout grid */
.dhome-default-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) 300px;
gap: 16px;
align-items: start;
}
.dhome-default-grid__main,
.dhome-default-grid__side {
display: flex;
flex-direction: column;
gap: 16px;
min-width: 0;
}
.dhome-default-actions {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
}
.dhome-default-action {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
padding: 18px 12px;
border: none;
border-radius: 12px;
background: #f9fafb;
cursor: pointer;
font-family: inherit;
transition: background 0.15s ease, transform 0.15s ease;
&:hover {
background: #f3f4f6;
transform: translateY(-1px);
}
&__icon {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 12px;
background: #ffffff;
color: @App-primary-color;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
&__label {
font-size: 12px;
font-weight: 600;
color: #374151;
text-align: center;
line-height: 1.4;
}
}
/* Garoosi assets strip */
.dhome-garoosi-assets {
display: flex;
flex-direction: column;
gap: 14px;
&__item {
display: flex;
flex-direction: column;
gap: 4px;
}
&__label {
font-size: 12px;
font-weight: 500;
color: #6b7280;
}
&__value {
font-size: 18px;
font-weight: 600;
letter-spacing: -0.02em;
color: #111827;
direction: ltr;
text-align: right;
}
&__divider {
height: 1px;
background: rgba(15, 23, 42, 0.06);
}
}
/* Boursecu subtle accent */
.dhome--boursecu {
.dhome-action__icon {
background: rgba(19, 48, 80, 0.06);
color: #133050;
}
.dhome-hero-price__odometer {
color: #133050;
}
}
@media (max-width: 1024px) {
.dhome__container {
padding: 24px 28px 36px;
}
.dhome-hero-row,
.dhome-main-grid,
.dhome-default-grid {
grid-template-columns: 1fr;
}
.dhome-default-actions {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}