ant-design/site/theme/static/home.less

406 lines
7.2 KiB
Plaintext
Raw Normal View History

2018-01-04 20:00:38 +08:00
@home-bg-color: #2f54eb;
@home-text-color: #314659;
2018-01-12 20:47:07 +08:00
2018-01-04 20:00:38 +08:00
.home-page-wrapper {
position: relative; // will-change: transform;
2016-03-23 22:36:26 +08:00
width: 100%;
2018-01-04 20:00:38 +08:00
padding: 0;
overflow: hidden;
2018-01-04 20:00:38 +08:00
color: @home-text-color;
2019-01-28 16:01:25 +08:00
font-family: Avenir, @font-family, sans-serif;
2018-01-04 20:00:38 +08:00
.page {
position: relative;
2018-01-04 20:00:38 +08:00
width: 100%;
max-width: 1200px;
margin: auto;
padding: 0 24px;
h2 {
margin: 140px auto 100px;
color: @home-text-color;
font-weight: 400;
2018-01-04 20:00:38 +08:00
font-size: 38px;
line-height: 46px;
text-align: center;
2017-01-30 17:44:25 +08:00
}
2018-01-05 11:36:14 +08:00
h1,
h2,
h3,
h4,
p {
will-change: transform;
}
2016-03-23 22:36:26 +08:00
}
2016-03-03 17:23:08 +08:00
}
2016-03-14 15:00:11 +08:00
2018-01-04 20:00:38 +08:00
.banner-bg {
&-wrapper {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
2018-01-04 20:00:38 +08:00
overflow: hidden;
2016-03-23 22:36:26 +08:00
}
2019-04-15 10:52:00 +08:00
2018-01-04 20:00:38 +08:00
position: absolute;
bottom: -200px;
left: 0%;
width: 120%;
height: 200px;
background: @home-bg-color;
2018-01-04 20:00:38 +08:00
transform: rotate(-4deg);
transform-origin: 0;
2016-03-03 17:23:08 +08:00
}
2016-03-14 15:00:11 +08:00
2018-01-04 20:00:38 +08:00
.banner {
display: flex;
align-items: center;
height: 576px;
&-wrapper {
position: relative;
z-index: 1;
overflow: initial;
2018-01-04 20:00:38 +08:00
}
.text-wrapper {
width: 54%;
2018-02-11 18:10:02 +08:00
min-width: 420px;
max-width: 560px;
2018-01-08 12:16:59 +08:00
min-height: 336px;
2018-01-04 20:00:38 +08:00
color: #0d1a26;
2018-01-10 10:35:34 +08:00
> * {
will-change: transform;
}
2018-01-04 20:00:38 +08:00
h1 {
margin: 8px 0 28px;
2018-01-04 20:00:38 +08:00
font-weight: 600;
font-size: 68px;
font-family: Avenir, @font-family, sans-serif;
2018-01-04 20:00:38 +08:00
line-height: 76px;
letter-spacing: 0;
}
p {
color: @home-text-color;
2018-01-04 20:00:38 +08:00
font-size: 20px;
line-height: 40px;
}
}
2018-01-10 13:43:39 +08:00
2018-01-04 20:00:38 +08:00
.img-wrapper {
position: absolute;
right: 0;
bottom: 26px;
width: 46%;
max-width: 482px;
2018-10-24 10:43:40 +08:00
img {
max-width: 100%;
}
2018-01-04 20:00:38 +08:00
}
2018-01-10 13:43:39 +08:00
2018-01-09 14:27:56 +08:00
.banner-btns {
display: flex;
align-items: center;
2018-01-27 22:34:44 +08:00
min-width: 520px;
margin-top: 24px;
2018-01-09 14:27:56 +08:00
}
2018-01-10 13:43:39 +08:00
2018-01-08 12:16:59 +08:00
.banner-btn {
display: inline-block;
height: 40px;
2018-01-08 12:16:59 +08:00
padding: 0 24px;
font-size: 16px;
font-family: @font-family;
2018-02-26 13:54:09 +08:00
line-height: 38px;
2018-01-08 12:16:59 +08:00
text-align: center;
2018-01-08 20:45:33 +08:00
text-decoration: none;
2018-01-10 13:43:39 +08:00
border: 1px solid #2f54eb;
border-radius: 100px;
2018-01-08 12:16:59 +08:00
}
2018-01-10 13:43:39 +08:00
2018-01-08 12:16:59 +08:00
.banner-btn.components {
color: #fff;
background: #2f54eb;
2018-01-08 12:16:59 +08:00
}
2018-01-10 13:43:39 +08:00
2018-01-08 12:16:59 +08:00
.banner-btn.language {
color: #2f54eb;
}
2016-03-03 17:23:08 +08:00
}
2018-01-04 20:00:38 +08:00
svg {
display: block;
g {
transform-origin: 50%;
transform-box: fill-box;
}
2016-03-03 17:23:08 +08:00
}
2018-01-04 20:00:38 +08:00
/** page1 **/
2016-02-29 14:08:40 +08:00
2018-01-04 20:00:38 +08:00
.page1 {
min-height: 784px;
background: @home-bg-color;
background: linear-gradient(to bottom, rgba(47, 84, 235, 1) 0%, rgba(58, 64, 212, 1) 100%);
h2 {
color: #fff !important;
2016-03-23 22:36:26 +08:00
}
2018-01-04 20:00:38 +08:00
&-block {
2016-03-23 22:36:26 +08:00
position: relative;
z-index: 1;
display: block;
max-width: 160px;
margin: auto;
text-align: center;
2018-01-04 20:00:38 +08:00
h3 {
color: #fff;
font-weight: 400;
font-size: 20px;
2018-01-04 20:00:38 +08:00
}
p {
color: #fff;
}
&:hover .page1-image {
2018-12-07 20:02:01 +08:00
box-shadow: 0 6px 10px rgba(5, 26, 180, 0.35);
transform: translateY(-4px);
2018-01-04 20:00:38 +08:00
}
}
&-image {
display: flex;
align-items: center;
2019-04-15 22:44:51 +08:00
justify-content: center;
2018-01-04 20:00:38 +08:00
width: 120px;
height: 120px;
margin: 46px auto 40px;
2018-01-04 20:00:38 +08:00
background: #fff;
border-radius: 100%;
2018-12-07 20:02:01 +08:00
transition: transform 0.45s @ease-out, box-shadow 0.45s @ease-out;
2018-01-04 20:00:38 +08:00
img {
display: block;
}
2016-03-23 22:36:26 +08:00
}
2018-01-04 20:00:38 +08:00
&-point-wrapper {
position: absolute;
top: 0;
right: 0;
left: 0;
2018-01-04 20:00:38 +08:00
margin: auto;
overflow: inherit !important;
2016-03-23 22:36:26 +08:00
}
2016-02-29 14:08:40 +08:00
}
2018-01-04 20:00:38 +08:00
/** page2 **/
2016-03-03 17:23:08 +08:00
2018-01-04 20:00:38 +08:00
.page2 {
min-height: 1110px;
padding-top: 1px;
overflow: initial;
background: #eff3f6;
2018-01-04 20:00:38 +08:00
.page {
position: relative;
z-index: 1;
h2 {
2018-11-09 16:18:15 +08:00
margin-bottom: 112px;
2018-01-04 20:00:38 +08:00
}
}
&-content {
background: @home-bg-color;
box-shadow: 0 12px 20px #d8e0e6;
2018-01-04 20:00:38 +08:00
}
&-components,
&-product {
2018-11-09 16:18:15 +08:00
min-height: 670px;
2018-01-04 20:00:38 +08:00
}
&-components {
2018-01-08 12:16:59 +08:00
position: initial;
2018-01-04 20:00:38 +08:00
padding: 56px;
color: #fff;
line-height: 32px;
background: @home-bg-color;
2018-01-04 20:00:38 +08:00
h3 {
margin: 0 auto 32px;
color: #fff;
font-size: 28px;
2018-01-04 20:00:38 +08:00
}
.components-button-wrapper {
position: absolute;
bottom: 48px;
left: 56px;
a {
display: block;
margin-top: 16px;
2018-01-04 20:00:38 +08:00
color: #fff;
line-height: 1.5em;
}
}
}
&-product {
padding: 48px 56px;
background: #fff;
2018-01-04 20:00:38 +08:00
.product-block {
2018-11-09 16:18:15 +08:00
margin-bottom: 24px;
2018-01-08 12:16:59 +08:00
color: @home-text-color;
2018-01-04 20:00:38 +08:00
&:last-child {
margin-bottom: 0;
.block-text-wrapper {
padding-bottom: 0;
border-bottom: none;
}
}
.block-text-wrapper {
position: relative;
padding-bottom: 24px;
2018-12-07 18:48:07 +08:00
border-bottom: 1px solid @site-border-color-split;
2018-01-04 20:00:38 +08:00
h4 {
position: relative;
display: inline-block;
margin-bottom: 8px;
2018-01-04 20:00:38 +08:00
font-size: 20px;
line-height: 28px;
2018-11-09 16:18:15 +08:00
white-space: nowrap;
.new {
position: absolute;
top: 50%;
right: 0;
display: inline-block;
2018-11-09 16:18:15 +08:00
padding: 0 2px;
color: #fff;
2018-11-09 16:18:15 +08:00
font-size: 12px;
line-height: 16px;
background: #f5222d;
2018-11-09 16:18:15 +08:00
border-radius: 4px;
2018-12-07 20:02:01 +08:00
transform: translate(~'calc(100% + 4px)', -50%); // 手机回行处理
2018-11-09 16:18:15 +08:00
}
2018-01-04 20:00:38 +08:00
}
p {
2018-11-09 16:18:15 +08:00
margin-bottom: 16px;
line-height: 24px;
2018-01-04 20:00:38 +08:00
}
2018-01-08 12:16:59 +08:00
.more {
2018-01-04 20:00:38 +08:00
display: inline-block;
color: @home-bg-color;
line-height: 22px;
2018-01-04 20:00:38 +08:00
vertical-align: top;
i {
font-size: 12px;
vertical-align: middle;
}
}
2018-12-07 20:02:01 +08:00
.more-mobile-react,
.more-mobile-angular {
display: block;
2018-11-09 16:18:15 +08:00
margin-top: 8px;
color: @home-bg-color;
}
2018-01-04 20:00:38 +08:00
}
.block-image-wrapper {
display: flex;
align-items: center;
height: 104px;
2018-01-04 20:00:38 +08:00
img {
display: block;
max-width: 80%;
}
&.right {
justify-content: flex-end;
float: right;
2018-01-04 20:00:38 +08:00
}
}
}
a.product-block:hover {
h4 {
color: @home-bg-color;
2018-01-08 12:16:59 +08:00
}
2018-01-04 20:00:38 +08:00
}
}
2016-03-23 22:36:26 +08:00
}
2018-01-04 20:00:38 +08:00
.parallax-bg {
position: absolute;
top: 0;
left: 0;
z-index: 2;
2018-01-04 20:00:38 +08:00
width: 100%;
height: 100%;
pointer-events: none;
&.bottom {
z-index: 0;
}
&.top {
display: flex;
justify-content: center;
margin-top: 220px;
2018-01-04 20:00:38 +08:00
svg {
overflow: inherit;
}
}
}
2017-12-18 17:58:45 +08:00
2018-01-04 20:00:38 +08:00
/** page3 **/
.page3 {
min-height: 556px;
&-block {
2018-01-05 14:22:03 +08:00
padding: 24px 12px;
2018-01-05 14:07:10 +08:00
a {
display: flex;
justify-content: center;
color: @home-text-color;
}
2018-01-08 12:16:59 +08:00
&:hover {
h3 {
color: @home-bg-color;
}
}
2017-12-18 17:58:45 +08:00
}
2018-01-04 20:00:38 +08:00
&-img-wrapper,
&-text-wrapper {
display: inline-block;
}
&-text-wrapper {
margin-top: 2px;
2018-01-05 14:22:03 +08:00
// max-width: 182px;
2018-01-04 20:00:38 +08:00
margin-left: 32px;
line-height: 24px;
h3 {
margin-bottom: 4px;
2018-01-04 20:00:38 +08:00
font-size: 20px;
line-height: 28px;
}
2017-12-18 17:58:45 +08:00
}
2018-01-04 20:00:38 +08:00
.parallax-bg.top {
margin: 0;
2017-12-18 17:58:45 +08:00
}
}
2018-01-05 14:59:12 +08:00
/** video **/
.new-version-video {
position: fixed;
top: 0;
left: 0;
z-index: 9999;
width: 100vw;
height: 100vh;
background: #fbfbfb;
.vidoe-wrap {
width: 100%;
2018-01-05 14:59:12 +08:00
background: url('https://gw.alipayobjects.com/zos/rmsportal/gEeRuETmbpAYRaeilexm.jpg') repeat-x;
background-size: cover;
video {
display: block;
}
}
}
2018-10-23 12:21:26 +08:00
.banner-1024 {
display: block;
2018-10-23 12:21:26 +08:00
cursor: pointer;
2018-12-07 20:02:01 +08:00
transition: all 0.4s;
2018-10-23 12:21:26 +08:00
&:hover {
transform: translateY(-16px) scale(1.01);
}
}