NotFound.vue 9.91 KB
Newer Older
shabai517's avatar
shabai517 committed
1 2
<template>
  <div class="notFound-container">
shabai517's avatar
shabai517 committed
3
    <!--<div class="panel nav"><Nav/></div>-->
shabai517's avatar
shabai517 committed
4
    <div class = "content">
shabai517's avatar
shabai517 committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
         <div id="clouds">
            <div class="cloud x1"></div>
            <div class="cloud x1_5"></div>
            <div class="cloud x2"></div>
            <div class="cloud x3"></div>
            <div class="cloud x4"></div>
            <div class="cloud x5"></div>
        </div>
        <div class='c'>
            <div class='_404'>404</div>
            <hr>
            <div class='_1'>THE PAGE</div>
            <div class='_2'>WAS NOT FOUND</div>
            <a class='btn' @click="backtohome">BACK TO HOME</a>
        </div>
        <!--
        <div class="first-row">
            <div class="col not-found-num">404</div>
            <div class="col not-found-content"><div>Error - Sorry</div><div>Something Went</div> <div>Wrong!</div></div>
        </div>
        <div class="not-found-reason">For Some Reason The Page You Requested Could Not Be Found On Our Server</div>
        <div class="box">
          <a class="go-back">Go Back</a>
          <a class="go-home">Go Home</a>
        </div>
        -->
shabai517's avatar
shabai517 committed
31
    </div>
shabai517's avatar
shabai517 committed
32 33 34
  </div>
</template>
<script>
shabai517's avatar
shabai517 committed
35
  import Nav from '@/components/landingpage/Nav'
