Skip to content

Commit

Permalink
docs: Improve OG image
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed Oct 17, 2024
1 parent 323ef22 commit fe949a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
1 change: 0 additions & 1 deletion docs/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = {
title: 'next-intl',
description: 'Internationalization (i18n) for Next.js',
descriptionPretty: 'Internationalization for Next.js',
baseUrl: process.env.VERCEL_PROJECT_PRODUCTION_URL
? 'https://' + process.env.VERCEL_PROJECT_PRODUCTION_URL
: 'http://localhost:3000',
Expand Down
16 changes: 1 addition & 15 deletions docs/pages/api/og.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default async function OG(req: Request) {
data-name="Layer 1"
id="Layer_1"
viewBox="0 0 1663.8 399"
width={400}
width={300}
xmlns="http://www.w3.org/2000/svg"
>
<g id="logo-copy-5">
Expand Down Expand Up @@ -116,26 +116,12 @@ export default async function OG(req: Request) {
<h1
style={{
fontSize: 82,
margin: '0 0 40px -2px',
lineHeight: 1.1,
letterSpacing: -4
}}
>
{title}
</h1>
<p
style={{
position: 'absolute',
bottom: 70,
left: 80,
margin: 0,
fontSize: 32,
letterSpacing: -1,
opacity: 0.7
}}
>
{siteConfig.descriptionPretty}
</p>
</div>
),
{
Expand Down

0 comments on commit fe949a5

Please sign in to comment.