You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

231 lines
5.2 KiB

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