添加轮播图

This commit is contained in:
Dev
2026-10-15 16:25:51 +08:00
parent 3bc5ea70fe
commit 373ac94411
9 changed files with 154 additions and 41 deletions
+45 -2
View File
@@ -97,9 +97,52 @@ page {
margin-bottom: 24rpx;
}
/* 语言入口宫格 */
/* 首页轮播:高度对齐原两行编程语言宫格(单项 192rpx × 2 + 卡片上下内边距 32rpx) */
.entry-card {
padding: 16rpx 8rpx;
padding: 0;
}
.entry-swiper {
position: relative;
height: 416rpx;
--td-swiper-radius: var(--radius-lg);
--td-swiper-nav-dot-color: rgba(255, 255, 255, 0.55);
--td-swiper-nav-dot-active-color: #ffffff;
}
.entry-swiper__caption {
position: absolute;
left: 0;
right: 0;
bottom: 0;
z-index: 2;
padding: 48rpx 24rpx 24rpx;
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 100%);
pointer-events: none;
}
.entry-swiper__title {
font-size: 32rpx;
font-weight: 600;
line-height: 44rpx;
color: #ffffff;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.entry-swiper__title + .entry-swiper__subtitle {
margin-top: 12rpx;
}
.entry-swiper__subtitle {
font-size: 24rpx;
line-height: 34rpx;
color: rgba(255, 255, 255, 0.9);
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
/* 平台保障 */