Skip to content

Commit

Permalink
Merge pull request #11 from damisparks:feat/ds-add-error-page
Browse files Browse the repository at this point in the history
feat(dev): add error page
  • Loading branch information
damisparks authored Mar 3, 2023
2 parents e86d696 + b822051 commit 71afdc8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*[Eslint Nuxt](https://github.com/nuxt/eslint-config)
* 🐕 [Husky](https://github.com/typicode/husky) & [Lint-staged](https://github.com/okonet/lint-staged)
* Use [Nuxt Image](https://github.com/nuxt/image#readme)
* Error page


## TODO
Expand Down
20 changes: 20 additions & 0 deletions error.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<template>
<main class="grid min-h-full place-items-center bg-white py-24 px-6 sm:py-32 lg:px-8">
<div class="text-center">
<p class="text-base font-semibold text-indigo-600">
404
</p>
<h1 class="mt-4 text-3xl font-bold tracking-tight text-gray-900 sm:text-5xl">
Page not found
</h1>
<p class="mt-6 text-base leading-7 text-gray-600">
Sorry, we couldn’t find the page you’re looking for.
</p>
<div class="mt-10 flex items-center justify-center gap-x-6">
<NuxtLink to="/" class="rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">
Go back home
</NuxtLink>
</div>
</div>
</main>
</template>

0 comments on commit 71afdc8

Please sign in to comment.