refactor(404): simplified 404 page
This commit is contained in:
		
							parent
							
								
									fd9ab59172
								
							
						
					
					
						commit
						80401b6405
					
				| @ -1,23 +1,20 @@ | |||||||
| <script setup lang="ts"> | <script setup lang="ts"> | ||||||
|  | import { Coffee } from '@vicons/tabler'; | ||||||
| import { useHead } from '@vueuse/head'; | import { useHead } from '@vueuse/head'; | ||||||
| 
 | 
 | ||||||
| useHead({ title: 'Page not found - IT Tools' }); | useHead({ title: 'Page not found - IT Tools' }); | ||||||
| </script> | </script> | ||||||
| 
 | 
 | ||||||
| <template> | <template> | ||||||
|   <div class="e404-wrapper"> |   <div mt-20 flex flex-col items-center> | ||||||
|     <n-result status="404" title="404 Not Found" description="Sorry, this page does not seem to exist"> |     <n-icon :component="Coffee" size="100" depth="3" /> | ||||||
|       <template #footer> | 
 | ||||||
|  |     <n-h1 m-0 mt-3>404 Not Found</n-h1> | ||||||
|  |     <n-text mt-4 block depth="3">Sorry, this page does not seem to exist</n-text> | ||||||
|  |     <n-text mb-8 block depth="3">Maybe the cache is doing tricky things, try force-refreshing?</n-text> | ||||||
|  | 
 | ||||||
|     <router-link to="/" #="{ navigate, href }" custom> |     <router-link to="/" #="{ navigate, href }" custom> | ||||||
|           <n-button tag="a" :href="href" secondary type="success" @click="navigate"> Back home </n-button> |       <n-button tag="a" :href="href" secondary @click="navigate"> Back home </n-button> | ||||||
|     </router-link> |     </router-link> | ||||||
|       </template> |  | ||||||
|     </n-result> |  | ||||||
|   </div> |   </div> | ||||||
| </template> | </template> | ||||||
| 
 |  | ||||||
| <style scoped> |  | ||||||
| .e404-wrapper { |  | ||||||
|   padding-top: 150px; |  | ||||||
| } |  | ||||||
| </style> |  | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user