Skip to content

Commit

Permalink
Added cover images. Added logic to use the cover images instead of de…
Browse files Browse the repository at this point in the history
…fault hardcoded image.
  • Loading branch information
Freshenext committed Oct 29, 2024
1 parent a273133 commit 02e6bcc
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
Binary file added public/images/nfts/contributors-cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added public/images/nfts/founders-cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/nfts/partners-cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/app/communities/communityUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ interface CommunityItem {
description: string
nftAddress: string
numberOfMembers: number
cover: string
longDescription?: ReactNode
isMintable?: boolean
}
Expand All @@ -20,6 +21,7 @@ export const firstCommunity = {
'The Early Adopters collection features a vibrant array of digital pioneers, each uniquely crafted to embody the spirit of innovation and community in the blockchain world.',
nftAddress: nftContracts.EA,
numberOfMembers: 0,
cover: '/images/nfts/ea-nft-cover.png',
isMintable: true,
longDescription: (
<>
Expand Down Expand Up @@ -50,6 +52,7 @@ export const ogFounders = {
'In the magical realm of Rootstock, a select group of visionary elves, known as the Founders, received the prestigious OG Badge. This badge was a testament to their foresight and pioneering spirit, marking them as the true architects of their era.',
nftAddress: nftContracts.OG_FOUNDERS,
numberOfMembers: 0,
cover: '/images/nfts/founders-cover.png',
isMintable: true,
}

Expand All @@ -61,6 +64,7 @@ export const ogFoundersEcosystemPartners = {
'In the magical realm of Rootstock, a new chapter unfolds as the elves of the RootstockCollective embark on an extraordinary journey. Equipped with the OG Badge, these visionary elves invite their esteemed external partners to join them in exploring and innovating within the Rootstock ecosystem.',
nftAddress: nftContracts.OG_PARTNERS,
numberOfMembers: 0,
cover: '/images/nfts/partners-cover.png',
isMintable: false,
}

Expand All @@ -72,6 +76,7 @@ export const ogFoundersExternalContributors = {
'In the enchanting realm of Rootstock, a thrilling new chapter unfolds as the elves of the RootstockCollective embark on an extraordinary journey. These visionary elves, recognized for their remarkable contributions, are bestowed with the prestigious OG Badge—a symbol of honor that grants them special powers.',
nftAddress: nftContracts.OG_CONTRIBUTORS,
numberOfMembers: 0,
cover: '/images/nfts/contributors-cover.png',
isMintable: false,
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/communities/nft/[address].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export default function Page() {
<div className="flex gap-6">
<Image
alt={nftMeta?.name ?? 'Early Adopters NFT'}
src={nftMeta?.image || '/images/ea-nft-cover.png'}
src={nftMeta?.image || nftInfo.cover}
className="w-full self-center max-w-56 rounded-md"
width={500}
height={500}
Expand Down

0 comments on commit 02e6bcc

Please sign in to comment.