This commit is contained in:
@@ -100,7 +100,8 @@ DATABASES = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# 从环境变量获取数据库配置 (Docker 环境会自动注入这些变量)
|
# 从环境变量获取数据库配置 (Docker 环境会自动注入这些变量)
|
||||||
DB_HOST = os.environ.get('DB_HOST', '121.43.104.161')
|
# DB_HOST = os.environ.get('DB_HOST', '121.43.104.161')
|
||||||
|
DB_HOST = os.environ.get('DB_HOST', '6.6.6.66')
|
||||||
if DB_HOST:
|
if DB_HOST:
|
||||||
DATABASES['default'] = {
|
DATABASES['default'] = {
|
||||||
'ENGINE': 'django.db.backends.postgresql',
|
'ENGINE': 'django.db.backends.postgresql',
|
||||||
@@ -108,7 +109,8 @@ if DB_HOST:
|
|||||||
'USER': os.environ.get('DB_USER', 'market'),
|
'USER': os.environ.get('DB_USER', 'market'),
|
||||||
'PASSWORD': os.environ.get('DB_PASSWORD', '123market'),
|
'PASSWORD': os.environ.get('DB_PASSWORD', '123market'),
|
||||||
'HOST': DB_HOST,
|
'HOST': DB_HOST,
|
||||||
'PORT': os.environ.get('DB_PORT', '6433'),
|
# 'PORT': os.environ.get('DB_PORT', '6433'),
|
||||||
|
'PORT': os.environ.get('DB_PORT', '5432'),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ from drf_spectacular.utils import extend_schema, extend_schema_view, OpenApiPara
|
|||||||
from .models import ESP32Config, Order, WeChatPayConfig, Service, VCCourse, ServiceOrder, Salesperson, CommissionLog, WeChatUser, Distributor, Withdrawal, CourseEnrollment
|
from .models import ESP32Config, Order, WeChatPayConfig, Service, VCCourse, ServiceOrder, Salesperson, CommissionLog, WeChatUser, Distributor, Withdrawal, CourseEnrollment
|
||||||
from .serializers import ESP32ConfigSerializer, OrderSerializer, ServiceSerializer, VCCourseSerializer, ServiceOrderSerializer, WeChatUserSerializer, DistributorSerializer, WithdrawalSerializer, CommissionLogSerializer, CourseEnrollmentSerializer
|
from .serializers import ESP32ConfigSerializer, OrderSerializer, ServiceSerializer, VCCourseSerializer, ServiceOrderSerializer, WeChatUserSerializer, DistributorSerializer, WithdrawalSerializer, CommissionLogSerializer, CourseEnrollmentSerializer
|
||||||
from .utils import get_access_token
|
from .utils import get_access_token
|
||||||
from django.db import transaction
|
from django.db import transaction, models
|
||||||
from django.core.signing import TimestampSigner, BadSignature, SignatureExpired
|
from django.core.signing import TimestampSigner, BadSignature, SignatureExpired
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
from wechatpayv3 import WeChatPay, WeChatPayType
|
from wechatpayv3 import WeChatPay, WeChatPayType
|
||||||
|
|||||||
72
miniprogram/src/subpackages/distributor/_shared.scss
Normal file
72
miniprogram/src/subpackages/distributor/_shared.scss
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
// Tech/Cyberpunk Theme Variables & Mixins
|
||||||
|
|
||||||
|
// Colors
|
||||||
|
$bg-dark: #050505;
|
||||||
|
$primary-cyan: #00f0ff;
|
||||||
|
$primary-green: #00b96b;
|
||||||
|
$primary-purple: #bd00ff;
|
||||||
|
$text-main: #ffffff;
|
||||||
|
$text-secondary: rgba(255, 255, 255, 0.7);
|
||||||
|
$text-muted: rgba(255, 255, 255, 0.4);
|
||||||
|
|
||||||
|
// Mixins
|
||||||
|
@mixin page-container {
|
||||||
|
min-height: 100vh;
|
||||||
|
background-color: $bg-dark;
|
||||||
|
background-image:
|
||||||
|
radial-gradient(circle at 10% 10%, rgba(0, 240, 255, 0.1) 0%, transparent 40%),
|
||||||
|
radial-gradient(circle at 90% 90%, rgba(189, 0, 255, 0.1) 0%, transparent 40%);
|
||||||
|
color: $text-main;
|
||||||
|
padding: 30px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin glass-card {
|
||||||
|
background: rgba(255, 255, 255, 0.03);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
-webkit-backdrop-filter: blur(10px);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||||
|
border-radius: 16px;
|
||||||
|
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin neon-text($color: $primary-cyan) {
|
||||||
|
color: $color;
|
||||||
|
text-shadow: 0 0 10px rgba($color, 0.5), 0 0 20px rgba($color, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin neon-button($color: $primary-cyan) {
|
||||||
|
background: rgba($color, 0.1);
|
||||||
|
border: 1px solid rgba($color, 0.5);
|
||||||
|
color: $color;
|
||||||
|
box-shadow: 0 0 15px rgba($color, 0.2);
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background: rgba($color, 0.2);
|
||||||
|
box-shadow: 0 0 25px rgba($color, 0.4);
|
||||||
|
transform: scale(0.98);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin tech-border {
|
||||||
|
position: relative;
|
||||||
|
&::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: -1px; left: -1px;
|
||||||
|
width: 20px; height: 20px;
|
||||||
|
border-top: 2px solid $primary-cyan;
|
||||||
|
border-left: 2px solid $primary-cyan;
|
||||||
|
border-radius: 4px 0 0 0;
|
||||||
|
}
|
||||||
|
&::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
bottom: -1px; right: -1px;
|
||||||
|
width: 20px; height: 20px;
|
||||||
|
border-bottom: 2px solid $primary-cyan;
|
||||||
|
border-right: 2px solid $primary-cyan;
|
||||||
|
border-radius: 0 0 4px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,48 +1,56 @@
|
|||||||
|
@import './_shared.scss';
|
||||||
|
|
||||||
.page-container {
|
.page-container {
|
||||||
min-height: 100vh;
|
@include page-container;
|
||||||
background: #f5f5f5;
|
|
||||||
padding: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
background: #fff;
|
@include glass-card;
|
||||||
border-radius: 12px;
|
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 24px;
|
||||||
|
|
||||||
.row {
|
.row {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 16px;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
.type {
|
.type {
|
||||||
font-size: 30px;
|
font-size: 28px;
|
||||||
color: #333;
|
color: $text-main;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.amount {
|
.amount {
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
color: #ff9800;
|
@include neon-text($primary-green);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
font-family: 'DIN Alternate', sans-serif;
|
||||||
}
|
}
|
||||||
.source {
|
.source {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
color: #666;
|
color: $text-secondary;
|
||||||
}
|
}
|
||||||
.status {
|
.status {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
color: #00b96b;
|
color: $primary-cyan;
|
||||||
|
background: rgba(0, 240, 255, 0.1);
|
||||||
|
padding: 4px 12px;
|
||||||
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.time {
|
.time {
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
color: #999;
|
color: $text-muted;
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 10px;
|
margin-top: 16px;
|
||||||
border-top: 1px solid #f5f5f5;
|
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
padding-top: 10px;
|
padding-top: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty {
|
.empty {
|
||||||
padding: 100px 0;
|
padding: 100px 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #999;
|
color: $text-muted;
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,68 +1,112 @@
|
|||||||
|
@import './_shared.scss';
|
||||||
|
|
||||||
.page-container {
|
.page-container {
|
||||||
min-height: 100vh;
|
@include page-container;
|
||||||
background-color: #f7f8fa;
|
|
||||||
padding: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-card {
|
.header-card {
|
||||||
background: linear-gradient(135deg, #00b96b, #009456);
|
@include glass-card;
|
||||||
border-radius: 12px;
|
@include tech-border;
|
||||||
padding: 30px 20px;
|
padding: 40px 30px;
|
||||||
color: #fff;
|
margin-bottom: 30px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
box-shadow: 0 4px 12px rgba(0, 185, 107, 0.3);
|
position: relative;
|
||||||
margin-bottom: 20px;
|
overflow: hidden;
|
||||||
|
|
||||||
.label { font-size: 14px; opacity: 0.8; display: block; margin-bottom: 10px; }
|
// Background accent
|
||||||
.amount { font-size: 40px; font-weight: bold; display: block; margin-bottom: 20px; }
|
&::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(0, 185, 107, 0.05));
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.label {
|
||||||
|
font-size: 16px;
|
||||||
|
color: $text-secondary;
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
.amount {
|
||||||
|
font-size: 56px;
|
||||||
|
font-weight: bold;
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
@include neon-text($primary-cyan);
|
||||||
|
font-family: 'DIN Alternate', sans-serif; // Use a tech-looking font if available
|
||||||
|
}
|
||||||
|
|
||||||
.btn-withdraw {
|
.btn-withdraw {
|
||||||
background: #fff;
|
@include neon-button($primary-green);
|
||||||
color: #00b96b;
|
border-radius: 30px;
|
||||||
border-radius: 20px;
|
font-size: 18px;
|
||||||
font-size: 14px;
|
padding: 0 40px;
|
||||||
padding: 0 30px;
|
height: 50px;
|
||||||
height: 40px;
|
line-height: 50px;
|
||||||
line-height: 40px;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
font-weight: bold;
|
||||||
|
letter-spacing: 2px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.stats-grid {
|
.stats-grid {
|
||||||
display: flex;
|
display: flex;
|
||||||
background: #fff;
|
@include glass-card;
|
||||||
border-radius: 12px;
|
padding: 30px 0;
|
||||||
padding: 20px 0;
|
margin-bottom: 30px;
|
||||||
margin-bottom: 20px;
|
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-right: 1px solid #eee;
|
border-right: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
|
|
||||||
&:last-child { border-right: none; }
|
&:last-child { border-right: none; }
|
||||||
|
|
||||||
.val { font-size: 18px; font-weight: bold; color: #333; display: block; margin-bottom: 5px; }
|
.val {
|
||||||
.lbl { font-size: 12px; color: #999; }
|
font-size: 24px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: $text-main;
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
|
||||||
|
}
|
||||||
|
.lbl {
|
||||||
|
font-size: 14px;
|
||||||
|
color: $text-secondary;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-list {
|
.menu-list {
|
||||||
background: #fff;
|
@include glass-card;
|
||||||
border-radius: 12px;
|
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
|
|
||||||
.menu-item {
|
.menu-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 60px;
|
height: 70px; // Larger touch target
|
||||||
border-bottom: 1px solid #f5f5f5;
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||||
font-size: 16px;
|
font-size: 18px;
|
||||||
color: #333;
|
color: $text-main;
|
||||||
|
|
||||||
&:last-child { border-bottom: none; }
|
&:last-child { border-bottom: none; }
|
||||||
|
|
||||||
.arrow { color: #ccc; }
|
.arrow {
|
||||||
|
color: $primary-cyan;
|
||||||
|
opacity: 0.7;
|
||||||
|
font-family: monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background: rgba(255, 255, 255, 0.02);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,43 +1,49 @@
|
|||||||
|
@import './_shared.scss';
|
||||||
|
|
||||||
.page-container {
|
.page-container {
|
||||||
padding: 30px;
|
@include page-container;
|
||||||
background-color: #f8f8f8;
|
|
||||||
min-height: 100vh;
|
|
||||||
box-sizing: border-box;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.qr-card {
|
.qr-card {
|
||||||
background: #fff;
|
@include glass-card;
|
||||||
border-radius: 16px;
|
@include tech-border;
|
||||||
padding: 40px;
|
padding: 40px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
|
|
||||||
margin-top: 40px;
|
margin-top: 40px;
|
||||||
|
|
||||||
.qr-img {
|
.qr-img {
|
||||||
width: 400px;
|
width: 400px;
|
||||||
height: 400px;
|
height: 400px;
|
||||||
background: #eee;
|
background: rgba(255, 255, 255, 0.1);
|
||||||
margin-bottom: 30px;
|
margin-bottom: 40px;
|
||||||
|
border: 1px solid $primary-cyan;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tip {
|
.tip {
|
||||||
color: #666;
|
color: $text-main;
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 1.5;
|
line-height: 1.6;
|
||||||
|
opacity: 0.9;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-save {
|
.btn-save {
|
||||||
margin-top: 60px;
|
margin-top: 60px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: #07c160;
|
@include neon-button($primary-cyan);
|
||||||
color: #fff;
|
height: 90px;
|
||||||
|
line-height: 90px;
|
||||||
|
font-size: 32px;
|
||||||
|
font-weight: bold;
|
||||||
|
border-radius: 45px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,51 +1,57 @@
|
|||||||
|
@import './_shared.scss';
|
||||||
|
|
||||||
.page-container {
|
.page-container {
|
||||||
min-height: 100vh;
|
@include page-container;
|
||||||
background: #f5f5f5;
|
|
||||||
padding: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
background: #fff;
|
@include glass-card;
|
||||||
border-radius: 12px;
|
padding: 30px;
|
||||||
padding: 24px;
|
margin-bottom: 24px;
|
||||||
margin-bottom: 20px;
|
|
||||||
.row {
|
.row {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
border-bottom: 1px solid #f5f5f5;
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
padding-bottom: 16px;
|
padding-bottom: 16px;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
|
|
||||||
.order-no {
|
.order-no {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
color: #666;
|
color: $text-secondary;
|
||||||
|
font-family: monospace;
|
||||||
}
|
}
|
||||||
.status {
|
.status {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
color: #00b96b;
|
color: $primary-green;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
|
|
||||||
.img {
|
.img {
|
||||||
width: 120px;
|
width: 120px;
|
||||||
height: 120px;
|
height: 120px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background: #eee;
|
background: rgba(255, 255, 255, 0.1);
|
||||||
margin-right: 20px;
|
margin-right: 24px;
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
}
|
}
|
||||||
.info {
|
.info {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
color: #333;
|
color: $text-main;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
.price {
|
.price {
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
color: #ff9800;
|
color: $primary-cyan;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -54,12 +60,13 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
color: #999;
|
color: $text-muted;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty {
|
.empty {
|
||||||
padding: 100px 0;
|
padding: 100px 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #999;
|
color: $text-muted;
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,42 +1,46 @@
|
|||||||
|
@import './_shared.scss';
|
||||||
|
|
||||||
.page-container {
|
.page-container {
|
||||||
min-height: 100vh;
|
@include page-container;
|
||||||
background-color: #f7f8fa;
|
|
||||||
padding: 40px 20px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
background: #fff;
|
@include glass-card;
|
||||||
border-radius: 12px;
|
@include tech-border;
|
||||||
padding: 40px 30px;
|
padding: 50px 30px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
|
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: 24px;
|
font-size: 32px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #333;
|
@include neon-text($primary-purple);
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 16px;
|
||||||
|
letter-spacing: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.desc {
|
.desc {
|
||||||
font-size: 14px;
|
font-size: 16px;
|
||||||
color: #999;
|
color: $text-secondary;
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 40px;
|
margin-bottom: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-register {
|
.btn-register {
|
||||||
background: #00b96b;
|
@include neon-button($primary-green);
|
||||||
color: #fff;
|
background: linear-gradient(90deg, rgba(0, 185, 107, 0.2), rgba(0, 240, 255, 0.2));
|
||||||
border-radius: 22px;
|
border: 1px solid $primary-green;
|
||||||
height: 44px;
|
border-radius: 30px;
|
||||||
line-height: 44px;
|
height: 56px;
|
||||||
font-size: 16px;
|
line-height: 56px;
|
||||||
border: none;
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
width: 80%;
|
||||||
|
margin: 0 auto;
|
||||||
|
letter-spacing: 4px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,49 +1,61 @@
|
|||||||
|
@import './_shared.scss';
|
||||||
|
|
||||||
.page-container {
|
.page-container {
|
||||||
min-height: 100vh;
|
@include page-container;
|
||||||
background: #f5f5f5;
|
|
||||||
padding-bottom: 40px;
|
padding-bottom: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
background: #fff;
|
@include glass-card;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 24px;
|
||||||
|
|
||||||
.stat {
|
.stat {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.val {
|
.val {
|
||||||
font-size: 36px;
|
font-size: 36px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #333;
|
@include neon-text($primary-cyan);
|
||||||
}
|
}
|
||||||
.lbl {
|
.lbl {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
color: #999;
|
color: $text-secondary;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.list {
|
.list {
|
||||||
background: #fff;
|
@include glass-card;
|
||||||
|
padding: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
.list-header {
|
.list-header {
|
||||||
padding: 20px 30px;
|
padding: 24px 30px;
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
border-bottom: 1px solid #eee;
|
color: $text-main;
|
||||||
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
|
background: rgba(255, 255, 255, 0.02);
|
||||||
}
|
}
|
||||||
.item {
|
.item {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 20px 30px;
|
padding: 24px 30px;
|
||||||
border-bottom: 1px solid #eee;
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
width: 80px;
|
width: 80px;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
margin-right: 20px;
|
margin-right: 24px;
|
||||||
background: #eee;
|
background: #333;
|
||||||
|
border: 2px solid $primary-purple;
|
||||||
}
|
}
|
||||||
.info {
|
.info {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@@ -51,22 +63,23 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
.name {
|
.name {
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
color: #333;
|
color: $text-main;
|
||||||
}
|
}
|
||||||
.time {
|
.time {
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
color: #999;
|
color: $text-muted;
|
||||||
margin-top: 6px;
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.level {
|
.level {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
color: #ff9800;
|
color: $primary-purple;
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.empty {
|
.empty {
|
||||||
padding: 50px;
|
padding: 50px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #999;
|
color: $text-muted;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,33 +1,31 @@
|
|||||||
|
@import './_shared.scss';
|
||||||
|
|
||||||
.page-container {
|
.page-container {
|
||||||
padding: 30px;
|
@include page-container;
|
||||||
background-color: #f8f8f8;
|
|
||||||
min-height: 100vh;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
background: #fff;
|
@include glass-card;
|
||||||
border-radius: 16px;
|
|
||||||
padding: 40px;
|
padding: 40px;
|
||||||
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
|
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
color: #333;
|
color: $text-secondary;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 24px;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-box {
|
.input-box {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-bottom: 1px solid #eee;
|
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 24px;
|
||||||
|
|
||||||
.symbol {
|
.symbol {
|
||||||
font-size: 48px;
|
font-size: 48px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
color: $text-main;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36,22 +34,27 @@
|
|||||||
height: 60px;
|
height: 60px;
|
||||||
font-size: 48px;
|
font-size: 48px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
color: $primary-green;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.balance-tip {
|
.balance-tip {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
color: #999;
|
color: $text-muted;
|
||||||
|
|
||||||
.all {
|
.all {
|
||||||
color: #576b95;
|
color: $primary-cyan;
|
||||||
margin-left: 10px;
|
margin-left: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-submit {
|
.btn-submit {
|
||||||
margin-top: 60px;
|
margin-top: 80px;
|
||||||
background: #07c160;
|
@include neon-button($primary-green);
|
||||||
color: #fff;
|
height: 88px;
|
||||||
|
line-height: 88px;
|
||||||
|
font-size: 32px;
|
||||||
|
font-weight: bold;
|
||||||
|
border-radius: 44px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user