# Profile Open Graph Image Template

A centered profile card with an avatar, name, role, and link chips.

- Page: https://www.shadcn-ui-blocks.com/open-graph-images/personal-profile
- Category: [People](https://www.shadcn-ui-blocks.com/open-graph-images/people), Personal
- Theme: light, with light and dark renditions
- Preview PNG: https://www.shadcn-ui-blocks.com/open-graph-images/personal-profile/preview

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/og-image-personal-profile
```

The code is part of Pro and Team: the install needs an API key from either plan (https://www.shadcn-ui-blocks.com/docs/shadcn-cli).

Use the Profile template as the default share card for a personal site. It centers an avatar over the name, adds one line on what you do, and closes with a row of link chips for where to find you, so anyone who shares your homepage passes along a clean introduction instead of a bare url.

## How it works

This template is a metadata image route for the Next.js App Router. The file exports `size`, `contentType`, and `alt` values plus a default async function that returns an `ImageResponse`. When your site is shared, satori converts the JSX into an SVG document, the runtime rasterizes that SVG into a 1200 by 630 PNG, and Next.js serves the result and wires the `og:image` and `twitter:image` tags into the page head automatically. The whole card is centered and drawn from plain elements, so it works as one image for the entire domain.

## Install

Install with the shadcn CLI using your Shadcn UI Blocks API key:

```bash
npx shadcn@latest add @shadcn-ui-blocks/og-image-personal-profile
```

The file lands at `app/opengraph-image.tsx`, which is exactly where a personal site wants it, as the single share card for the whole domain. You can also copy the code from this page straight into your project.

The card renders text with Inter, read from `assets/fonts` at your project root with `node:fs` so the font files never ship to the browser. Download the latin woff files for weights 400, 500, 600, and 700 from [Fontsource](https://fontsource.org/fonts/inter) and save them as `assets/fonts/inter-latin-400-normal.woff` and so on.

## Customize

The `content` object holds the `name`, the `role`, the `initials`, and the `links` array, with no brand row since the profile is the brand. The `initials` fill the centered avatar, the `name` prints large beneath it, and the `role` gives a centered line of context capped near 760px of width. The `links` array renders as the chip row, so a site, a GitHub handle, and an X handle each become a pill; add or trim entries to match where you want to be found.

satori supports a focused subset of CSS: flexbox layout only, flat colors, and an explicit `display: flex` on any element with multiple children. Keep those rules in mind if you rework the layout.
