Merge pull request #464 from llovvoll/feat/page-not-found-title
feat: add title when page not found
This commit is contained in:
		
							
								
								
									
										41
									
								
								pages/404.js
									
									
									
									
									
								
							
							
						
						
									
										41
									
								
								pages/404.js
									
									
									
									
									
								
							| @@ -1,24 +1,31 @@ | ||||
| import Link from '@/components/Link' | ||||
| import { PageSEO } from '@/components/SEO' | ||||
| import siteMetadata from '@/data/siteMetadata' | ||||
|  | ||||
| export default function FourZeroFour() { | ||||
|   return ( | ||||
|     <div className="flex flex-col items-start justify-start md:mt-24 md:flex-row md:items-center md:justify-center md:space-x-6"> | ||||
|       <div className="space-x-2 pt-6 pb-8 md:space-y-5"> | ||||
|         <h1 className="text-6xl font-extrabold leading-9 tracking-tight text-gray-900 dark:text-gray-100 md:border-r-2 md:px-6 md:text-8xl md:leading-14"> | ||||
|           404 | ||||
|         </h1> | ||||
|     <> | ||||
|       <PageSEO title={`Page Not Found - ${siteMetadata.title}`} /> | ||||
|       <div className="flex flex-col items-start justify-start md:mt-24 md:flex-row md:items-center md:justify-center md:space-x-6"> | ||||
|         <div className="space-x-2 pt-6 pb-8 md:space-y-5"> | ||||
|           <h1 className="text-6xl font-extrabold leading-9 tracking-tight text-gray-900 dark:text-gray-100 md:border-r-2 md:px-6 md:text-8xl md:leading-14"> | ||||
|             404 | ||||
|           </h1> | ||||
|         </div> | ||||
|         <div className="max-w-md"> | ||||
|           <p className="mb-4 text-xl font-bold leading-normal md:text-2xl"> | ||||
|             Sorry we couldn't find this page. | ||||
|           </p> | ||||
|           <p className="mb-8"> | ||||
|             But dont worry, you can find plenty of other things on our homepage. | ||||
|           </p> | ||||
|           <Link href="/"> | ||||
|             <button className="focus:shadow-outline-blue inline rounded-lg border border-transparent bg-blue-600 px-4 py-2 text-sm font-medium leading-5 text-white shadow transition-colors duration-150 hover:bg-blue-700 focus:outline-none dark:hover:bg-blue-500"> | ||||
|               Back to homepage | ||||
|             </button> | ||||
|           </Link> | ||||
|         </div> | ||||
|       </div> | ||||
|       <div className="max-w-md"> | ||||
|         <p className="mb-4 text-xl font-bold leading-normal md:text-2xl"> | ||||
|           Sorry we couldn't find this page. | ||||
|         </p> | ||||
|         <p className="mb-8">But dont worry, you can find plenty of other things on our homepage.</p> | ||||
|         <Link href="/"> | ||||
|           <button className="focus:shadow-outline-blue inline rounded-lg border border-transparent bg-blue-600 px-4 py-2 text-sm font-medium leading-5 text-white shadow transition-colors duration-150 hover:bg-blue-700 focus:outline-none dark:hover:bg-blue-500"> | ||||
|             Back to homepage | ||||
|           </button> | ||||
|         </Link> | ||||
|       </div> | ||||
|     </div> | ||||
|     </> | ||||
|   ) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user