diff options
Diffstat (limited to '')
| -rw-r--r-- | doc/docs/.vuepress/theme/layouts/404.vue | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/docs/.vuepress/theme/layouts/404.vue b/doc/docs/.vuepress/theme/layouts/404.vue new file mode 100644 index 0000000..2cbfa0f --- /dev/null +++ b/doc/docs/.vuepress/theme/layouts/404.vue | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | <template> | ||
| 2 | <div class="theme-container"> | ||
| 3 | <div class="theme-default-content"> | ||
| 4 | <h1>404</h1> | ||
| 5 | |||
| 6 | <blockquote>{{ getMsg() }}</blockquote> | ||
| 7 | |||
| 8 | <RouterLink to="/"> | ||
| 9 | Take me home. | ||
| 10 | </RouterLink> | ||
| 11 | </div> | ||
| 12 | </div> | ||
| 13 | </template> | ||
| 14 | |||
| 15 | <script> | ||
| 16 | const msgs = [ | ||
| 17 | `There's nothing here.`, | ||
| 18 | `How did we get here?`, | ||
| 19 | `That's a Four-Oh-Four.`, | ||
| 20 | `Looks like we've got some broken links.` | ||
| 21 | ] | ||
| 22 | |||
| 23 | export default { | ||
| 24 | methods: { | ||
| 25 | getMsg () { | ||
| 26 | return msgs[Math.floor(Math.random() * msgs.length)] | ||
| 27 | } | ||
| 28 | } | ||
| 29 | } | ||
| 30 | </script> | ||
