forgeplus-react/src/home/SecondSection/index.scss

167 lines
2.9 KiB
SCSS

.home-second-section {
background: linear-gradient(#fff 0%, #cbdcff 100%);
text-align: center;
padding-top: 40px;
margin-bottom: -10px;
.community-left-tit {
font-size: 1.15em;
color: #000870;
}
.community-main {
display: flex;
justify-content: space-between;
margin: 1.25em auto 3.15em;
text-align: left;
.homepage-btn {
margin-top: 2.5em;
}
}
.community-english {
font-size: 1.25em;
opacity: 0.88;
color: #e67a21;
margin-right: 1.25em;
}
.community-star {
color: #ff7a21;
i {
margin-right: 0.5em;
}
}
.community-left {
display: flex;
flex-direction: column;
justify-content: center;
width: 50%;
padding-right: 20px;
opacity: 0;
text-align: left;
}
.community-left-content {
font-size: .95em;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #3c476e;
line-height: 2.25em;
}
.community-active {
position: relative;
animation: community 0.75s 1 forwards;
}
@keyframes community {
0% {
right: 50vw;
opacity: 0;
}
100% {
right: 0;
opacity: 1;
transition: all 2s;
}
}
// .parallax > use:nth-child(1) {
// animation-delay: -5s;
// animation-duration: 20s;
// }
}
.home-second-section-slide {
width: 50%;
.slick-track > div {
max-width: 83.3%;
position: relative;
transition: all 0.7s;
}
.news-slide-item {
height: 11.25em;
overflow: hidden;
background-image: linear-gradient(
to bottom right,
#e9f5ff 0%,
#f1f2fd 25%,
#e8f2ff 50%,
#e1eaff 75%,
#c6d3ff 100%
);
margin-bottom: 10px;
padding: 1.25em 1.8em 1.6em;
border: 1px solid #fff;
border-radius: .3em;
.slide-title {
display: flex;
align-items: center;
}
.slide-title-content {
color: #000870;
font-size: 1em;
margin-bottom: 0 !important;
flex: auto;
}
.order-num {
flex: none;
display: inline-block;
margin-right: 1em;
color: #fff;
border-radius: 50%;
width: 1.75em;
height: 1.75em;
line-height: 1.75em;
background: linear-gradient(
272deg,
#4154f1 0%,
#4154f1 47%,
#4154f1 100%
);
box-shadow: 0px 0px 9px 2px rgba(65, 84, 241, 0.33);
text-align: center;
}
.slide-tag {
flex: none;
color: #fff;
padding: .2em .75em;
background: #586dff;
border-radius: .2em;
}
.news-time {
font-size: .95em;
font-weight: 400;
color: #3c476e;
}
p {
margin:1em 0 .5em;
color: #3c476e;
font-size: .9em;
}
}
.slick-center {
margin-left: 100px;
}
.slick-slide:nth-child(n) .slide-tag{
background: #586dff;
}
.slick-slide:nth-child(2n) .slide-tag{
background: #e53939;
}
.slick-slide:nth-child(3n) .slide-tag{
background: #ff7300;
}
}