This commit is contained in:
HugeFrog24
2026-04-25 14:00:45 +02:00
parent 4f2d4c4a59
commit 33af88d79d
68 changed files with 8587 additions and 6868 deletions
+59
View File
@@ -0,0 +1,59 @@
import { ImageResponse } from 'next/og'
import { appConfig } from '../../config/app'
export const runtime = 'edge'
export async function GET(request: Request) {
const url = new URL(request.url)
const baseUrl = `${url.protocol}//${url.host}`
return new ImageResponse(
(
<div
style={{
height: '100%',
width: '100%',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
backgroundColor: appConfig.assets.ogImage.bgColor,
fontSize: 72,
fontWeight: 600,
}}
>
<img
src={`${baseUrl}${appConfig.assets.favicon}`}
alt={appConfig.name}
width={300}
height={300}
style={{ margin: '0 0 40px' }}
/>
<div
style={{
marginBottom: 30,
color: appConfig.assets.ogImage.textColor,
}}
>
{appConfig.name}
</div>
<div
style={{
fontSize: 36,
fontWeight: 400,
color: appConfig.assets.ogImage.textColor,
textAlign: 'center',
maxWidth: '80%',
lineHeight: 1.4,
}}
>
{appConfig.description}
</div>
</div>
),
{
width: appConfig.assets.ogImage.width,
height: appConfig.assets.ogImage.height,
},
)
}