shabai517's avatar
shabai517 committed
36 37
  export default {
    name: 'notfound',
shabai517's avatar
shabai517 committed
38 39 40
    components: {
      Nav,
    },
shabai517's avatar
shabai517 committed
41 42 43 44 45
    methods:{
      backtohome(){
        this.$router.push({name:'landingpage'});
      }
    },
shabai517's avatar
shabai517 committed
46 47 48 49 50
    data(){
      return {
        msg: ''
      }
    },
shabai517's avatar
shabai517 committed
51

shabai517's avatar
shabai517 committed
52
    beforeRouteEnter: function(to, from, next){
shabai517's avatar
test  
shabai517 committed
53
        console.log('from',from);
54
        //console.log(from);
shabai517's avatar
test  
shabai517 committed
55 56
        //console.log(document.getElementById('elixir-banner'));
        //document.getElementById('elixir-banner').setAttribute('display','none');
shabai517's avatar
shabai517 committed
57
        next();
shabai517's avatar
shabai517 committed
58 59
    },
    mounted(){
shabai517's avatar
shabai517 committed
60 61
    //  console.log(document.getElementById('elixir-banner'));
     // document.getElementById('elixir-banner').attribute('display','none');
shabai517's avatar
shabai517 committed
62 63 64 65 66 67 68
    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
 .notFound-container{
shabai517's avatar
shabai517 committed
69 70 71

 }
 .content{
shabai517's avatar
shabai517 committed
72
  position: relative;
shabai517's avatar
shabai517 committed
73 74 75 76
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
shabai517's avatar
shabai517 committed
77 78 79 80 81 82
    height: calc(100vh - 200px);
      background: #5bc0be;
      color:#fff;
      font-family: 'Open Sans', sans-serif;
      /*max-height:700px;*/
      overflow: hidden;
shabai517's avatar
shabai517 committed
83
 }
shabai517's avatar
shabai517 committed
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339
  .not-found-num{
    font-size: 220px;
    color:#979797;
    font-family: Georgia, "Times New Roman", Times, serif;
    line-height: 250px;
    margin-bottom: 80px;
  }
  .not-found-content{
      font-size: 50px;
    color:#979797;
    font-family: Georgia, "Times New Roman", Times, serif;
  }
  .not-found-reason{
    font-size: 16px;
    font-family: Georgia, "Times New Roman", Times, serif;
    color:#979797;
    font-weight: bold;
    text-transform: uppercase;
  }
  .first-row{
    display: flex;
    align-items:center;
  }
  .first-row .col{
    width: 48%;
    display: inline-block;
  }
  .box{
    padding: 10px;
    border: 1px solid #CCCCCC; 
    display: flex;
    justify-content: space-between;
  }
  #clouds{
    z-index: 1000;
  }
  @import url(https://fonts.googleapis.com/css?family=opensans:500);

            .c{
                text-align: center;
                display: block;
                position: relative;
                width:80%;
                margin:100px auto;
            }
            ._404{
                font-size: 220px;
                position: relative;
                display: inline-block;
                z-index: 2;
                height: 250px;
                letter-spacing: 15px;
            }
            ._1{
                text-align:center;
                display:block;
                position:relative;
                letter-spacing: 12px;
                font-size: 4em;
                line-height: 80%;
            }
            ._2{
                text-align:center;
                display:block;
                position: relative;
                font-size: 20px;
                margin-bottom: 20px;
            }
            .text{
                font-size: 70px;
                text-align: center;
                position: relative;
                display: inline-block;
                margin: 19px 0px 0px 0px;
                /* top: 256.301px; */
                z-index: 3;
                width: 100%;
                line-height: 1.2em;
                display: inline-block;
            }
           

            .btn{
                /*background-color: rgb( 255, 255, 255 );*/
                position: relative;
                display: inline-block;
                width: 358px;
                padding: 5px;
                z-index: 5;
                font-size: 25px;
                margin:0 auto;
                color:#ffffff;
                text-decoration: none;
                margin-right: 10px;
                border-bottom-style:none;
            }
            .right{
                float:right;
                width:60%;
            }
            
            hr{
                padding: 0;
                border: none;
                border-top: 5px solid #fff;
                color: #fff;
                text-align: center;
                margin: 0px auto;
                width: 420px;
                height:10px;
                z-index: -10;
            }
            
            hr:after {
              /*
                content: "\2022";
                display: inline-block;
                position: relative;
                top: -0.75em;
                font-size: 2em;
                padding: 0 0.2em;
                background: #33cc99;
                */
            }
            
            .cloud {
                width: 350px; height: 120px;

                background: #FFF;
                background: linear-gradient(top, #FFF 100%);
                background: -webkit-linear-gradient(top, #FFF 100%);
                background: -moz-linear-gradient(top, #FFF 100%);
                background: -ms-linear-gradient(top, #FFF 100%);
                background: -o-linear-gradient(top, #FFF 100%);

                border-radius: 100px;
                -webkit-border-radius: 100px;
                -moz-border-radius: 100px;

                position: absolute;
                margin: 120px auto 20px;
                z-index:-1;
                transition: ease 1s;
            }

            .cloud:after, .cloud:before {
                content: '';
                position: absolute;
                background: #FFF;
                z-index: -1
            }

            .cloud:after {
                width: 100px; height: 100px;
                top: -50px; left: 50px;

                border-radius: 100px;
                -webkit-border-radius: 100px;
                -moz-border-radius: 100px;
            }

            .cloud:before {
                width: 180px; height: 180px;
                top: -90px; right: 50px;

                border-radius: 200px;
                -webkit-border-radius: 200px;
                -moz-border-radius: 200px;
            }
            
            .x1 {
                top:-50px;
                left:100px;
                -webkit-transform: scale(0.3);
                -moz-transform: scale(0.3);
                transform: scale(0.3);
                opacity: 0.9;
                -webkit-animation: moveclouds 15s linear infinite;
                -moz-animation: moveclouds 15s linear infinite;
                -o-animation: moveclouds 15s linear infinite;
            }
            
            .x1_5{
                top:-80px;
                left:250px;
                -webkit-transform: scale(0.3);
                -moz-transform: scale(0.3);
                transform: scale(0.3);
                -webkit-animation: moveclouds 17s linear infinite;
                -moz-animation: moveclouds 17s linear infinite;
                -o-animation: moveclouds 17s linear infinite; 
            }

            .x2 {
                left: 250px;
                top:30px;
                -webkit-transform: scale(0.6);
                -moz-transform: scale(0.6);
                transform: scale(0.6);
                opacity: 0.6; 
                -webkit-animation: moveclouds 25s linear infinite;
                -moz-animation: moveclouds 25s linear infinite;
                -o-animation: moveclouds 25s linear infinite;
            }

            .x3 {
                left: 250px; bottom: -70px;

                -webkit-transform: scale(0.6);
                -moz-transform: scale(0.6);
                transform: scale(0.6);
                opacity: 0.8; 

                -webkit-animation: moveclouds 25s linear infinite;
                -moz-animation: moveclouds 25s linear infinite;
                -o-animation: moveclouds 25s linear infinite;
            }

            .x4 {
                left: 470px; botttom: 20px;

                -webkit-transform: scale(0.75);
                -moz-transform: scale(0.75);
                transform: scale(0.75);
                opacity: 0.75;

                -webkit-animation: moveclouds 18s linear infinite;
                -moz-animation: moveclouds 18s linear infinite;
                -o-animation: moveclouds 18s linear infinite;
            }

            .x5 {
                left: 200px; top: 300px;

                -webkit-transform: scale(0.5);
                -moz-transform: scale(0.5);
                transform: scale(0.5);
                opacity: 0.8; 

                -webkit-animation: moveclouds 20s linear infinite;
                -moz-animation: moveclouds 20s linear infinite;
                -o-animation: moveclouds 20s linear infinite;
            }

            @-webkit-keyframes moveclouds {
                0% {margin-left: 1000px;}
                100% {margin-left: -1000px;}
            }
            @-moz-keyframes moveclouds {
                0% {margin-left: 1000px;}
                100% {margin-left: -1000px;}
            }
            @-o-keyframes moveclouds {
                0% {margin-left: 1000px;}
                100% {margin-left: -1000px;}
            }
shabai517's avatar
shabai517 committed
340
</style>