修改首页的画册为swiper
This commit is contained in:
@@ -108,3 +108,96 @@
|
||||
&:nth-child(3) { height: 32px; }
|
||||
}
|
||||
}
|
||||
|
||||
.catalog-swiper {
|
||||
margin: 24px 16px 8px;
|
||||
|
||||
&__header {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
padding: 0 4px 12px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
&__title-wrap {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
&__eyebrow {
|
||||
font-size: 20px;
|
||||
line-height: 1;
|
||||
letter-spacing: 3px;
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
&__title {
|
||||
font-size: 36px;
|
||||
line-height: 1.2;
|
||||
font-weight: 700;
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
&__cta {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 10px 14px;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
&__cta-text {
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
color: #ffffff;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
&__body {
|
||||
border-radius: 20px;
|
||||
overflow: hidden;
|
||||
background: linear-gradient(135deg, #1e293b 0%, #2563eb 100%);
|
||||
box-shadow: 0 12px 32px rgba(37, 99, 235, 0.18);
|
||||
}
|
||||
|
||||
&__slide {
|
||||
width: 100%;
|
||||
//height: 220px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&__image {
|
||||
width: 100%;
|
||||
//height: 220px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
&__placeholder {
|
||||
//height: 220px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
&__placeholder-text {
|
||||
font-size: 28px;
|
||||
color: rgba(255, 255, 255, 0.88);
|
||||
}
|
||||
|
||||
.nut-swiper {
|
||||
//height: 220px !important;
|
||||
}
|
||||
|
||||
.nut-swiper-item {
|
||||
//height: 220px !important;
|
||||
}
|
||||
|
||||
.nut-swiper-item__inner {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user