Guest User

sdsd

a guest
Jul 2nd, 2024
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. import { ImageResponse } from 'next/og';
  2.  
  3. export default function GET({ params }: { params: { ID: string } }) {
  4. return new ImageResponse(
  5. (
  6. <div tw="flex flex-col w-full h-full items-center justify-center bg-transparent rounded-xl bg-gray-200">
  7. <div tw="flex">
  8. <div tw="flex flex-col md:flex-row w-full py-12 px-4 md:items-center justify-between p-8">
  9. <h2 tw="flex flex-col text-3xl sm:text-4xl font-bold tracking-tight text-gray-900 text-left">
  10. <span tw="text-center">Hello there {params.ID} 👋</span>
  11. <span tw="text-indigo-600 text-2xl">You have been given a % discount!</span>
  12. </h2>
  13. <div tw="mt-2 flex md:mt-0">
  14. <a tw="flex items-center w-80 justify-center rounded-md border border-transparent bg-indigo-600 px-5 py-3 text-base font-medium text-white mx-auto">
  15. code here2
  16. </a>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. ),
  22. {
  23. width: 312,
  24. height: 312,
  25. }
  26. );
  27. }
Advertisement
Add Comment
Please, Sign In to add comment