Skip to content

Commit

Permalink
fix (404 pages) : style and routing refactoring (epicmaxco#294)
Browse files Browse the repository at this point in the history
* fix (404 pages) : style and routing refactoring

* fix(404): proper routes

* fix(404): 404 pages selection styles fix

* fix(404): MadeByComponent naming fix

* fix(404): sad guy image placement

* fix(404): back buttton respinsive style

* fix(404): large text and custom image pages - styles

* feat(404): pages list - reduce templating
  • Loading branch information
smartapant authored Aug 6, 2018
1 parent 126ead2 commit 33f6299
Show file tree
Hide file tree
Showing 8 changed files with 209 additions and 286 deletions.
117 changes: 53 additions & 64 deletions src/components/pages/404-pages/404PagesPage.vue
Original file line number Diff line number Diff line change
@@ -1,55 +1,24 @@
<template>
<div class="not-found-pages row">
<div class="col-md-12">
<div class="widget">
<div class="widget-header">
404 pages
</div>
</div>
<div class="row">
<vuestic-card
image="https://i.imgur.com/GzUR0Wz.png">
{{ 'Advanced layout' }}
<p class="pt-3 mb-0">
<router-link :to="{ path: '/pages/not-found-advanced' }">
<button class="btn btn-primary not-found-pages__advanced-button">
{{ 'View Example' }}
</button>
</router-link>
</p>
</vuestic-card>
<vuestic-card
image="https://i.imgur.com/HttcXPi.png">
{{ 'Simple' }}
<p class="pt-3 mb-0">
<router-link :to="{ path: '/pages/not-found-simple' }">
<button class="btn btn-primary not-found-pages__advanced-button">
{{ 'View Example' }}
</button>
</router-link>
</p>
</vuestic-card>
<vuestic-card
image="https://i.imgur.com/dlcZMiG.png">
{{ 'Custom image' }}
<p class="pt-3 mb-0">
<router-link :to="{ path: '/pages/not-found-custom' }">
<button class="btn btn-primary not-found-pages__advanced-button">
class="not-found-pages__cards"
:image="item.imageUrl"
v-for="item in items"
:key="item.$index"
>
{{ item.label }}
<div class="not-found-pages__button-container pt-3 mb-0">
<router-link
:to="{ name: item.buttonTo }"
target="_blank"
>
<button class="btn btn-primary btn-sm not-found-pages__advanced-button">
{{ 'View Example' }}
</button>
</router-link>
</p>
</vuestic-card>
<vuestic-card
image="https://i.imgur.com/qcOlDz7.png">
{{ 'Large text heading' }}
<p class="pt-3 mb-0">
<router-link :to="{ path: '/pages/not-found-large-text' }">
<button class="btn btn-primary not-found-pages__advanced-button">
{{ 'View Example' }}
</button>
</router-link>
</p>
</div>
</vuestic-card>
</div>
</div>
Expand All @@ -58,34 +27,54 @@

<script>
import VuesticWidget
from '../../../vuestic-theme/vuestic-components/vuestic-widget/VuesticWidget'
import VuesticCard
from '../../../vuestic-theme/vuestic-components/vuestic-card/VuesticCard'
export default {
name: 'not-found-pages',
components: {
VuesticCard,
VuesticWidget
data () {
return {
items: [
{
imageUrl: 'https://i.imgur.com/GzUR0Wz.png',
label: 'Advanced layout',
buttonTo: 'not-found-advanced'
},
{
imageUrl: 'https://i.imgur.com/HttcXPi.png',
label: 'Simple',
buttonTo: 'not-found-simple'
},
{
imageUrl: 'https://i.imgur.com/dlcZMiG.png',
label: 'Custom image',
buttonTo: 'not-found-custom'
},
{
imageUrl: 'https://i.imgur.com/qcOlDz7.png',
label: 'Large text heading',
buttonTo: 'not-found-large-text'
}
]
}
}
}
</script>

<style lang="scss">
.not-found-pages {
&__advanced-button {
font-size: 16px;
font-weight: bold;
letter-spacing: 1.3px;
padding-top: 14px;
text-align: left;
color: #ffffff;
line-height: 6px;
padding-left: 30px;
height: 36px;
background-color: #4ae387;
box-shadow: 0 4px 9.6px 0.4px rgba(79, 206, 145, 0.5);
$cardGutter: #{(19/16)}rem;
.vuestic-card.not-found-pages__cards {
min-width: 220px;
text-align: center;
margin: 0 $cardGutter calc(#{$cardGutter} * 2) $cardGutter;
}
&__button-container {
.btn.not-found-pages__advanced-button {
font-size: $font-size-root;
font-weight: $font-weight-bold;
padding-left: 0;
padding-right: 0;
width: 180px;
}
text-align: center;
}
}
</style>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<div class="made-by-component">
<span>
©2018. Made by &nbsp
<a href="http://epicmax.co"> Epicmax</a>
©2018. Made by
<a href="http://epicmax.co">Epicmax</a>
</span>
</div>
</template>
Expand Down
69 changes: 26 additions & 43 deletions src/components/pages/404-pages/VuesticPageNotFoundCustom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,132 +13,115 @@
<div class="vuestic-page-not-found-custom__wallpaper col-md-12">
<div class="row vuestic-page-not-found-custom__message">
<h4 class="vuestic-page-not-found-custom__text-small">If you feel that it's not right, please send us a message at &nbsp</h4>
<a href="mailto:[email protected]">hi@epicmax.co</a>
<a href="mailto:[email protected]">hello@epicmax.co</a>
</div>
</div>
<div class="vuestic-page-not-found-custom__wallpaper col-md-12 vuestic-page-not-found-custom__wallpaper-button">
<router-link :to="{ path: './dashboard' }">
<button class="btn btn-primary">
<button class="btn btn-primary back-button">
{{'Back to dashboard'}}
</button>
</router-link>
</div>
</div>
<div class="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>
<vuestic-page-not-found-sad-wallpaper/>
<made-by-component/>
</div>
</template>

<script>
import MadeByComponent from './MadyByComponent'
import MadeByComponent from './MadeByComponent'
import VuesticPageNotFoundSadWallpaper from './VuesticPageNotFoundSadWallpaper.vue'
export default {
name: 'vuestic-page-not-found-custom',
components: {
MadeByComponent
MadeByComponent,
VuesticPageNotFoundSadWallpaper
}
}
</script>

<style lang="scss">
.vuestic-page-not-found-custom {
height: 100vh;
min-height: 100vh;
padding-bottom: 84px;
background-color: $top-nav-bg;
&__custom-image {
padding-top: 30px;
padding-top: 60px;
width: 30%;
margin-right: 3%;
min-width: 350px;
}
&__wallpaper-button {
z-index: 1;
position: absolute;
background: transparent;
width: 340px;
margin-left: 43%;
min-height: 150px;
}
&__sad-image {
width: 505px;
height: 400px;
bottom: 0;
padding-top: 20px;
background-color: $top-nav-bg;
overflow: hidden;
display: flex;
align-items: flex-start;
justify-content: center;
}
&__text {
padding-top: 3%;
color: white;
}
&__text-small {
font-size: 16px;
font-size: $font-size-root;
line-height: 1.5;
text-align: center;
color: white;
font-weight: normal;
}
&__i-vuestic {
margin-top: 3%;
z-index: 2;
height: $auth-wallpaper-ivuestic-h;
width: 100%;
}
&__not-found-wallpaper-sad {
overflow: hidden;
position: absolute;
height: 40%;
width: 100%;
bottom: 0;
padding-left: 80%;
}
&__wallpaper {
overflow: hidden;
background-color: $top-nav-bg;
display: flex;
align-items: flex-start;
justify-content: center;
}
@include media-breakpoint-down(xs) {
.vuestic-page-not-found-custom {
overflow: hidden;
height: $auth-mobile-main-h;
&__custom-image {
width: 90%;
padding-top: 30px;
margin-right: 30px;
}
&__sad-image {
width: 200px;
height: 200px;
overflow: hidden;
}
&__wallpaper-button {
width: 100%;
margin-left: 0;
}
.back-button {
max-width: 300px;
padding-left: 30px;
padding-right: 30px;
}
}
&__message {
justify-content: center;
}
&__i-vuestic {
margin-top: 5%;
}
&__not-found-wallpaper-sad {
overflow: hidden;
height: 25%;
padding-left: 50%;
}
&__text-small {
font-size: 15px;
}
Expand Down
Loading

0 comments on commit 33f6299

Please sign in to comment.