404.vue 5.3 KB

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