Initial commit. Files are uploaded to the filesystem.
This commit is contained in:
25
pages/_error/+Page.vue
Normal file
25
pages/_error/+Page.vue
Normal file
@@ -0,0 +1,25 @@
|
||||
<template>
|
||||
<div class="center">
|
||||
<p>{{ abortReason }}</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { usePageContext } from '../../renderer/usePageContext'
|
||||
|
||||
const pageContext = usePageContext()
|
||||
let { is404, abortReason } = pageContext.value
|
||||
if (!abortReason) {
|
||||
abortReason = is404 ? 'Page not found.' : 'Something went wrong.'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.center {
|
||||
height: calc(100vh - 100px);
|
||||
display: flex;
|
||||
font-size: 1.3em;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user