mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 14:29:33 +08:00
416 lines
7.4 KiB
Plaintext
416 lines
7.4 KiB
Plaintext
@home-bg-color: #2f54eb;
|
|
@home-text-color: #314659;
|
|
|
|
.home-page-wrapper {
|
|
position: relative; // will-change: transform;
|
|
width: 100%;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
color: @home-text-color;
|
|
font-family: Avenir, @font-family, sans-serif;
|
|
|
|
.page {
|
|
position: relative;
|
|
width: 100%;
|
|
max-width: 1200px;
|
|
margin: auto;
|
|
padding: 0 24px;
|
|
h2 {
|
|
margin: 140px auto 100px;
|
|
color: @home-text-color;
|
|
font-weight: 400;
|
|
font-size: 38px;
|
|
line-height: 46px;
|
|
text-align: center;
|
|
}
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
p {
|
|
will-change: transform;
|
|
}
|
|
}
|
|
}
|
|
|
|
.banner-bg {
|
|
&-wrapper {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
position: absolute;
|
|
bottom: -200px;
|
|
left: 0%;
|
|
width: 120%;
|
|
height: 200px;
|
|
background: @home-bg-color;
|
|
transform: rotate(-4deg);
|
|
transform-origin: 0;
|
|
}
|
|
|
|
.banner {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 576px;
|
|
&-wrapper {
|
|
position: relative;
|
|
z-index: 1;
|
|
overflow: initial;
|
|
}
|
|
.text-wrapper {
|
|
width: 54%;
|
|
min-width: 420px;
|
|
max-width: 560px;
|
|
min-height: 336px;
|
|
color: #0d1a26;
|
|
> * {
|
|
will-change: transform;
|
|
}
|
|
h1 {
|
|
margin: 8px 0 28px;
|
|
font-weight: 600;
|
|
font-size: 68px;
|
|
font-family: Avenir, @font-family, sans-serif;
|
|
line-height: 76px;
|
|
letter-spacing: 0;
|
|
}
|
|
p {
|
|
color: @home-text-color;
|
|
font-size: 20px;
|
|
line-height: 40px;
|
|
}
|
|
}
|
|
|
|
.img-wrapper {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 26px;
|
|
width: 46%;
|
|
max-width: 482px;
|
|
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
.banner-btns {
|
|
display: flex;
|
|
align-items: center;
|
|
min-width: 520px;
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.banner-btn {
|
|
display: inline-block;
|
|
height: 40px;
|
|
padding: 0 24px;
|
|
font-size: 16px;
|
|
font-family: Avenir, @font-family, sans-serif;
|
|
line-height: 38px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
border: 1px solid #2f54eb;
|
|
border-radius: 100px;
|
|
}
|
|
|
|
.banner-btn.components {
|
|
color: #fff;
|
|
background: #2f54eb;
|
|
}
|
|
|
|
.banner-btn.language {
|
|
color: #2f54eb;
|
|
}
|
|
}
|
|
|
|
svg {
|
|
display: block;
|
|
g {
|
|
transform-origin: 50%;
|
|
transform-box: fill-box;
|
|
}
|
|
}
|
|
|
|
/** page1 **/
|
|
|
|
.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;
|
|
}
|
|
&-block {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: block;
|
|
max-width: 160px;
|
|
margin: auto;
|
|
text-align: center;
|
|
h3 {
|
|
color: #fff;
|
|
font-weight: 400;
|
|
font-size: 20px;
|
|
}
|
|
p {
|
|
color: #fff;
|
|
}
|
|
&:hover .page1-image {
|
|
box-shadow: 0 6px 10px rgba(5, 26, 180, 0.35);
|
|
transform: translateY(-4px);
|
|
}
|
|
}
|
|
&-image {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 120px;
|
|
height: 120px;
|
|
margin: 46px auto 40px;
|
|
background: #fff;
|
|
border-radius: 100%;
|
|
transition: transform 0.45s @ease-out, box-shadow 0.45s @ease-out;
|
|
img {
|
|
display: block;
|
|
}
|
|
}
|
|
&-point-wrapper {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
left: 0;
|
|
margin: auto;
|
|
overflow: inherit !important;
|
|
}
|
|
}
|
|
|
|
/** page2 **/
|
|
|
|
.page2 {
|
|
min-height: 1110px;
|
|
padding-top: 1px;
|
|
overflow: initial;
|
|
background: #eff3f6;
|
|
.page {
|
|
position: relative;
|
|
z-index: 1;
|
|
h2 {
|
|
margin-bottom: 112px;
|
|
}
|
|
}
|
|
&-content {
|
|
background: @home-bg-color;
|
|
box-shadow: 0 12px 20px #d8e0e6;
|
|
}
|
|
&-components,
|
|
&-product {
|
|
min-height: 670px;
|
|
}
|
|
&-components {
|
|
position: initial;
|
|
padding: 56px;
|
|
color: #fff;
|
|
line-height: 32px;
|
|
background: @home-bg-color;
|
|
h3 {
|
|
margin: 0 auto 32px;
|
|
color: #fff;
|
|
font-size: 28px;
|
|
}
|
|
.components-button-wrapper {
|
|
position: absolute;
|
|
bottom: 48px;
|
|
left: 56px;
|
|
a {
|
|
display: block;
|
|
margin-top: 16px;
|
|
color: #fff;
|
|
line-height: 1.5em;
|
|
}
|
|
}
|
|
}
|
|
&-product {
|
|
padding: 48px 56px;
|
|
background: #fff;
|
|
.product-block {
|
|
margin-bottom: 24px;
|
|
color: @home-text-color;
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
.block-text-wrapper {
|
|
padding-bottom: 0;
|
|
border-bottom: none;
|
|
}
|
|
}
|
|
.block-text-wrapper {
|
|
position: relative;
|
|
padding-bottom: 24px;
|
|
border-bottom: 1px solid @site-border-color-split;
|
|
h4 {
|
|
position: relative;
|
|
display: inline-block;
|
|
margin-bottom: 8px;
|
|
font-size: 20px;
|
|
line-height: 28px;
|
|
white-space: nowrap;
|
|
.new {
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 0;
|
|
display: inline-block;
|
|
padding: 0 2px;
|
|
color: #fff;
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
background: #f5222d;
|
|
border-radius: 4px;
|
|
transform: translate(~'calc(100% + 4px)', -50%); // 手机回行处理
|
|
}
|
|
}
|
|
p {
|
|
margin-bottom: 16px;
|
|
line-height: 24px;
|
|
}
|
|
.more {
|
|
display: inline-block;
|
|
color: @home-bg-color;
|
|
line-height: 22px;
|
|
vertical-align: top;
|
|
i {
|
|
font-size: 12px;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
.more-mobile-react,
|
|
.more-mobile-angular {
|
|
display: block;
|
|
margin-top: 8px;
|
|
color: @home-bg-color;
|
|
}
|
|
}
|
|
.block-image-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 104px;
|
|
img {
|
|
display: block;
|
|
max-width: 80%;
|
|
}
|
|
&.right {
|
|
justify-content: flex-end;
|
|
float: right;
|
|
}
|
|
}
|
|
}
|
|
|
|
a.product-block:hover {
|
|
h4 {
|
|
color: @home-bg-color;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.parallax-bg {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 2;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
&.bottom {
|
|
z-index: 0;
|
|
}
|
|
&.top {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-top: 220px;
|
|
svg {
|
|
overflow: inherit;
|
|
}
|
|
}
|
|
}
|
|
|
|
/** page3 **/
|
|
|
|
.page3 {
|
|
min-height: 556px;
|
|
&-block {
|
|
padding: 24px 12px;
|
|
a {
|
|
display: flex;
|
|
justify-content: center;
|
|
color: @home-text-color;
|
|
}
|
|
&:hover {
|
|
h3 {
|
|
color: @home-bg-color;
|
|
}
|
|
}
|
|
}
|
|
&-img-wrapper,
|
|
&-text-wrapper {
|
|
display: inline-block;
|
|
}
|
|
&-text-wrapper {
|
|
margin-top: 2px;
|
|
// max-width: 182px;
|
|
margin-left: 32px;
|
|
line-height: 24px;
|
|
h3 {
|
|
margin-bottom: 4px;
|
|
font-size: 20px;
|
|
line-height: 28px;
|
|
}
|
|
}
|
|
.parallax-bg.top {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
/** video **/
|
|
|
|
.new-version-video {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 9999;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background: #fbfbfb;
|
|
.vidoe-wrap {
|
|
width: 100%;
|
|
background: url('https://gw.alipayobjects.com/zos/rmsportal/gEeRuETmbpAYRaeilexm.jpg') repeat-x;
|
|
background-size: cover;
|
|
video {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
.banner-1024 {
|
|
display: block;
|
|
cursor: pointer;
|
|
transition: all 0.4s;
|
|
|
|
&:hover {
|
|
transform: translateY(-16px) scale(1.01);
|
|
}
|
|
}
|
|
|
|
.github-btn {
|
|
font-family: Avenir, @font-family, sans-serif;
|
|
&-large {
|
|
.gh-btn,
|
|
.gh-count {
|
|
padding: 4px 8px 2px;
|
|
}
|
|
}
|
|
}
|