mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-12-11 11:52:35 -05:00
formatting
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { ImageResponse } from "next/og";
|
||||
import { NextRequest } from "next/server";
|
||||
import { getNeynarUser } from "~/lib/neynar";
|
||||
import { ImageResponse } from 'next/og';
|
||||
import { NextRequest } from 'next/server';
|
||||
import { getNeynarUser } from '~/lib/neynar';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
@@ -15,10 +15,18 @@ export async function GET(request: NextRequest) {
|
||||
<div tw="flex h-full w-full flex-col justify-center items-center relative bg-primary">
|
||||
{user?.pfp_url && (
|
||||
<div tw="flex w-96 h-96 rounded-full overflow-hidden mb-8 border-8 border-white">
|
||||
<img src={user.pfp_url} alt="Profile" tw="w-full h-full object-cover" />
|
||||
<img
|
||||
src={user.pfp_url}
|
||||
alt="Profile"
|
||||
tw="w-full h-full object-cover"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
<h1 tw="text-8xl text-white">{user?.display_name ? `Hello from ${user.display_name ?? user.username}!` : 'Hello!'}</h1>
|
||||
<h1 tw="text-8xl text-white">
|
||||
{user?.display_name
|
||||
? `Hello from ${user.display_name ?? user.username}!`
|
||||
: 'Hello!'}
|
||||
</h1>
|
||||
<p tw="text-5xl mt-4 text-white opacity-80">Powered by Neynar 🪐</p>
|
||||
</div>
|
||||
),
|
||||
@@ -27,4 +35,4 @@ export async function GET(request: NextRequest) {
|
||||
height: 800,
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user