Skip to content

Commit

Permalink
style refactor and custom-image 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-shusterman committed Jul 23, 2018
1 parent dd297eb commit 79adf37
Show file tree
Hide file tree
Showing 5 changed files with 196 additions and 46 deletions.
28 changes: 27 additions & 1 deletion src/components/pages/404-pages/404PagesPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div class="not-found-pages__simple-wallpaper">
<img src="https://i.imgur.com/HttcXPi.png"/>
<div class="not-found-pages__container">
<h6 class="not-found-pages__advanced-text">Simple layout</h6>
<h6 class="not-found-pages__advanced-text">Simple</h6>
<router-link :to="{ path: '/pages/not-found-simple' }">
<button class="btn btn-primary not-found-pages__advanced-button">
{{ 'View Example' }}
Expand All @@ -29,6 +29,32 @@
</div>
</div>
</div>
<div class="col-md-3">
<div class="not-found-pages__simple-wallpaper">
<img src="https://i.imgur.com/dlcZMiG.png"/>
<div class="not-found-pages__container">
<h6 class="not-found-pages__advanced-text">Custom image</h6>
<router-link :to="{ path: '/pages/not-found-custom' }">
<button class="btn btn-primary not-found-pages__advanced-button">
{{ 'View Example' }}
</button>
</router-link>
</div>
</div>
</div>
<div class="col-md-3">
<div class="not-found-pages__simple-wallpaper">
<img src="https://i.imgur.com/qcOlDz7.png"/>
<div class="not-found-pages__container">
<h6 class="not-found-pages__advanced-text">Large text heading</h6>
<router-link :to="{ path: '/pages/not-found-custom' }">
<button class="btn btn-primary not-found-pages__advanced-button">
{{ 'View Example' }}
</button>
</router-link>
</div>
</div>
</div>
</div>
</vuestic-widget>
</div>
Expand Down
144 changes: 144 additions & 0 deletions src/components/pages/404-pages/VuesticPageNotFoundCustom.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
<template>
<div class="vuestic-page-not-found-custom">
<div class="vuestic-page-not-found-custom__content">
<div class="not-found-wallpaper">
<router-link class="i-vuestic vuestic-page-not-found-custom__i-vuestic" :to="{path: '/'}"/>
</div>
<div class="not-found-wallpaper">
<img src="https://i.imgur.com/wodIng5.png" class="vuestic-page-not-found-custom__custom-image"/>
</div>
<div class="not-found-wallpaper">
<h3 class="vuestic-page-not-found-custom__text">The page's gonna fishing.</h3>
</div>
<div class="not-found-wallpaper col-md-12">
<div class="row vuestic-page-not-found-custom__message">
<h4 class="vuestic-page-not-found-custom__text-small">If you fell that it's not right, please send us a message at &nbsp</h4>
<a href="mailto:[email protected]">[email protected]</a>
</div>
</div>
<div class="not-found-wallpaper col-md-12">
<router-link :to="{ path: './dashboard' }">
<button class="btn btn-primary vuestic-page-not-found-custom__button">
{{ 'Back to Dashboard' }}
</button>
</router-link>
</div>
</div>
<div class="not-found-wallpaper vuestic-page-not-found-custom__not-found-wallpaper-sad">
<img src="https://i.imgur.com/hu80UGU.png" class="vuestic-page-not-found-custom__sad-image"/>
</div>
<div class="made-by-footer">
<span>
©2018. Made by &nbsp
<a href="http://epicmax.co"> Epicmax</a>
</span>
</div>
</div>
</template>

<script>
export default {
name: 'vuestic-page-not-found-custom'
}
</script>

