404.vue 4.7 KB

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