index.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. .home {
  2. margin-top: calc(var(--topnav-height) * -1);
  3. height: 100vh;
  4. overflow: hidden;
  5. background: url("@/assets/images/bg-min.jpg") no-repeat center / cover;
  6. &-iframe {
  7. position: absolute;
  8. top: 0;
  9. left: 0;
  10. width: 100%;
  11. height: 100%;
  12. z-index: 1;
  13. }
  14. &-main {
  15. position: relative;
  16. display: flex;
  17. flex-direction: column;
  18. align-items: center;
  19. margin: calc(45px + var(--topnav-height) * 2) auto 0;
  20. width: 800px;
  21. z-index: 999;
  22. }
  23. &-search {
  24. display: flex;
  25. align-items: center;
  26. gap: 10px;
  27. margin: 50px 0 18px;
  28. padding: 5px 5px 5px 24px;
  29. width: 100%;
  30. height: 60px;
  31. box-sizing: border-box;
  32. border-radius: 5px;
  33. border: 1px solid var(--el-color-primary);
  34. backdrop-filter: blur(2px);
  35. background: rgba($color: white, $alpha: 0.5);
  36. &__input {
  37. flex: 1;
  38. height: 100%;
  39. border: 0;
  40. font-size: 18px;
  41. background: transparent;
  42. outline: none;
  43. }
  44. &__btn {
  45. flex-shrink: 0;
  46. display: flex;
  47. align-items: center;
  48. justify-content: center;
  49. gap: 12px;
  50. width: 130px;
  51. height: 100%;
  52. border: 0;
  53. font-size: 18px;
  54. color: white;
  55. cursor: pointer;
  56. border-radius: 2px;
  57. background: #d3bfa2;
  58. &::before {
  59. content: "";
  60. display: block;
  61. width: 30px;
  62. height: 30px;
  63. background: url("@/assets/images/icon_search-min.png") no-repeat center /
  64. contain;
  65. }
  66. }
  67. }
  68. &-view {
  69. padding: 0 54px 0 18px;
  70. width: 300px;
  71. height: 35px;
  72. line-height: 35px;
  73. font-size: 18px;
  74. color: var(--el-color-primary);
  75. background: url("./images/btn_more-min.png") no-repeat center / contain;
  76. box-sizing: border-box;
  77. text-align: center;
  78. cursor: pointer;
  79. }
  80. &-more {
  81. position: absolute;
  82. left: 50%;
  83. bottom: 36px;
  84. display: flex;
  85. align-items: center;
  86. justify-content: center;
  87. gap: 5px;
  88. width: 131px;
  89. height: 42px;
  90. font-size: 16px;
  91. color: white;
  92. transform: translateX(-50%);
  93. cursor: pointer;
  94. background: url("@/assets/images/btn_01-min.png") no-repeat center / cover;
  95. z-index: 2;
  96. animation: breathing ease-in-out 2s forwards infinite;
  97. }
  98. }
  99. .txt {
  100. position: absolute;
  101. z-index: 3;
  102. top: 0;
  103. left: 0;
  104. width: 200px;
  105. // height: 185px;
  106. text-align: center;
  107. pointer-events: none;
  108. font-size: 18px;
  109. opacity: 0;
  110. // transition: all 0.5s;
  111. // display: -webkit-box;
  112. // overflow: hidden;
  113. // white-space: normal !important;
  114. // text-overflow: ellipsis;
  115. // word-wrap: break-word;
  116. // -webkit-line-clamp: 5;
  117. // -webkit-box-orient: vertical;
  118. h2 {
  119. font-size: 24px;
  120. font-weight: 700;
  121. margin-bottom: 15px;
  122. }
  123. p {
  124. line-height: 24px;
  125. }
  126. }
  127. @keyframes breathing {
  128. 0% {
  129. opacity: 1;
  130. }
  131. 50% {
  132. opacity: 0.6;
  133. }
  134. 100% {
  135. opacity: 1;
  136. }
  137. }