Download next.js/test/e2e/app-dir/app-esm-js/app/opengraph-image.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 473 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-esm-js/app/opengraph-image.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/app-esm-js/app/opengraph-image.js
-
curl -L -o opengraph-image.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-esm-js/app/opengraph-image.js
473 Bytes
| import { ImageResponse } from 'next/og' | |
| export default function OpenGraphImage() { | |
| return new ImageResponse( | |
| ( | |
| <div | |
| style={{ | |
| width: 1200, | |
| height: 630, | |
| backgroundColor: '#000', | |
| color: '#fff', | |
| display: 'flex', | |
| alignItems: 'center', | |
| justifyContent: 'center', | |
| flexDirection: 'column', | |
| fontFamily: 'sans-serif', | |
| }} | |
| > | |
| OG | |
| </div> | |
| ) | |
| ) | |
| } | |