-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Error page done * 🐛 (page) update template location to avoid overwriting docus error page Co-authored-by: Yaël GUILLOUX <yael.guilloux@gmail.com>
- Loading branch information
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<template> | ||
<AppPage class="min-h-screen-sm"> | ||
<div class="mt-48 flex items-center justify-center flex-col px-4 md:px-0"> | ||
<h1 class="font-serif text-display-6 md:text-display-5 2xl:text-display-4 text-center">{{ error.message }}</h1> | ||
<p class="text-center mt-4 mb-4">We couldn't find the page you are looking for.</p> | ||
<SectionButton to="/" size="md" class="bg-primary text-gray-800 hover:bg-green-300 focus:bg-green-300"> | ||
Go back home | ||
</SectionButton> | ||
</div> | ||
</AppPage> | ||
</template> | ||
|
||
<script> | ||
import { defineComponent } from '@nuxtjs/composition-api' | ||
export default defineComponent({ | ||
props: { | ||
error: { | ||
type: Object, | ||
required: true | ||
} | ||
}, | ||
head() { | ||
return { | ||
title: this.error.message | ||
} | ||
}, | ||
templateOptions: { | ||
aside: false, | ||
fluid: false | ||
} | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58b2b95
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nuxtjs-with-docus – ./
nuxtjs-with-docus-git-dev-nuxtlabs.vercel.app
nuxtjs.docus.com
nuxtjs-with-docus-nuxtlabs.vercel.app
nuxtjs-with-docus.vercel.app