Skip to content

Commit deb4b73

Browse files
committed
feat(models): add intelligence index timeline
1 parent 76b1121 commit deb4b73

46 files changed

Lines changed: 1275 additions & 19 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { ImageResponse } from 'next/og'
2+
import { getTranslations } from 'next-intl/server'
3+
import { OGImageTemplate } from '@/components/og/OGImageTemplate'
4+
5+
export const size = { width: 1200, height: 630 }
6+
export const contentType = 'image/png'
7+
8+
interface Props {
9+
params: Promise<{ locale: string }>
10+
}
11+
12+
export default async function Image({ params }: Props) {
13+
const { locale } = await params
14+
const tPage = await getTranslations({ locale, namespace: 'pages.modelIntelligenceIndex' })
15+
16+
return new ImageResponse(
17+
<OGImageTemplate
18+
category="MODEL INDEX"
19+
title={tPage('title')}
20+
description={tPage('description')}
21+
/>,
22+
{ ...size }
23+
)
24+
}

0 commit comments

Comments
 (0)