feat: add meta tags for improved SEO on file not found page
This commit is contained in:
		
							parent
							
								
									9f04130726
								
							
						
					
					
						commit
						011695cf46
					
				| @ -54,17 +54,34 @@ export default async function FilePreviewContainer({ | |||||||
| 
 | 
 | ||||||
|   if (!fileDetails) { |   if (!fileDetails) { | ||||||
|     return ( |     return ( | ||||||
|       <main className="flex min-h-screen flex-col items-center justify-center bg-gradient-to-b from-[#2e026d] to-[#15162c] text-white"> |       <> | ||||||
|         <Toaster position="top-right" reverseOrder={false} /> |         <Head> | ||||||
|         <div className="absolute top-4 left-4"> |           <title>No File Found</title> | ||||||
|           <HomeButton /> |           <meta property="og:title" content="No File Found" /> | ||||||
|         </div> |           <meta | ||||||
|         <div className="container flex flex-col items-center gap-12 px-4 py-16"> |             property="og:description" | ||||||
|           <h1 className="text-5xl font-extrabold tracking-tight sm:text-[5rem]"> |             content="The file you are looking for does not exist." | ||||||
|             <span className="text-[hsl(280,100%,70%)]">No</span> File Found |           /> | ||||||
|           </h1> |           <meta property="og:type" content="website" /> | ||||||
|         </div> |           <meta property="og:image" content="/images/no-file.png" /> | ||||||
|       </main> |           <meta property="og:image:alt" content="No file found" /> | ||||||
|  |           <meta | ||||||
|  |             property="og:url" | ||||||
|  |             content={`${process.env.NEXT_PUBLIC_PAGE_URL}/share?id=${fileId}`} | ||||||
|  |           /> | ||||||
|  |         </Head> | ||||||
|  |         <main className="flex min-h-screen flex-col items-center justify-center bg-gradient-to-b from-[#2e026d] to-[#15162c] text-white"> | ||||||
|  |           <Toaster position="top-right" reverseOrder={false} /> | ||||||
|  |           <div className="absolute top-4 left-4"> | ||||||
|  |             <HomeButton /> | ||||||
|  |           </div> | ||||||
|  |           <div className="container flex flex-col items-center gap-12 px-4 py-16"> | ||||||
|  |             <h1 className="text-5xl font-extrabold tracking-tight sm:text-[5rem]"> | ||||||
|  |               <span className="text-[hsl(280,100%,70%)]">No</span> File Found | ||||||
|  |             </h1> | ||||||
|  |           </div> | ||||||
|  |         </main> | ||||||
|  |       </> | ||||||
|     ); |     ); | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user