<style lang="scss">
.vuestic-page-not-found-custom {
height: 100vh;
background-color: $top-nav-bg;
&__custom-image {
padding-top: 30px;
width: 20%;
}
&__button {
width: 234px;
height: 42px;
padding-left: 22px;
padding-top: 10px;
font-size: 16px;
}
&__sad-image {
width: 50%;
height: 100%;
}
&__text {
padding-top: 6%;
color: white;
}
&__text-small {
font-family: SourceSansPro;
font-size: 16px;
font-weight: normal;
font-style: normal;
font-stretch: normal;
line-height: 1.5;
letter-spacing: normal;
text-align: center;
color: #bbb4b2;
}
&__i-vuestic {
margin-top: 3%;
}
&__not-found-wallpaper-sad {
position: absolute;
height: 35%;
bottom: 0;
padding-left: 1000px;
}
.not-found-wallpaper {
background-color: $top-nav-bg;
overflow: hidden;
display: flex;
align-items: flex-start;
justify-content: center;
.i-vuestic {
z-index: 2;
height: $auth-wallpaper-ivuestic-h;
width: 100%;
}
}
@include media-breakpoint-down(xs) {
.vuestic-page-not-found-custom {
height: $auth-mobile-main-h;
&__message {
justify-content: center;
}
&__i-vuestic {
margin-top: 5%;
}
&__not-found-wallpaper-sad {
padding: 0;
height: 35%;
}
&__text-small {
font-size: 15px;
}
}
}
.made-by-footer {
display: flex;
color: white;
justify-content: center;
align-items: center;
padding-top: 25px;
padding-bottom: $made-by-footer-pb;
position: absolute;
bottom: 0;
height: calc(#{$layout-padding} + #{$widget-mb});
width: 100%;
}
}
</style>
35 changes: 11 additions & 24 deletions src/components/pages/404-pages/VuesticPageNotFoundSearch.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<template>
<div class="vuestic-page-not-found-search">
<div class="vuestic-page-not-found-search__content">
<div class="auth-wallpaper">
<div class="not-found-wallpaper">
<router-link class="i-vuestic vuestic-page-not-found-search__i-vuestic" :to="{path: '/'}"/>
</div>
<div class="auth-wallpaper">
<div class="not-found-wallpaper">
<h3 class="vuestic-page-not-found-search__text">The page's gonna fishing.</h3>
</div>
<div class="auth-wallpaper col-md-12">
<div class="not-found-wallpaper col-md-12">
<div class="row vuestic-page-not-found-search__message">
<h4 class="vuestic-page-not-found-search__text-small">If you fell that it's not right, please send us a message at &nbsp</h4>
<a href="mailto:[email protected]">[email protected]</a>
</div>
</div>
<div class="auth-wallpaper">
<div class="not-found-wallpaper">
<div class="form-group">
<div class="input-group vuestic-page-not-found-search__input">
<input
Expand All @@ -26,7 +26,7 @@
</div>
</div>
</div>
<div class="auth-wallpaper col-md-12 vuestic-page-not-found-search__auth-wallpaper-list">
<div class="not-found-wallpaper col-md-12 vuestic-page-not-found-search__not-found-wallpaper-list">
<ul class="vuestic-page-not-found-search__list" v-for="category in filterItems">
{{ category.categoryName }}
<li class="vuestic-page-not-found-search__list-element" v-for="item in category.items">
Expand All @@ -37,7 +37,7 @@
</ul>
</div>
</div>
<div class="auth-wallpaper vuestic-page-not-found-search__auth-wallpaper-sad">
<div class="not-found-wallpaper vuestic-page-not-found-search__not-found-wallpaper-sad">
<img src="https://i.imgur.com/hu80UGU.png" class="vuestic-page-not-found-search__sad-image"/>
</div>
<div class="made-by-footer">
Expand Down Expand Up @@ -210,19 +210,6 @@ export default {
height: 100%;
}
&__content {
.nav {
display: flex;
height: $top-mobile-nav-height;
background-color: $top-nav-bg;
.i-vuestic {
height: $auth-mobile-nav-ivuestic-h;
width: 100%;
}
}
}
&__text {
padding-top: 50px;
color: white;
Expand Down Expand Up @@ -252,18 +239,18 @@ export default {
width: 310px;
}
&__auth-wallpaper-sad {
&__not-found-wallpaper-sad {
position: absolute;
height: 30%;
bottom: 0;
padding-left: 1000px;
}
.auth-wallpaper {
.not-found-wallpaper {
background-color: $top-nav-bg;
overflow: hidden;
display: flex;
align-items: flex-start;
align-items: fle x-start;
justify-content: center;
.i-vuestic {
z-index: 2;
Expand All @@ -288,7 +275,7 @@ export default {
font-size: 10px;
}
&__auth-wallpaper-list {
&__not-found-wallpaper-list {
font-size: 10px;
padding: 0;
}
Expand All @@ -297,7 +284,7 @@ export default {
margin-top: 5%;
}
&__auth-wallpaper-sad {
&__not-found-wallpaper-sad {
padding: 0;
height: 25%;
}
Expand Down
29 changes: 8 additions & 21 deletions src/components/pages/404-pages/VuesticPageNotFoundSimple.vue
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<template>
<div class="vuestic-page-not-found-simple">
<div class="vuestic-page-not-found-simple__content">
<div class="auth-wallpaper">
<div class="not-found-wallpaper">
<router-link class="i-vuestic vuestic-page-not-found-simple__i-vuestic" :to="{path: '/'}"/>
</div>
<div class="auth-wallpaper">
<div class="not-found-wallpaper">
<h3 class="vuestic-page-not-found-simple__text">The page's gonna fishing.</h3>
</div>
<div class="auth-wallpaper col-md-12">
<div class="not-found-wallpaper col-md-12">
<div class="row vuestic-page-not-found-simple__message">
<h4 class="vuestic-page-not-found-simple__text-small">If you fell that it's not right, please send us a message at &nbsp</h4>
<a href="mailto:[email protected]">[email protected]</a>
</div>
</div>
<div class="auth-wallpaper col-md-12">
<div class="not-found-wallpaper col-md-12">
<router-link :to="{ path: './dashboard' }">
<button class="btn btn-primary vuestic-page-not-found-simple__button">
{{ 'Back to Dashboard' }}
</button>
</router-link>
</div>
</div>
<div class="auth-wallpaper vuestic-page-not-found-simple__auth-wallpaper-sad">
<div class="not-found-wallpaper vuestic-page-not-found-simple__not-found-wallpaper-sad">
<img src="https://i.imgur.com/hu80UGU.png" class="vuestic-page-not-found-simple__sad-image"/>
</div>
<div class="made-by-footer">
Expand Down Expand Up @@ -58,19 +58,6 @@ export default {
height: 100%;
}
&__content {
.nav {
display: flex;
height: $top-mobile-nav-height;
background-color: $top-nav-bg;
.i-vuestic {
height: $auth-mobile-nav-ivuestic-h;
width: 100%;
}
}
}
&__text {
padding-top: 10%;
color: white;
Expand All @@ -92,14 +79,14 @@ export default {
margin-top: 10%;
}
&__auth-wallpaper-sad {
&__not-found-wallpaper-sad {
position: absolute;
height: 30%;
bottom: 0;
padding-left: 1000px;
}
.auth-wallpaper {
.not-found-wallpaper {
background-color: $top-nav-bg;
overflow: hidden;
display: flex;
Expand All @@ -124,7 +111,7 @@ export default {
margin-top: 5%;
}
&__auth-wallpaper-sad {
&__not-found-wallpaper-sad {
padding: 0;
height: 35%;
}
Expand Down
6 changes: 6 additions & 0 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import VuesticPageNotFoundSearch
from '../components/pages/404-pages/VuesticPageNotFoundSearch'
import VuesticPageNotFoundSimple
from '../components/pages/404-pages/VuesticPageNotFoundSimple'
import VuesticPageNotFoundCustom
from '../components/pages/404-pages/VuesticPageNotFoundCustom'

Vue.use(Router)

Expand Down Expand Up @@ -59,6 +61,10 @@ export default new Router({
path: '/pages/not-found-simple',
component: VuesticPageNotFoundSimple
},
{
path: '/pages/not-found-custom',
component: VuesticPageNotFoundCustom
},
{
name: 'Admin',
path: '/admin',
Expand Down

0 comments on commit 79adf37

Please sign in to comment.