123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449 |
- @use "./fonts.scss";
- @use "./fix.scss";
- @use "./components.scss";
- @use "./news.scss";
- @use "./colors.scss" as *;
- @use "sass:list";
- @use "sass:math";
- body,
- html {
- font-size: 16px;
- font-weight: normal;
- margin: 0;
- padding: 0;
- color: $text-color;
- }
- main {
- position: relative;
- }
- //Header
- $large-banner-height: 600px;
- $small-banner-height: 445px;
- .main-header-box {
- position: relative;
- width: 100%;
- min-height: $large-banner-height;
- background-color: $primary-color;
- &.small {
- min-height: $small-banner-height;
- }
- img {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- object-fit: cover;
- z-index: 0;
- }
- }
- .main-center-text {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- text-align: center;
- }
- .main-header-title {
- font-family: SourceHanSerifCNBold;
- color: $text-color-light;
- h1 {
- font-size: 3rem;
- margin: 0;
- margin-bottom: 16px;
- }
- h2 {
- font-size: 2.5rem;
- margin: 0;
- margin-bottom: 16px;
- }
- p {
- font-size: 1.5rem;
- margin: 0;
- margin-bottom: 24px;
- }
- }
- .main-header-tab {
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- .list {
- margin: 0 auto;
- max-width: $selection-max-width;
- background-color: $box-dark-trans-color3;
- backdrop-filter: blur(5px);
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: flex-start;
- > div {
- min-width: 300px;
- height: 56px;
- color: $text-color-light;
- text-align: center;
- line-height: 56px;
- cursor: pointer;
- &.active {
- background-color: $primary-color;
- height: 60px;
- }
- }
- }
- }
- //Utitles
- .main-background {
- background-size: 100% auto;
- background-repeat: repeat;
- background-position: center top;
- &-type0 {
- background-image: url('@/assets/images/BgLong.jpg');
- }
- &-type1 {
- background-image: url('@/assets/images/Bg1.png');
- }
- &-type2 {
- background-image: url('@/assets/images/Bg2.png');
- }
- &-type3 {
- background-image: url('@/assets/images/index/IntrodRight.jpg');
- }
- }
- .main-clickable {
- cursor: pointer;
- -webkit-user-select: none;
- user-select: none;
- transition: all 0.2s ease;
- &:hover {
- transform: scale(1.05);
- }
- &:active {
- transform: scale(0.95);
- }
- }
- //Boxs
- .main-box {
- overflow: hidden;
- background-color: $box-color;
- border-radius: 5px;
- }
- //Section
- .main-section {
- position: relative;
- padding: 120px 100px;
- &.absolute {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- z-index: 10;
- }
- &.fit-small-header {
- height: $small-banner-height;
- }
- &.light {
- color: $text-color-light;
- }
- &.small-h {
- padding-top: 40px;
- padding-bottom: 40px;
- }
- h2 {
- display: flex;
- flex-direction: row;
- align-items: center;
- margin: 0;
- font-size: 2rem;
- font-family: SourceHanSerifCNBold;
- &::after, &::before {
- content: '';
- display: inline-block;
- width: 20px;
- height: 20px;
- background-size: 20px;
- background-image: url('@/assets/images/TitleMiniHeader.png');
- }
- &::after {
- margin-left: 10px;
- }
- &::before {
- margin-right: 10px;
- }
- }
-
- .content {
- max-width: $selection-max-width;
- margin: 0 auto;
- .title {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: center;
- margin-bottom: 40px;
- &.left-right {
- justify-content: space-between;
- }
- .small-more {
- display: flex;
- flex-direction: row;
- align-items: center;
- font-size: 0.9rem;
- color: $text-second-color;
- cursor: pointer;
- -webkit-user-select: none;
- user-select: none;
- img {
- width: 80px;
- margin-left: 20px;
- }
- }
- }
- .tab-button {
- background-color: $primary-color;
- color: $text-color-light;
- padding: 10px 15px;
- margin-right: 8px;
- cursor: pointer;
- user-select: none;
- outline: none;
- flex-shrink: 0;
- }
- }
- }
- .main-stats {
- display: flex;
- flex-direction: column;
- font-family: SourceHanSerifCNBold;
- h4 {
- margin: 50px 0 10px 0;
- font-size: 1rem;
- color: $text-second-color;
- }
- .descs {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-around;
- div {
- text-align: center;
- cursor: pointer;
- }
- h5 {
- margin: 0;
- font-size: 4.5rem;
- font-weight: bold;
- }
- p {
- margin: 0;
- font-size: 0.9rem;
- }
- }
- }
- //Card box
- .main-card-box {
- position: relative;
- min-height: 330px;
- color: #fff;
- margin-right: 24px;
- overflow: hidden;
- //transform: translateX(-50%);
- .content {
- position: absolute;
- inset: 24px;
- z-index: 10;
- display: flex;
- flex-direction: column;
- h4 {
- font-family: SourceHanSerifCNBold;
- font-size: 1.5rem;
- margin: 0;
- margin-bottom: 32px;
- }
- .descs {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- .box {
- flex: 1 1 50%;
- margin-bottom: 32px;
- cursor: pointer;
- color: #fff;
- text-decoration: none;
- h5 {
- font-size: 1rem;
- font-weight: normal;
- margin: 0;
- }
- p {
- font-family: Impact;
- font-weight: normal;
- font-size: 2.8rem;
- margin: 0;
- }
- }
- }
- }
- $background-types: (
- type1: (url('@/assets/images/index/BoxPrinting2.png'), url('@/assets/images/index/Box3.jpg')),
- type2: (url('@/assets/images/index/BoxPrinting1.png'), url('@/assets/images/index/Box1.png')),
- type3: (url('@/assets/images/index/BoxPrinting4.png'), url('@/assets/images/index/Box2.jpg'))
- );
- @each $typeName, $type in $background-types {
- &.#{$typeName} {
- &::after {
- content: '';
- position: absolute;
- inset: 0;
- background-image: list.nth($type, 2);
- z-index: 0;
- }
- &::before {
- content: '';
- position: absolute;
- bottom: -10px;
- right: -10px;
- width: 180px;
- height: 180px;
- background-size: 180px;
- background-image: list.nth($type, 1);
- z-index: 1;
- }
- }
- }
- &.type3 .descs div {
- flex-basis: 33%;
- margin-bottom: 22px;
- }
- }
- @media (max-width: 1280px) {
- .main-section {
- padding: 100px 80px;
- &.small-h {
- padding-top: 40px;
- padding-bottom: 40px;
- }
- }
- }
- @media (max-width: 1024px) {
- .main-section {
- padding: 80px 60px;
- &.small-h {
- padding-top: 30px;
- padding-bottom: 30px;
- }
- }
- .main-header-tab {
- .list {
- > div {
- min-width: initial;
- flex: 1;
- }
- }
- }
- }
- @media (max-width: 768px) {
- .main-section {
- padding: 80px 40px;
- &.small-h {
- padding-top: 20px;
- padding-bottom: 20px;
- }
- }
- .main-stats {
- h4 {
- margin: 20px 0 10px 0;
- font-size: 1rem;
- }
- .descs {
- h5 {
- font-size: 3rem;
- }
- p {
- font-size: 0.9rem;
- }
- }
- }
- }
- @media (max-width: 425px) {
- .main-section {
- padding: 80px 20px;
- &.small-h {
- padding-top: 20px;
- padding-bottom: 20px;
- }
- .content .title.left-right {
- flex-direction: column;
- }
- }
- .main-card-box {
- width: auto;
- transform: translateX(20px);
- }
- }
- @media (max-width: 500px) {
- .main-header-box {
- &.small {
- min-height: $large-banner-height;
- }
- }
- .main-section.fit-small-header {
- height: $large-banner-height;
- }
- .main-stats {
- h4 {
- margin: 10px 0 5px 0;
- font-size: 0.7rem;
- }
- .descs {
- h5 {
- font-size: 2rem;
- }
- p {
- font-size: 0.8rem;
- }
- }
- }
- }
|