Files
boursecu_user/src/views/base/earnMoney/desktop/styles/desktop-earn-money.less
T
safavimohadeseh78andCursor a5e458ed25 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>
2026-06-14 10:08:46 +03:30

245 lines
3.9 KiB
Plaintext

/* Premium desktop earn money page */
.dearn {
min-height: 100%;
background: #f6f7f9;
color: #111827;
}
.dearn__container {
max-width: 960px;
margin: 0 auto;
padding: 28px 36px 40px;
}
.dearn-topbar {
margin-bottom: 24px;
padding-bottom: 24px;
border-bottom: 1px solid rgba(15, 23, 42, 0.06);
&__eyebrow {
font-size: 12px;
font-weight: 500;
color: #9ca3af;
margin: 0 0 4px;
}
&__title {
font-size: 26px;
font-weight: 600;
letter-spacing: -0.03em;
color: #111827;
margin: 0 0 6px;
line-height: 1.2;
}
&__subtitle {
font-size: 14px;
color: #6b7280;
margin: 0;
}
}
.dearn-surface {
background: #fff;
border: 1px solid rgba(15, 23, 42, 0.06);
border-radius: 16px;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dearn-referral {
padding: 24px 28px;
margin-bottom: 20px;
&__header {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 1px solid #eef0f3;
}
&__icon {
display: flex;
align-items: center;
justify-content: center;
width: 56px;
height: 56px;
border-radius: 14px;
background: #dbeafe;
flex-shrink: 0;
img {
width: 28px;
height: 28px;
object-fit: contain;
}
}
&__title {
font-size: 18px;
font-weight: 700;
color: #111827;
margin: 0 0 6px;
}
&__desc {
font-size: 13px;
line-height: 1.6;
color: #6b7280;
margin: 0;
}
&__code {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 14px 18px;
margin-bottom: 16px;
border-radius: 12px;
background: #f9fafb;
border: 1px dashed #d1d5db;
}
&__code-label {
font-size: 12px;
color: #6b7280;
font-weight: 500;
}
&__code-value {
font-size: 18px;
font-weight: 700;
color: @App-primary-color;
letter-spacing: 0.02em;
}
&__actions {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
&__btn {
min-height: 44px;
}
}
.dearn-stats {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
margin-bottom: 24px;
&__card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
padding: 20px 16px;
border-radius: 14px;
text-align: center;
&--users {
background: #dbeafe;
color: #2563eb;
}
&--gifts {
background: #fef9c3;
color: #ca8a04;
}
}
&__value {
font-size: 22px;
font-weight: 700;
line-height: 1.2;
}
&__label {
font-size: 13px;
font-weight: 500;
opacity: 0.9;
}
}
.dearn-tabs {
display: inline-flex;
gap: 4px;
padding: 4px;
margin-bottom: 20px;
background: #f3f4f6;
border-radius: 12px;
&__btn {
min-width: 140px;
padding: 10px 18px;
border: none;
border-radius: 10px;
background: transparent;
font-size: 14px;
font-weight: 600;
color: #6b7280;
font-family: inherit;
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
&:hover {
color: #374151;
}
&--active {
background: #fff;
color: @App-primary-color;
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
}
}
.dearn-list {
padding: 20px 24px 24px;
&__loading,
&__items {
display: flex;
flex-direction: column;
gap: 4px;
}
}
.dearn-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
padding: 48px 24px;
color: #9ca3af;
text-align: center;
p {
margin: 0;
font-size: 14px;
color: #6b7280;
}
svg,
.basic-icon {
color: #d1d5db;
}
}
@media (max-width: 1023.98px) {
.dearn-stats {
grid-template-columns: 1fr;
}
.dearn-referral__actions {
grid-template-columns: 1fr;
}
}