404.vue 5.5 KB

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