main.scss 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. @use "./fonts.scss";
  2. @use "./fix.scss";
  3. @use "./components.scss";
  4. @use "./news.scss";
  5. @use "./colors.scss" as *;
  6. body,
  7. html {
  8. font-size: 16px;
  9. font-weight: normal;
  10. margin: 0;
  11. padding: 0;
  12. color: $text-color;
  13. }
  14. main {
  15. position: relative;
  16. }
  17. //Header
  18. $large-banner-height: 600px;
  19. $small-banner-height: 445px;
  20. .main-header-box {
  21. position: relative;
  22. width: 100%;
  23. min-height: $large-banner-height;
  24. background-color: $primary-color;
  25. &.small {
  26. min-height: $small-banner-height;
  27. }
  28. img {
  29. position: absolute;
  30. top: 0;
  31. left: 0;
  32. width: 100%;
  33. height: 100%;
  34. object-fit: cover;
  35. z-index: 0;
  36. }
  37. }
  38. .main-center-text {
  39. position: absolute;
  40. top: 50%;
  41. left: 50%;
  42. transform: translate(-50%, -50%);
  43. text-align: center;
  44. }
  45. .main-header-title {
  46. font-family: SourceHanSerifCNBold;
  47. color: $text-color-light;
  48. h1 {
  49. font-size: 3rem;
  50. margin: 0;
  51. margin-bottom: 16px;
  52. }
  53. h2 {
  54. font-size: 2.5rem;
  55. margin: 0;
  56. margin-bottom: 16px;
  57. }
  58. p {
  59. font-size: 1.5rem;
  60. margin: 0;
  61. margin-bottom: 24px;
  62. }
  63. }
  64. .main-header-tab {
  65. position: absolute;
  66. bottom: 0;
  67. left: 0;
  68. right: 0;
  69. .list {
  70. margin: 0 auto;
  71. max-width: $selection-max-width;
  72. background-color: $box-dark-trans-color3;
  73. backdrop-filter: blur(5px);
  74. display: flex;
  75. flex-direction: row;
  76. align-items: center;
  77. justify-content: flex-start;
  78. > div {
  79. min-width: 300px;
  80. height: 56px;
  81. color: $text-color-light;
  82. text-align: center;
  83. line-height: 56px;
  84. cursor: pointer;
  85. &.active {
  86. background-color: $primary-color;
  87. height: 60px;
  88. }
  89. }
  90. }
  91. }
  92. //Utitles
  93. .main-background {
  94. background-size: 100% auto;
  95. background-repeat: repeat;
  96. background-position: center top;
  97. &-type0 {
  98. background-image: url('@/assets/images/BgLong.jpg');
  99. }
  100. &-type1 {
  101. background-image: url('@/assets/images/Bg1.png');
  102. }
  103. &-type2 {
  104. background-image: url('@/assets/images/Bg2.png');
  105. }
  106. &-type3 {
  107. background-image: url('@/assets/images/index/IntrodRight.png');
  108. }
  109. }
  110. .main-clickable {
  111. cursor: pointer;
  112. -webkit-user-select: none;
  113. user-select: none;
  114. transition: all 0.2s ease;
  115. &:hover {
  116. transform: scale(1.05);
  117. }
  118. &:active {
  119. transform: scale(0.95);
  120. }
  121. }
  122. //Boxs
  123. .main-box {
  124. overflow: hidden;
  125. background-color: $box-color;
  126. border-radius: 5px;
  127. }
  128. //Section
  129. .main-section {
  130. position: relative;
  131. padding: 120px 100px;
  132. &.absolute {
  133. position: absolute;
  134. top: 0;
  135. left: 0;
  136. right: 0;
  137. z-index: 10;
  138. }
  139. &.fit-small-header {
  140. height: $small-banner-height;
  141. }
  142. &.light {
  143. color: $text-color-light;
  144. }
  145. &.small-h {
  146. padding-top: 40px;
  147. padding-bottom: 40px;
  148. }
  149. h2 {
  150. display: flex;
  151. flex-direction: row;
  152. align-items: center;
  153. margin: 0;
  154. font-size: 2rem;
  155. font-family: SourceHanSerifCNBold;
  156. &::after, &::before {
  157. content: '';
  158. display: inline-block;
  159. width: 20px;
  160. height: 20px;
  161. background-size: 20px;
  162. background-image: url('@/assets/images/TitleMiniHeader.png');
  163. }
  164. &::after {
  165. margin-left: 10px;
  166. }
  167. &::before {
  168. margin-right: 10px;
  169. }
  170. }
  171. .content {
  172. max-width: $selection-max-width;
  173. margin: 0 auto;
  174. .title {
  175. display: flex;
  176. flex-direction: row;
  177. align-items: center;
  178. justify-content: center;
  179. margin-bottom: 40px;
  180. &.left-right {
  181. justify-content: space-between;
  182. }
  183. .small-more {
  184. display: flex;
  185. flex-direction: row;
  186. align-items: center;
  187. font-size: 0.9rem;
  188. color: $text-second-color;
  189. cursor: pointer;
  190. -webkit-user-select: none;
  191. user-select: none;
  192. img {
  193. width: 80px;
  194. margin-left: 20px;
  195. }
  196. }
  197. }
  198. .tab-button {
  199. background-color: $primary-color;
  200. color: $text-color-light;
  201. padding: 10px 15px;
  202. margin-right: 8px;
  203. cursor: pointer;
  204. user-select: none;
  205. outline: none;
  206. }
  207. }
  208. }
  209. .main-stats {
  210. display: flex;
  211. flex-direction: column;
  212. font-family: SourceHanSerifCNBold;
  213. h4 {
  214. margin: 50px 0 10px 0;
  215. font-size: 1rem;
  216. color: $text-second-color;
  217. }
  218. .descs {
  219. display: flex;
  220. flex-direction: row;
  221. align-items: center;
  222. justify-content: space-around;
  223. div {
  224. text-align: center;
  225. cursor: pointer;
  226. }
  227. h5 {
  228. margin: 0;
  229. font-size: 4.5rem;
  230. font-weight: bold;
  231. }
  232. p {
  233. margin: 0;
  234. font-size: 0.9rem;
  235. }
  236. }
  237. }
  238. //
  239. @media (max-width: 1280px) {
  240. .main-section {
  241. padding: 100px 80px;
  242. &.small-h {
  243. padding-top: 40px;
  244. padding-bottom: 40px;
  245. }
  246. }
  247. }
  248. @media (max-width: 1024px) {
  249. .main-section {
  250. padding: 80px 60px;
  251. &.small-h {
  252. padding-top: 30px;
  253. padding-bottom: 30px;
  254. }
  255. }
  256. .main-header-tab {
  257. .list {
  258. > div {
  259. min-width: initial;
  260. flex: 1;
  261. }
  262. }
  263. }
  264. }
  265. @media (max-width: 768px) {
  266. .main-section {
  267. padding: 80px 40px;
  268. &.small-h {
  269. padding-top: 20px;
  270. padding-bottom: 20px;
  271. }
  272. }
  273. .main-stats {
  274. h4 {
  275. margin: 20px 0 10px 0;
  276. font-size: 1rem;
  277. }
  278. .descs {
  279. h5 {
  280. font-size: 3rem;
  281. }
  282. p {
  283. font-size: 0.9rem;
  284. }
  285. }
  286. }
  287. }
  288. @media (max-width: 425px) {
  289. .main-section {
  290. padding: 80px 20px;
  291. &.small-h {
  292. padding-top: 20px;
  293. padding-bottom: 20px;
  294. }
  295. .content .title.left-right {
  296. flex-direction: column;
  297. }
  298. }
  299. }
  300. @media (max-width: 500px) {
  301. .main-header-box {
  302. &.small {
  303. min-height: $large-banner-height;
  304. }
  305. }
  306. .main-section.fit-small-header {
  307. height: $large-banner-height;
  308. }
  309. .main-stats {
  310. h4 {
  311. margin: 10px 0 5px 0;
  312. font-size: 0.7rem;
  313. }
  314. .descs {
  315. h5 {
  316. font-size: 2rem;
  317. }
  318. p {
  319. font-size: 0.8rem;
  320. }
  321. }
  322. }
  323. }