gamebrary/src/pages/NotFound.vue

50 lines
991 B
Vue
Raw Normal View History

2019-04-19 17:35:02 +00:00
<template lang="html">
<div class="not-found-page">
<h1>404</h1>
<h3>{{ $t('errors.pageNotFound') }}</h3>
2019-04-19 17:35:02 +00:00
<a :href="homeUrl" class="link primary">
{{ $t('global.returnHome') }}
2019-04-19 17:35:02 +00:00
</a>
</div>
</template>
<script>
export default {
computed: {
homeUrl() {
return process.env.NODE_ENV === 'development'
? 'http://localhost:4000'
: 'https://app.gamebrary.com';
},
},
};
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
@import "~styles/styles.scss";
.not-found-page {
color: $color-dark-gray;
min-height: calc(100vh - #{$navHeight});
padding: 0 $gp;
display: flex;
align-items: center;
flex-direction: column;
}
h1 {
font-size: 300px;
}
h3 {
font-size: 50px;
margin-bottom: $gp;
}
a.link {
display: flex;
align-items: center;
}
</style>