| @import '../../variables.scss'; |
| @import '../../reset.scss'; |
| |
| $regular-icon-font-path: '../../fonts/TXD_D-Regular'; |
| $medium-icon-font-path: '../../fonts/TXD_D-Medium'; |
| |
| @font-face { |
| font-family: 'TXD_D_Regular'; |
| src: url("#{$regular-icon-font-path}.eot"); |
| src: url("#{$regular-icon-font-path}.eot?#iefix") format("embedded-opentype"), |
| url("#{$regular-icon-font-path}.ttf") format("truetype"), |
| url("#{$regular-icon-font-path}.woff") format("woff"); |
| } |
| |
| @font-face { |
| font-family: 'TXD_D_Medium'; |
| src: url("#{$medium-icon-font-path}.eot"); |
| src: url("#{$medium-icon-font-path}.eot?#iefix") format("embedded-opentype"), |
| url("#{$medium-icon-font-path}.ttf") format("truetype"), |
| url("#{$medium-icon-font-path}.woff") format("woff"); |
| } |
| |
| @keyframes fallingStar { |
| 0% { |
| transform: translate3d(0, -100%, 0); |
| } |
| |
| 100% { |
| transform: translate3d(0, 720px, 0); |
| } |
| } |
| |
| .home-page { |
| .top-section { |
| position: relative; |
| height: 720px; |
| background-image: linear-gradient(0deg, $startColor 0%, $intermediateColor 51%, $endColor 100%); |
| .animation { |
| height: 100%; |
| position: absolute; |
| top: 0; |
| border-right: 1px solid rgba(255, 255, 255, 0.3); |
| transform: scaleX(0.5); |
| &::before { |
| position: absolute; |
| background: #fff; |
| content: ''; |
| transform: translate3d(0,-100%,0); |
| } |
| &1 { |
| left: 15%; |
| &::before { |
| width: 4px; |
| height: 18px; |
| opacity: 0.8; |
| animation: fallingStar 1.3s infinite ease-in-out; |
| } |
| } |
| &2 { |
| left: 30%; |
| &::before { |
| left: -3px; |
| width: 6px; |
| height: 24px; |
| animation: fallingStar 1.5s infinite ease-in-out; |
| } |
| } |
| &3 { |
| left: 52%; |
| &::before { |
| width: 4px; |
| height: 14px; |
| opacity: 0.6; |
| animation: fallingStar 2s infinite ease-in-out; |
| } |
| } |
| &4 { |
| left: 65%; |
| &::before { |
| left: -3px; |
| width: 6px; |
| height: 24px; |
| animation: fallingStar 1.5s infinite ease-in-out; |
| } |
| } |
| &5 { |
| left: 85%; |
| &::before { |
| width: 4px; |
| height: 18px; |
| opacity: 0.8; |
| animation: fallingStar 1.3s infinite ease-in-out; |
| } |
| } |
| } |
| .vertical-middle { |
| position: absolute; |
| left: 0; |
| top: 50%; |
| transform: translateY(-50%); |
| box-sizing: border-box; |
| width: 100%; |
| text-align: center; |
| padding: 0 20px; |
| & > img { |
| position: absolute; |
| z-index: -1; |
| left: 0; |
| top: -36px; |
| width: 100%; |
| } |
| } |
| .product-name { |
| position: relative; |
| display: inline-block; |
| h2 { |
| font-family: Avenir-Heavy; |
| font-size: 46px; |
| color: #FFF; |
| text-align: center; |
| word-break: break-word; |
| margin: 0; |
| } |
| img { |
| width: 99px; |
| position: absolute; |
| right: -84px; |
| top: -30px; |
| @media screen and (max-width: 500px){ |
| right: -15px; |
| } |
| } |
| } |
| .product-desc { |
| opacity: 0.6; |
| font-family: Avenir-Medium; |
| font-size: 24px; |
| color: #FFF; |
| text-align: center; |
| margin: 12px auto 0; |
| max-width: 730px; |
| } |
| .button-area { |
| text-align: center; |
| margin-top: 40px; |
| .button { |
| margin-right: 12px; |
| &:last-child { |
| margin-right: 0; |
| } |
| } |
| } |
| .github-buttons { |
| margin-top: 20px; |
| a { |
| margin-right: 12px; |
| &:last-child { |
| margin-right: 0; |
| } |
| div { |
| border-radius: 2px; |
| display: inline-block; |
| height: 24px; |
| line-height: 24px; |
| font-size: 12px; |
| padding: 0 8px; |
| color: #fff; |
| background: rgba(255, 255, 255, 0.2); |
| img { |
| width: 16px; |
| height: 16px; |
| vertical-align: middle; |
| margin-top: -6px; |
| } |
| .count { |
| font-family: TXD_D_Medium; |
| font-size: 16px; |
| padding-left: 4px; |
| display: inline-block; |
| height: 100%; |
| } |
| } |
| } |
| } |
| } |
| .introduction-section { |
| background: #F9FAFA; |
| .introduction-body { |
| max-width: $contentWidth; |
| box-sizing: border-box; |
| margin: 0 auto; |
| min-height: 640px; |
| padding: 0 40px; |
| position: relative; |
| display: flex; |
| flex-wrap: wrap; |
| align-items: center; |
| justify-content: space-between; |
| &::before { |
| content: ''; |
| position: absolute; |
| top: 0; |
| left: 40px; |
| height: 165px; |
| opacity: 0.3; |
| border-right: 1px solid #666; |
| } |
| &::after { |
| content: ''; |
| position: absolute; |
| left: 39px; |
| top: 165px; |
| width: 3px; |
| height: 17px; |
| background-image: linear-gradient(0deg, $startColor 0%, $intermediateColor 51%, $endColor 100%); |
| } |
| .introduction { |
| display: inline-block; |
| width: calc(100% - 726px); |
| min-width: 300px; |
| max-width: 590px; |
| h3 { |
| font-family: Avenir-Heavy; |
| font-size: 36px; |
| color: #333; |
| margin-bottom: 40px; |
| word-break: break-word; |
| } |
| p { |
| opacity: 0.56; |
| font-family: Avenir-Medium; |
| font-size: 18px; |
| color: #999; |
| } |
| } |
| img { |
| width: 530px; |
| height: 412px; |
| margin: 0 82px; |
| max-width: 100%; |
| box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.05); |
| } |
| @media screen and (max-width: 1106px){ |
| .introduction { |
| display: inline-block; |
| width: 100%; |
| max-width: 100%; |
| } |
| img { |
| margin: 0; |
| } |
| } |
| } |
| } |
| .feature-section { |
| box-sizing: border-box; |
| max-width: $contentWidth; |
| margin: 0 auto; |
| position: relative; |
| padding: 80px 40px 40px; |
| &::before { |
| content: ''; |
| position: absolute; |
| top: 0; |
| left: 50%; |
| transform: translateX(-50%); |
| margin: 0 auto; |
| height: 80px; |
| opacity: 0.3; |
| border-right: 1px solid #666; |
| } |
| &::after { |
| content: ''; |
| position: absolute; |
| top: 66px; |
| left: 50%; |
| transform: translateX(-50%); |
| width: 3px; |
| height: 17px; |
| background-image: linear-gradient(0deg, $startColor 0%, $intermediateColor 51%, $endColor 100%); |
| } |
| h3 { |
| font-family: Avenir-Heavy; |
| font-size: 36px; |
| color: #333; |
| text-align: center; |
| margin: 0 0 40px; |
| } |
| ul { |
| list-style: none; |
| padding: 0; |
| margin: 0; |
| li { |
| vertical-align: top; |
| display: inline-block; |
| margin-bottom: 40px; |
| width: 50%; |
| img { |
| vertical-align: top; |
| width: 60px; |
| height: 60px; |
| margin-right: 20px; |
| } |
| div { |
| display: inline-block; |
| width: 80%; |
| h4 { |
| font-family: Avenir-Heavy; |
| font-size: 20px; |
| color: #333; |
| margin: 12px 0; |
| } |
| p { |
| font-family: Avenir-Medium; |
| font-size: 14px; |
| line-height: 20px; |
| color: #999; |
| } |
| } |
| } |
| @media screen and (max-width: 768px){ |
| li { |
| width: 100%; |
| } |
| } |
| } |
| } |
| .start-section { |
| background-image: linear-gradient(0deg, $startColor 0%, $intermediateColor 51%, $endColor 100%); |
| .start-body { |
| max-width: $contentWidth; |
| margin: 0 auto; |
| box-sizing: border-box; |
| height: 260px; |
| padding: 35px 40px; |
| position: relative; |
| &::before { |
| content: ''; |
| position: absolute; |
| top: 0; |
| left: 20px; |
| height: 100%; |
| opacity: 0.3; |
| border-right: 1px solid #fff; |
| } |
| &::after { |
| content: ''; |
| position: absolute; |
| left: 19px; |
| top: 48px; |
| width: 3px; |
| height: 17px; |
| background: #fff; |
| } |
| .left-part { |
| display: inline-block; |
| width: 50%; |
| vertical-align: top; |
| h3 { |
| font-family: Avenir-Heavy; |
| font-size: 36px; |
| color: #FFF; |
| margin: 0; |
| } |
| p { |
| opacity: 0.8; |
| font-family: Avenir-Medium; |
| font-size: 18px; |
| color: #FFF; |
| line-height: 24px; |
| margin: 6px 0 12px; |
| } |
| a { |
| font-family: Avenir-Heavy; |
| font-size: 14px; |
| color: $brandColor; |
| text-align: center; |
| display: inline-block; |
| width: 140px; |
| height: 48px; |
| line-height: 48px; |
| background: #FFF; |
| border-radius: 4px; |
| } |
| } |
| .right-part { |
| display: inline-block; |
| width: 50%; |
| font-size: 0; |
| margin-top: 15px; |
| img { |
| margin-left: 5%; |
| width: 500px; |
| } |
| } |
| @media screen and (max-width: 1050px){ |
| & { |
| height: 474px; |
| } |
| .left-part { |
| width: 100%; |
| } |
| .right-part { |
| width: 100%; |
| margin-top: 38px; |
| img { |
| max-width: 100%; |
| margin-left: 0; |
| } |
| } |
| } |
| } |
| } |
| .users-section { |
| box-sizing: border-box; |
| max-width: $contentWidth; |
| margin: 0 auto; |
| padding: 80px 40px 40px; |
| position: relative; |
| &::before { |
| content: ''; |
| position: absolute; |
| top: 0; |
| left: 50%; |
| transform: translateX(-50%); |
| margin: 0 auto; |
| height: 83px; |
| opacity: 0.3; |
| border-right: 1px solid #666; |
| } |
| &::after { |
| content: ''; |
| position: absolute; |
| top: 66px; |
| left: 50%; |
| transform: translateX(-50%); |
| width: 3px; |
| height: 17px; |
| background-image: linear-gradient(0deg, $startColor 0%, $intermediateColor 51%, $endColor 100%); |
| } |
| h3 { |
| font-family: Avenir-Heavy; |
| font-size: 36px; |
| color: #333; |
| text-align: center; |
| margin-bottom: 40px; |
| } |
| p { |
| font-family: Avenir-Medium; |
| font-size: 14px; |
| color: #666; |
| text-align: center; |
| margin: 0 0 40px; |
| a { |
| color: #1e6bb8; |
| text-decoration: none; |
| } |
| } |
| .users { |
| // display: flex; |
| // flex-wrap: wrap; |
| // justify-content: space-between; |
| display: inline-block; |
| text-align: center; |
| img { |
| margin-right: 10px; |
| width: 140px; |
| height: 80px; |
| margin-bottom: 40px; |
| } |
| } |
| } |
| @media screen and (max-width: $mobileWidth) { |
| .introduction-section { |
| padding: 0 20px; |
| &::before { |
| left: 20px; |
| } |
| &::after { |
| left: 19px; |
| } |
| } |
| .feature-section, .users-section { |
| padding-left: 20px; |
| padding-right: 20px; |
| } |
| } |
| } |