mirror of
https://github.com/misenhower/splatoon2.ink.git
synced 2026-09-09 02:55:19 -05:00
Add a 404 page
This commit is contained in:
@@ -709,3 +709,26 @@ body.has-modal #main {
|
||||
margin-left: -5px;
|
||||
line-height: 0.45rem;
|
||||
}
|
||||
|
||||
.error404 {
|
||||
@extend .text-shadow;
|
||||
max-width: 500px;
|
||||
margin: auto;
|
||||
|
||||
.hook-box, .hook-box:before {
|
||||
background-color: #888;
|
||||
@extend .bg-stripes-gradient;
|
||||
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.box-header {
|
||||
padding: 5px 15px 10px;
|
||||
}
|
||||
|
||||
.box-footer {
|
||||
padding: 5px 15px 10px;
|
||||
}
|
||||
}
|
||||
|
||||
BIN
src/img/404.jpg
Normal file
BIN
src/img/404.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 98 KiB |
31
src/js/components/404.vue
Normal file
31
src/js/components/404.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<div class="hero is-fullheight">
|
||||
<div class="hero-body">
|
||||
<!-- 404! -->
|
||||
<div class="error404 tilt-left">
|
||||
<div class="hook-box">
|
||||
<div class="box-header">
|
||||
<h2 class="title is-3 is-size-2-fullhd font-splatoon1">
|
||||
404 Not Found
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
<img src="~@/img/404.jpg" />
|
||||
|
||||
<div class="box-footer">
|
||||
<p class="has-text-centered">
|
||||
<router-link to="/" class="button is-translucent is-rounded">
|
||||
<span class="icon squid-icon-tilt">
|
||||
<span class="fa squid-squid"></span>
|
||||
</span>
|
||||
<span class="font-splatoon2">
|
||||
Return to Splatoon2.ink
|
||||
</span>
|
||||
</router-link>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -20,6 +20,10 @@ const routes = [
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '*',
|
||||
component: require('./components/404.vue').default,
|
||||
},
|
||||
];
|
||||
|
||||
const router = new VueRouter({
|
||||
|
||||
Reference in New Issue
Block a user