index.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. .chapter1 {
  2. position: relative;
  3. height: 1851px;
  4. &::before {
  5. content: "";
  6. position: absolute;
  7. top: 0;
  8. left: 50%;
  9. width: 1741px;
  10. height: 180px;
  11. transform: translateX(-50%);
  12. background: url("@/assets/images/line-min.png") no-repeat center / contain;
  13. }
  14. .chapter {
  15. position: absolute;
  16. top: 213px;
  17. left: 50%;
  18. width: 147px;
  19. height: 167px;
  20. transform: translateX(-50%);
  21. }
  22. &__title {
  23. position: absolute;
  24. top: 553px;
  25. left: 162px;
  26. width: 299px;
  27. height: 324px;
  28. }
  29. &__bg1 {
  30. position: absolute;
  31. top: 501px;
  32. right: 0;
  33. width: 1268px;
  34. height: 670px;
  35. }
  36. &__bg2 {
  37. position: absolute;
  38. top: 1035px;
  39. left: 0;
  40. width: 326px;
  41. height: 1199px;
  42. }
  43. &__context {
  44. position: absolute;
  45. top: 584px;
  46. left: 510px;
  47. width: 559px;
  48. line-height: 51px;
  49. z-index: 1;
  50. }
  51. &-list {
  52. position: absolute;
  53. top: 1335px;
  54. right: 135px;
  55. display: grid;
  56. gap: 25px;
  57. grid-template-columns: repeat(4, 303px);
  58. grid-template-rows: repeat(2, 192px);
  59. grid-template-areas:
  60. "a . . ."
  61. "a . . .";
  62. z-index: 1;
  63. > div {
  64. position: relative;
  65. img {
  66. cursor: pointer;
  67. }
  68. &:first-child {
  69. grid-area: a;
  70. background: url("./images/11-min.png") no-repeat center / contain;
  71. img {
  72. position: absolute;
  73. top: -15px;
  74. left: -100px;
  75. width: 377px;
  76. height: 467px;
  77. }
  78. }
  79. &:nth-child(2) {
  80. background: url("./images/12-min.png") no-repeat center / contain;
  81. img {
  82. position: absolute;
  83. top: -15px;
  84. left: 27px;
  85. width: 224px;
  86. height: 191px;
  87. }
  88. }
  89. &:nth-child(3) {
  90. background: url("./images/13-min.png") no-repeat center / contain;
  91. img {
  92. position: absolute;
  93. top: -30px;
  94. left: 30px;
  95. width: 228px;
  96. height: 211px;
  97. }
  98. }
  99. &:nth-child(4) {
  100. background: url("./images/14-min.png") no-repeat center / contain;
  101. img {
  102. position: absolute;
  103. top: -45px;
  104. left: 51px;
  105. width: 201px;
  106. height: 229px;
  107. }
  108. }
  109. &:nth-child(5) {
  110. background: url("./images/15-min.png") no-repeat center / contain;
  111. img {
  112. position: absolute;
  113. top: -17px;
  114. left: 50%;
  115. width: 76px;
  116. height: 217px;
  117. transform: translateX(-50%);
  118. }
  119. }
  120. &:nth-child(6) {
  121. background: url("./images/16-min.png") no-repeat center / contain;
  122. img {
  123. position: absolute;
  124. top: 11px;
  125. left: 50%;
  126. width: 166px;
  127. height: 171px;
  128. transform: translateX(-50%);
  129. }
  130. }
  131. &:nth-child(7) {
  132. background: url("./images/17-min.png") no-repeat center / contain;
  133. img {
  134. position: absolute;
  135. top: 41px;
  136. left: 50%;
  137. width: 199px;
  138. height: 130px;
  139. transform: translateX(-50%);
  140. }
  141. }
  142. }
  143. }
  144. .more-btn {
  145. position: absolute;
  146. right: 140px;
  147. bottom: 19px;
  148. }
  149. }