-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into jaden/adding-forma
- Loading branch information
Showing
16 changed files
with
243 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Token } from '@reservoir0x/reservoir-kit-ui' | ||
import { useMarketplaceChain } from 'hooks' | ||
|
||
interface Props { | ||
token: Token | ||
} | ||
|
||
const Frame: React.FC<Props> = ({ token }) => { | ||
const marketplaceChain = useMarketplaceChain() | ||
|
||
return ( | ||
<> | ||
{/* Warpcast NFT Old Spec */} | ||
<meta | ||
property="eth:nft:collection" | ||
content={`Farcaster: ${token.token?.name}`} | ||
/> | ||
<meta | ||
property="eth:nft:contract_address" | ||
content={`${token.token?.contract}`} | ||
/> | ||
<meta | ||
property="eth:nft:creator_address" | ||
content="0xbc698ce1933afb2980d4a5a0f85fea1b02fbb1c9" | ||
/> | ||
<meta | ||
property="eth:nft:schema" | ||
content={token.token?.kind?.toUpperCase()} | ||
/> | ||
<meta property="eth:nft:media_url" content={token.token?.imageSmall} /> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -296,7 +296,6 @@ const IndexPage: NextPage<Props> = ({ assetId, ssr }) => { | |
</> | ||
} | ||
/> | ||
|
||
<Flex | ||
justify="center" | ||
css={{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { ImageResponse } from '@vercel/og' | ||
import { NextRequest } from 'next/server' | ||
|
||
export const config = { | ||
runtime: 'edge', | ||
} | ||
|
||
export default async function handler(request: NextRequest) { | ||
const { searchParams } = request.nextUrl | ||
const base64EncodedImage = searchParams.get('image') | ||
|
||
if (!base64EncodedImage) { | ||
return new ImageResponse( | ||
<img src={`${process.env.NEXT_PUBLIC_HOST_URL}/og-image.png`} />, | ||
{ | ||
width: 1200, | ||
height: 630, | ||
} | ||
) | ||
} | ||
|
||
const imageSrc = JSON.parse(atob(base64EncodedImage)) as string | ||
|
||
return new ImageResponse(<img src={imageSrc as string} />, { | ||
width: 1200, | ||
height: 630, | ||
}) | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.