404.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <template>
  2. <div class="wscn-http404-container">
  3. <div class="wscn-http404">
  4. <div class="pic-404">
  5. <img class="pic-404__parent"
  6. src="@/assets/404_images/404.png"
  7. alt="404">
  8. <img class="pic-404__child left"
  9. src="@/assets/404_images/404_cloud.png"
  10. alt="404">
  11. <img class="pic-404__child mid"
  12. src="@/assets/404_images/404_cloud.png"
  13. alt="404">
  14. <img class="pic-404__child right"
  15. src="@/assets/404_images/404_cloud.png"
  16. alt="404">
  17. </div>
  18. <div class="bullshit">
  19. <div class="bullshit__oops">OOPS!</div>
  20. <!-- <div class="bullshit__info">All rights reserved
  21. <a style="color:#20a0ff"
  22. href="https://wallstreetcn.com"
  23. target="_blank"> </a>
  24. </div> -->
  25. <div class="bullshit__headline">{{ message }}</div>
  26. <div class="bullshit__info">请检查您输入的网址是否正确,或者点击链接继续浏览</div>
  27. <a href=""
  28. class="bullshit__return-home">返回首页</a>
  29. </div>
  30. </div>
  31. </div>
  32. </template>
  33. <script>
  34. export default {
  35. name: 'Page404',
  36. computed: {
  37. message () {
  38. return '很抱歉,你访问的页面不存在'
  39. }
  40. }
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. .wscn-http404-container {
  45. transform: translate(-50%, -50%);
  46. position: absolute;
  47. top: 40%;
  48. left: 50%;
  49. }
  50. .wscn-http404 {
  51. position: relative;
  52. width: 1200px;
  53. padding: 0 50px;
  54. overflow: hidden;
  55. .pic-404 {
  56. position: relative;
  57. float: left;
  58. width: 600px;
  59. overflow: hidden;
  60. &__parent {
  61. width: 100%;
  62. }
  63. &__child {
  64. position: absolute;
  65. &.left {
  66. width: 80px;
  67. top: 17px;
  68. left: 220px;
  69. opacity: 0;
  70. animation-name: cloudLeft;
  71. animation-duration: 2s;
  72. animation-timing-function: linear;
  73. animation-fill-mode: forwards;
  74. animation-delay: 1s;
  75. }
  76. &.mid {
  77. width: 46px;
  78. top: 10px;
  79. left: 420px;
  80. opacity: 0;
  81. animation-name: cloudMid;
  82. animation-duration: 2s;
  83. animation-timing-function: linear;
  84. animation-fill-mode: forwards;
  85. animation-delay: 1.2s;
  86. }
  87. &.right {
  88. width: 62px;
  89. top: 100px;
  90. left: 500px;
  91. opacity: 0;
  92. animation-name: cloudRight;
  93. animation-duration: 2s;
  94. animation-timing-function: linear;
  95. animation-fill-mode: forwards;
  96. animation-delay: 1s;
  97. }
  98. @keyframes cloudLeft {
  99. 0% {
  100. top: 17px;
  101. left: 220px;
  102. opacity: 0;
  103. }
  104. 20% {
  105. top: 33px;
  106. left: 188px;
  107. opacity: 1;
  108. }
  109. 80% {
  110. top: 81px;
  111. left: 92px;
  112. opacity: 1;
  113. }
  114. 100% {
  115. top: 97px;
  116. left: 60px;
  117. opacity: 0;
  118. }
  119. }
  120. @keyframes cloudMid {
  121. 0% {
  122. top: 10px;
  123. left: 420px;
  124. opacity: 0;
  125. }
  126. 20% {
  127. top: 40px;
  128. left: 360px;
  129. opacity: 1;
  130. }
  131. 70% {
  132. top: 130px;
  133. left: 180px;
  134. opacity: 1;
  135. }
  136. 100% {
  137. top: 160px;
  138. left: 120px;
  139. opacity: 0;
  140. }
  141. }
  142. @keyframes cloudRight {
  143. 0% {
  144. top: 100px;
  145. left: 500px;
  146. opacity: 0;
  147. }
  148. 20% {
  149. top: 120px;
  150. left: 460px;
  151. opacity: 1;
  152. }
  153. 80% {
  154. top: 180px;
  155. left: 340px;
  156. opacity: 1;
  157. }
  158. 100% {
  159. top: 200px;
  160. left: 300px;
  161. opacity: 0;
  162. }
  163. }
  164. }
  165. }
  166. .bullshit {
  167. position: relative;
  168. float: left;
  169. width: 300px;
  170. padding: 30px 0;
  171. overflow: hidden;
  172. &__oops {
  173. font-size: 32px;
  174. font-weight: bold;
  175. line-height: 40px;
  176. color: #1482f0;
  177. opacity: 0;
  178. margin-bottom: 20px;
  179. animation-name: slideUp;
  180. animation-duration: 0.5s;
  181. animation-fill-mode: forwards;
  182. }
  183. &__headline {
  184. font-size: 20px;
  185. line-height: 24px;
  186. color: #222;
  187. font-weight: bold;
  188. opacity: 0;
  189. margin-bottom: 10px;
  190. animation-name: slideUp;
  191. animation-duration: 0.5s;
  192. animation-delay: 0.1s;
  193. animation-fill-mode: forwards;
  194. }
  195. &__info {
  196. font-size: 13px;
  197. line-height: 21px;
  198. color: grey;
  199. opacity: 0;
  200. margin-bottom: 30px;
  201. animation-name: slideUp;
  202. animation-duration: 0.5s;
  203. animation-delay: 0.2s;
  204. animation-fill-mode: forwards;
  205. }
  206. &__return-home {
  207. display: block;
  208. float: left;
  209. width: 110px;
  210. height: 36px;
  211. background: #1482f0;
  212. border-radius: 100px;
  213. text-align: center;
  214. color: #ffffff;
  215. opacity: 0;
  216. font-size: 14px;
  217. line-height: 36px;
  218. cursor: pointer;
  219. animation-name: slideUp;
  220. animation-duration: 0.5s;
  221. animation-delay: 0.3s;
  222. animation-fill-mode: forwards;
  223. }
  224. @keyframes slideUp {
  225. 0% {
  226. transform: translateY(60px);
  227. opacity: 0;
  228. }
  229. 100% {
  230. transform: translateY(0);
  231. opacity: 1;
  232. }
  233. }
  234. }
  235. }
  236. </style>