initial-commit

This commit is contained in:
nicwands
2026-03-17 23:07:22 -04:00
commit 6fa36b26ca
30 changed files with 3233 additions and 0 deletions

17
pages/_error/+Page.vue Normal file
View File

@@ -0,0 +1,17 @@
<template>
<h1>{{ heading }}</h1>
<p>{{ abortReason }}</p>
</template>
<script lang="ts" setup>
import { usePageContext } from 'vike-vue/usePageContext'
const pageContext = usePageContext()
let { is404, abortReason } = pageContext
if (!abortReason) {
abortReason = is404
? 'This page could not be found.'
: 'Something went wrong.'
}
const heading = is404 ? 'Page Not Found' : 'Internal Error'
</script>