yingsa/miniprogram/pages/match/recent/index.wxss
Ethanfly d07ebb735a fix(env): Update API URL and enhance HTML structure
- Change VITE_API_URL in .env from localhost:3000 to localhost:3001 for backend access.
- Update index.html to replace favicon with logo.png and ensure proper HTML structure.
- Add new dependencies for WangEditor in package.json and package-lock.json to support rich text editing features.
2026-02-06 19:04:16 +08:00

157 lines
2.3 KiB
Plaintext

.page {
display: flex;
flex-direction: column;
min-height: 100vh;
background: var(--bg-page);
}
.header {
padding: 32rpx 24rpx 16rpx;
}
.title {
font-size: 36rpx;
font-weight: 600;
color: var(--text-primary);
}
.subtitle {
margin-top: 6rpx;
font-size: 24rpx;
color: var(--text-muted);
}
.loading,
.empty {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: var(--text-muted);
}
.empty-icon {
width: 200rpx;
height: 200rpx;
margin-bottom: 16rpx;
}
.empty-title {
font-size: 28rpx;
color: var(--text-primary);
margin-bottom: 6rpx;
}
.empty-desc {
font-size: 24rpx;
color: var(--text-muted);
}
.list-scroll {
flex: 1;
padding: 0 24rpx 24rpx;
box-sizing: border-box;
}
.match-list {
display: flex;
flex-direction: column;
gap: 16rpx;
}
.match-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 24rpx;
border-radius: 16rpx;
background: var(--bg-card, #ffffff);
box-shadow: var(--shadow-sm, 0 4rpx 12rpx rgba(0, 0, 0, 0.04));
}
.item-main {
flex: 1;
}
.item-line1 {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8rpx;
}
.item-name {
font-size: 30rpx;
font-weight: 600;
color: var(--text-primary);
max-width: 420rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.item-type {
font-size: 22rpx;
padding: 4rpx 12rpx;
border-radius: 20rpx;
}
.item-type.challenge {
background: rgba(255, 152, 0, 0.12);
color: #e65100;
}
.item-type.ranking {
background: rgba(25, 118, 210, 0.12);
color: #1565c0;
}
.item-line2 {
display: flex;
align-items: center;
gap: 12rpx;
font-size: 22rpx;
color: var(--text-secondary);
margin-bottom: 4rpx;
}
.item-status {
font-weight: 500;
padding: 4rpx 12rpx;
border-radius: 20rpx;
font-size: 20rpx;
}
.status-pending {
background: rgba(255, 193, 7, 0.12);
color: #ff8f00;
}
.status-ongoing {
background: rgba(76, 175, 80, 0.12);
color: #2e7d32;
}
.status-finished {
background: rgba(158, 158, 158, 0.12);
color: #616161;
}
.status-cancelled {
background: rgba(244, 67, 54, 0.12);
color: #c62828;
}
.item-line3 {
font-size: 22rpx;
color: var(--text-muted);
}
.item-arrow {
font-size: 40rpx;
color: var(--text-muted);
margin-left: 16rpx;
}