Blame view

src/views/error-page/404.vue 4.39 KB
任超 committed
1
<template>
田浩浩 committed
2
  <div>
田浩浩 committed
3
    <img src="./404.png" alt="">
任超 committed
4 5 6 7 8 9 10 11
  </div>
</template>

<script>

export default {
  name: 'Page404',
  computed: {
任超 committed
12
    message () {
任超 committed
13 14 15
      return 'The webmaster said that you can not enter this page...'
    }
  },
任超 committed
16
  methods: {
yuanbo committed
17 18 19 20
    /**
     * @description: nextTo
     * @author: renchao
     */
任超 committed
21
    nextTo () {
任超 committed
22
      this.$router.push({
任超 committed
23 24 25
        path: this.redirect || '/',
        query: this.otherQuery
      })
任超 committed
26 27 28 29 30 31
    },
  }
}
</script>

<style lang="scss" scoped>
任超 committed
32 33
.wscn-http404-container {
  transform: translate(-50%, -50%);
任超 committed
34 35 36 37
  position: absolute;
  top: 40%;
  left: 50%;
}
任超 committed
38

任超 committed
39 40
.wscn-http404 {
  position: relative;
田浩浩 committed
41
  width: 100%;
任超 committed
42 43
  padding: 0 50px;
  overflow: hidden;
任超 committed
44

任超 committed
45 46 47
  .pic-404 {
    position: relative;
    float: left;
田浩浩 committed
48
    width: 100%;
任超 committed
49
    overflow: hidden;
任超 committed
50

任超 committed
51 52 53
    &__parent {
      width: 100%;
    }
任超 committed
54

任超 committed
55 56
    &__child {
      position: absolute;
任超 committed
57

任超 committed
58 59 60 61 62 63 64 65 66 67 68
      &.left {
        width: 80px;
        top: 17px;
        left: 220px;
        opacity: 0;
        animation-name: cloudLeft;
        animation-duration: 2s;
        animation-timing-function: linear;
        animation-fill-mode: forwards;
        animation-delay: 1s;
      }
任超 committed
69

任超 committed
70 71 72 73 74 75 76 77 78 79 80
      &.mid {
        width: 46px;
        top: 10px;
        left: 420px;
        opacity: 0;
        animation-name: cloudMid;
        animation-duration: 2s;
        animation-timing-function: linear;
        animation-fill-mode: forwards;
        animation-delay: 1.2s;
      }
任超 committed
81

任超 committed
82 83 84 85 86 87 88 89 90 91 92
      &.right {
        width: 62px;
        top: 100px;
        left: 500px;
        opacity: 0;
        animation-name: cloudRight;
        animation-duration: 2s;
        animation-timing-function: linear;
        animation-fill-mode: forwards;
        animation-delay: 1s;
      }
任超 committed
93

任超 committed
94 95 96 97 98 99
      @keyframes cloudLeft {
        0% {
          top: 17px;
          left: 220px;
          opacity: 0;
        }
任超 committed
100

任超 committed
101 102 103 104 105
        20% {
          top: 33px;
          left: 188px;
          opacity: 1;
        }
任超 committed
106

任超 committed
107 108 109 110 111
        80% {
          top: 81px;
          left: 92px;
          opacity: 1;
        }
任超 committed
112

任超 committed
113 114 115 116 117 118
        100% {
          top: 97px;
          left: 60px;
          opacity: 0;
        }
      }
任超 committed
119

任超 committed
120 121 122 123 124 125
      @keyframes cloudMid {
        0% {
          top: 10px;
          left: 420px;
          opacity: 0;
        }
任超 committed
126

任超 committed
127 128 129 130 131
        20% {
          top: 40px;
          left: 360px;
          opacity: 1;
        }
任超 committed
132

任超 committed
133 134 135 136 137
        70% {
          top: 130px;
          left: 180px;
          opacity: 1;
        }
任超 committed
138

任超 committed
139 140 141 142 143 144
        100% {
          top: 160px;
          left: 120px;
          opacity: 0;
        }
      }
任超 committed
145

任超 committed
146 147 148 149 150 151
      @keyframes cloudRight {
        0% {
          top: 100px;
          left: 500px;
          opacity: 0;
        }
任超 committed
152

任超 committed
153 154 155 156 157
        20% {
          top: 120px;
          left: 460px;
          opacity: 1;
        }
任超 committed
158

任超 committed
159 160 161 162 163
        80% {
          top: 180px;
          left: 340px;
          opacity: 1;
        }
任超 committed
164

任超 committed
165 166 167 168 169 170 171 172
        100% {
          top: 200px;
          left: 300px;
          opacity: 0;
        }
      }
    }
  }
任超 committed
173

任超 committed
174 175 176 177 178 179
  .bullshit {
    position: relative;
    float: left;
    width: 300px;
    padding: 30px 0;
    overflow: hidden;
任超 committed
180

任超 committed
181 182 183 184 185 186 187 188 189 190 191
    &__oops {
      font-size: 32px;
      font-weight: bold;
      line-height: 40px;
      color: #1482f0;
      opacity: 0;
      margin-bottom: 20px;
      animation-name: slideUp;
      animation-duration: 0.5s;
      animation-fill-mode: forwards;
    }
任超 committed
192

任超 committed
193 194 195 196 197 198 199 200 201 202 203 204
    &__headline {
      font-size: 20px;
      line-height: 24px;
      color: #222;
      font-weight: bold;
      opacity: 0;
      margin-bottom: 10px;
      animation-name: slideUp;
      animation-duration: 0.5s;
      animation-delay: 0.1s;
      animation-fill-mode: forwards;
    }
任超 committed
205

任超 committed
206 207 208 209 210 211 212 213 214 215 216
    &__info {
      font-size: 13px;
      line-height: 21px;
      color: grey;
      opacity: 0;
      margin-bottom: 30px;
      animation-name: slideUp;
      animation-duration: 0.5s;
      animation-delay: 0.2s;
      animation-fill-mode: forwards;
    }
任超 committed
217

任超 committed
218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235
    &__return-home {
      display: block;
      float: left;
      width: 110px;
      height: 36px;
      background: #1482f0;
      border-radius: 100px;
      text-align: center;
      color: #ffffff;
      opacity: 0;
      font-size: 14px;
      line-height: 36px;
      cursor: pointer;
      animation-name: slideUp;
      animation-duration: 0.5s;
      animation-delay: 0.3s;
      animation-fill-mode: forwards;
    }
任超 committed
236

任超 committed
237 238 239 240 241
    @keyframes slideUp {
      0% {
        transform: translateY(60px);
        opacity: 0;
      }
任超 committed
242

任超 committed
243 244 245 246 247 248 249 250
      100% {
        transform: translateY(0);
        opacity: 1;
      }
    }
  }
}
</style>