Files
sundynix-pets/pets-fe/pages/home/home.wxss
T
Blizzard 42aea10101
ci-cd / verify (push) Successful in 5s
ci-cd / deploy (push) Skipped
Add immediate startup login and loading states for mini program home
2026-10-05 11:03:33 +08:00

210 lines
3.2 KiB
Plaintext

.hero {
min-height: 330rpx;
background: linear-gradient(135deg, #fff0dd, #ffdec7);
border-radius: 38rpx;
display: flex;
align-items: center;
gap: 12rpx;
padding: 35rpx;
color: #694c3f;
}
.hero-copy {
display: flex;
flex-direction: column;
flex: 1;
min-width: 0;
}
.hero-small {
color: #7c5b46;
font-size: 23rpx;
font-weight: 600;
}
.hero-title {
font-size: 38rpx;
font-weight: 600;
margin: 16rpx 0;
}
.hero-meta {
font-size: 23rpx;
color: #7c5b46;
}
.hero-caption {
font-size: 20rpx;
color: #7c5b46;
margin-top: 36rpx;
}
.hero image {
width: 48%;
height: 220rpx;
flex-shrink: 0;
}
.heading {
margin-top: 8rpx;
}
.link {
font-size: 24rpx;
color: #b95738;
font-weight: 600;
}
.walk-card {
padding: 26rpx;
}
.walk-intro {
display: flex;
gap: 22rpx;
align-items: center;
}
.walk-art {
width: 145rpx;
height: 145rpx;
border-radius: 26rpx;
background: #fff0e2;
display: grid;
place-items: center;
font-size: 72rpx;
}
.walk-title {
font-size: 31rpx;
font-weight: 600;
margin-bottom: 12rpx;
}
.walk-intro .muted {
font-size: 23rpx;
}
.picker-label {
font-size: 23rpx;
color: #886c5f;
margin: 27rpx 0 16rpx;
}
.start {
margin: 24rpx 0 0;
width: 100%;
}
.stats {
display: flex;
gap: 14rpx;
margin-top: 20rpx;
}
.stats > view {
flex: 1;
background: white;
border-radius: 28rpx;
padding: 25rpx 18rpx;
}
.stats > view:nth-child(2) {
background: #f7eadc;
}
.stats > view:nth-child(3) {
background: #edf2fb;
}
.stats text {
display: block;
color: #886c5f;
font-size: 22rpx;
}
.stats strong {
display: block;
font-size: 40rpx;
margin-top: 12rpx;
}
.stats small {
font-size: 22rpx;
color: #886c5f;
}
.tasks {
padding: 12rpx 25rpx;
}
.task {
display: flex;
align-items: center;
gap: 17rpx;
padding: 22rpx 0;
border-bottom: 1rpx solid #ece2d8;
}
.task:last-child {
border: 0;
}
.check {
width: 40rpx;
height: 40rpx;
border: 3rpx solid #ece2d8;
border-radius: 13rpx;
text-align: center;
line-height: 37rpx;
color: white;
}
.check.done {
background: #b95738;
border-color: #b95738;
}
.task-icon {
width: 65rpx;
height: 65rpx;
border-radius: 16rpx;
background: #fff0e2;
display: grid;
place-items: center;
font-size: 34rpx;
}
.task-main {
display: flex;
flex-direction: column;
gap: 6rpx;
}
.task-name {
font-weight: 600;
}
.task-main .muted {
font-size: 22rpx;
}
.home-error {
text-align: center;
padding: 70rpx 35rpx;
display: flex;
align-items: center;
flex-direction: column;
gap: 26rpx;
margin-top: 40rpx;
}
.error-title {
font-size: 30rpx;
font-weight: 600;
}
.home-error .muted {
font-size: 24rpx;
line-height: 1.8;
}
.home-error button {
margin-top: 15rpx;
min-width: 300rpx;
}
.refresh-error {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 22rpx;
background: #fff0e2;
color: #886c5f;
padding: 20rpx 24rpx;
border-radius: 22rpx;
margin-bottom: 20rpx;
}
.refresh-hint {
text-align: center;
font-size: 22rpx;
color: #a48d7e;
margin-bottom: 20rpx;
}
.first-pet {
padding-top: 30rpx;
}
.first-pet-title {
font-size: 27rpx;
font-weight: 600;
margin-bottom: 12rpx;
}
.first-pet .muted {
font-size: 23rpx;
line-height: 1.8;
}