Files
databasus/app/gone/route.ts
Rostislav Dugin bb9cdc5ffc Reapply "FEATURE (ssr): Migrate to NextJS"
This reverts commit 042e10c49c.
2025-11-09 17:54:13 +03:00

79 lines
2.0 KiB
TypeScript

import { NextResponse } from "next/server";
export async function GET() {
return new NextResponse(
`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<title>410 - Content Removed</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background-color: #f9fafb;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 1rem;
}
.container {
max-width: 28rem;
text-align: center;
}
h1 {
font-size: 4rem;
font-weight: bold;
color: #111827;
margin-bottom: 1rem;
}
h2 {
font-size: 1.5rem;
font-weight: 600;
color: #1f2937;
margin-bottom: 1rem;
}
p {
color: #4b5563;
margin-bottom: 2rem;
line-height: 1.6;
}
a {
display: inline-block;
background-color: #2563eb;
color: white;
padding: 0.75rem 1.5rem;
border-radius: 0.5rem;
text-decoration: none;
transition: background-color 0.2s;
}
a:hover {
background-color: #1d4ed8;
}
</style>
</head>
<body>
<div class="container">
<h1>410</h1>
<h2>Content Permanently Removed</h2>
<p>The content you are looking for has been permanently removed and is no longer available.</p>
<a href="/">Return to Home</a>
</div>
</body>
</html>`,
{
status: 410,
headers: {
"Content-Type": "text/html; charset=utf-8",
},
}
);
}