feat: 任务和社区页面
This commit is contained in:
+259
-38
@@ -279,18 +279,32 @@
|
||||
}
|
||||
|
||||
.plant-task-card {
|
||||
background: white;
|
||||
border-radius: 40rpx;
|
||||
background: linear-gradient(160deg, #FFFFFF 0%, #F5F9F6 100%);
|
||||
border-radius: 32rpx;
|
||||
padding: 32rpx;
|
||||
margin-bottom: 32rpx;
|
||||
box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.03);
|
||||
border: 2rpx solid transparent;
|
||||
box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.04);
|
||||
border: 1rpx solid rgba(0,0,0,0.02);
|
||||
transition: all 0.2s;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Decorator for card */
|
||||
.plant-task-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
background: radial-gradient(circle at top right, #E8F5E9 0%, transparent 70%);
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.plant-task-card.has-overdue {
|
||||
border-color: rgba(239, 83, 80, 0.1);
|
||||
background: #FFF8F8;
|
||||
border: 2rpx solid rgba(239, 83, 80, 0.2);
|
||||
background: linear-gradient(160deg, #FFEBEE 0%, #FFF 100%);
|
||||
}
|
||||
|
||||
.card-header-row {
|
||||
@@ -299,7 +313,7 @@
|
||||
align-items: center;
|
||||
margin-bottom: 32rpx;
|
||||
padding-bottom: 24rpx;
|
||||
border-bottom: 2rpx solid rgba(0, 0, 0, 0.03);
|
||||
border-bottom: 2rpx dashed rgba(0, 0, 0, 0.05); /* Dashed line for ticket feel */
|
||||
}
|
||||
|
||||
.plant-info-brief {
|
||||
@@ -309,11 +323,13 @@
|
||||
}
|
||||
|
||||
.plant-thumb-small {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
border-radius: 24rpx;
|
||||
overflow: hidden;
|
||||
background: #f0f0f0;
|
||||
box-shadow: 0 4rpx 10rpx rgba(0,0,0,0.05);
|
||||
border: 2rpx solid #FFF;
|
||||
}
|
||||
|
||||
.plant-thumb-small image {
|
||||
@@ -324,40 +340,46 @@
|
||||
.thumb-placeholder {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #E8F5E9;
|
||||
color: #558B2F;
|
||||
background: #C8E6C9;
|
||||
color: #2E7D32;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: 700;
|
||||
font-size: 32rpx;
|
||||
font-size: 36rpx;
|
||||
}
|
||||
|
||||
.plant-name-title {
|
||||
font-size: 30rpx;
|
||||
font-weight: 700;
|
||||
color: #263238;
|
||||
font-size: 32rpx;
|
||||
font-weight: 800;
|
||||
color: #1B5E20; /* Dark Green theme */
|
||||
letter-spacing: 1rpx;
|
||||
}
|
||||
|
||||
.group-overdue-badge {
|
||||
font-size: 20rpx;
|
||||
color: #EF5350;
|
||||
background: rgba(239, 83, 80, 0.1);
|
||||
padding: 4rpx 16rpx;
|
||||
color: #C62828;
|
||||
background: #FFCDD2;
|
||||
padding: 6rpx 18rpx;
|
||||
border-radius: 20rpx;
|
||||
font-weight: 600;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.plant-tasks-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 24rpx;
|
||||
gap: 28rpx;
|
||||
}
|
||||
|
||||
.mini-task-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background: rgba(255,255,255,0.6);
|
||||
padding: 16rpx;
|
||||
border-radius: 20rpx;
|
||||
width: 100%;
|
||||
box-sizing: border-box; /* Important for padding */
|
||||
}
|
||||
|
||||
.mini-task-left {
|
||||
@@ -367,14 +389,15 @@
|
||||
}
|
||||
|
||||
.task-type-icon-circle {
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
background: #F8F9FA;
|
||||
border-radius: 50%;
|
||||
width: 72rpx;
|
||||
height: 72rpx;
|
||||
background: #FFF;
|
||||
border-radius: 24rpx; /* Softer square */
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #90A4AE;
|
||||
box-shadow: 0 4rpx 8rpx rgba(0,0,0,0.03);
|
||||
}
|
||||
|
||||
.task-icon {
|
||||
@@ -385,45 +408,58 @@
|
||||
.mini-task-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4rpx;
|
||||
gap: 6rpx;
|
||||
}
|
||||
|
||||
.task-label {
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
font-size: 30rpx;
|
||||
font-weight: 600;
|
||||
color: #37474F;
|
||||
}
|
||||
|
||||
.task-overdue-text {
|
||||
font-size: 22rpx;
|
||||
color: #EF5350;
|
||||
font-weight: 600;
|
||||
color: #D32F2F;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* Checkbox Styling - Square */
|
||||
.mini-check-btn {
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
border-radius: 20rpx;
|
||||
border: 3rpx solid #E0E0E0;
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
border-radius: 12rpx; /* Square with slight radius */
|
||||
border: 4rpx solid #CFD8DC; /* Thick border */
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.2s;
|
||||
box-sizing: border-box;
|
||||
background: #FFF;
|
||||
}
|
||||
|
||||
.mini-check-btn:active {
|
||||
background: rgba(85, 139, 47, 0.05);
|
||||
border-color: #558B2F;
|
||||
background: #F5F5F5;
|
||||
border-color: #90A4AE;
|
||||
}
|
||||
|
||||
/* Checked State */
|
||||
.mini-check-btn.btn-checked {
|
||||
background: #4CAF50 !important;
|
||||
border-color: #4CAF50 !important;
|
||||
}
|
||||
|
||||
/* Urgent/Overdue State */
|
||||
.mini-check-btn.btn-urgent {
|
||||
border-color: rgba(239, 83, 80, 0.3);
|
||||
border-color: #EF5350;
|
||||
background: #FFEBEE;
|
||||
}
|
||||
|
||||
.mini-check-btn.btn-urgent.btn-checked {
|
||||
background: #EF5350; /* If overdue but checked (rare case?) */
|
||||
}
|
||||
|
||||
.mini-check-btn.btn-urgent:active {
|
||||
background: rgba(239, 83, 80, 0.05);
|
||||
border-color: #EF5350;
|
||||
background: #FFCDD2;
|
||||
}
|
||||
|
||||
/* Modal Specifics */
|
||||
@@ -547,3 +583,188 @@
|
||||
.confirm-complete-btn:active {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
|
||||
/* Empty State Custom */
|
||||
.empty-state-custom {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 60rpx 0;
|
||||
gap: 40rpx;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.empty-scene {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 320rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* Sun Animation */
|
||||
.sun-box {
|
||||
position: absolute;
|
||||
top: 10rpx;
|
||||
right: 120rpx;
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
animation: sunSpin 20s linear infinite;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.sun-core {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
background: radial-gradient(circle, #FFEB3B 0%, #FBC02D 100%);
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 20rpx rgba(253, 216, 53, 0.6);
|
||||
}
|
||||
|
||||
.sun-rays {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
border: 4rpx dashed #FDD835;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
@keyframes sunSpin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
/* Clouds */
|
||||
.cloud {
|
||||
position: absolute;
|
||||
background: #E1F5FE;
|
||||
border-radius: 20rpx;
|
||||
opacity: 0.8;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.cloud-1 {
|
||||
width: 100rpx;
|
||||
height: 36rpx;
|
||||
top: 40rpx;
|
||||
left: 10%;
|
||||
animation: cloudFloat 15s linear infinite alternate;
|
||||
}
|
||||
|
||||
.cloud-2 {
|
||||
width: 80rpx;
|
||||
height: 28rpx;
|
||||
top: 80rpx;
|
||||
right: 15%;
|
||||
animation: cloudFloat 12s linear infinite alternate-reverse;
|
||||
}
|
||||
|
||||
@keyframes cloudFloat {
|
||||
from { transform: translateX(-20rpx); }
|
||||
to { transform: translateX(20rpx); }
|
||||
}
|
||||
|
||||
/* Replaced Empty Img with Icon Group */
|
||||
.empty-icon-group {
|
||||
position: relative;
|
||||
width: 200rpx;
|
||||
height: 200rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.icon-bg-circle {
|
||||
position: absolute;
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
background: white;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 8rpx 32rpx rgba(76, 175, 80, 0.15);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.emoji-icon {
|
||||
font-size: 100rpx;
|
||||
line-height: 1;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
/* Slight shadow for depth */
|
||||
text-shadow: 0 4rpx 8rpx rgba(0,0,0,0.1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.sparkle {
|
||||
position: absolute;
|
||||
background: #FFD54F;
|
||||
clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
|
||||
z-index: 3;
|
||||
animation: sparkleTwinkle 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.s1 {
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
top: 10rpx;
|
||||
right: 20rpx;
|
||||
animation-delay: 0.2s;
|
||||
}
|
||||
|
||||
.s2 {
|
||||
width: 16rpx;
|
||||
height: 16rpx;
|
||||
bottom: 30rpx;
|
||||
left: 20rpx;
|
||||
animation-delay: 1.2s;
|
||||
}
|
||||
|
||||
@keyframes sparkleTwinkle {
|
||||
0%, 100% { transform: scale(0.8) rotate(0deg); opacity: 0.6; }
|
||||
50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
|
||||
}
|
||||
|
||||
.plant-breathing {
|
||||
animation: plantBreathe 4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes plantBreathe {
|
||||
0% { transform: scale(1) translateY(0); }
|
||||
50% { transform: scale(1.05) translateY(-6rpx); }
|
||||
100% { transform: scale(1) translateY(0); }
|
||||
}
|
||||
|
||||
.empty-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 12rpx;
|
||||
font-size: 34rpx;
|
||||
font-weight: 700;
|
||||
color: #2E7D32;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.empty-sub {
|
||||
font-size: 26rpx;
|
||||
color: #7CB342;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.empty-btn {
|
||||
margin-top: 20rpx;
|
||||
box-shadow: 0 8rpx 16rpx rgba(85, 139, 47, 0.2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user