Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update swarm nft content #339

Merged
merged 3 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,46 +82,7 @@ const NFTMintComponent = () => {
}
}

return pathname.includes('si_her') ? (
<ComponentWrapper sectionId="nft">
<div className=" flex-col md:flex-row justify-center">
<div className="w-full p-2">
<SectionTitle title="Attention Event Attendees!" />
<p className="text-xl">
We&apos;re thrilled you joined us for the SI HER DEFI:
AFRICA. As a token of our gratitude, we&apos;re conducting
an exclusive airdrop for participants. To ensure you
don&apos;t miss out, kindly click on the Whitelist address
button to submit your wallet address. Your submitted
wallet address will be used solely for the purpose of the
airdrop. Thank you for being a part of our community!
</p>
{isWhitelisted || isAddressFound(address) ? (
<p className="py-4 w-fit px-2 bg-base text-xl">
Address already whitelisted
</p>
) : (
<ConnectKitButton.Custom>
{({ show }) => {
return (
<Button
onClick={
!isConnected ? show : addWhitelistAddress
}
className={`hover:text-base text-xl hover:text-xl p-2`}>
{' '}
{!isConnected
? 'Connect wallet to add address to whitelist'
: 'Whitelist Address'}
</Button>
)
}}
</ConnectKitButton.Custom>
)}
</div>
</div>
</ComponentWrapper>
) : pathname.includes('swarm') ? (
return pathname.includes('swarm') ? (
<ComponentWrapper sectionId="nft">
<div className="flex flex-col md:flex-row justify-center">
<div className="w-full md:w-[60%] p-2">
Expand All @@ -133,19 +94,9 @@ const NFTMintComponent = () => {
of Swarm.
<br />
<br />
Mint the Swarm 2.0 Livestream NFT to gain access to
exclusive content and witness live discussions with key
figures in the Swarm community. Immerse yourself in the
unveiling of Swarm&apos;s enhanced capabilities and join
us in celebrating the dawn of a new era in the digital
realm.
<br />
Mint the Swarm 2.0 Livestream NFT and join us in
celebrating the dawn of a new era in the digital realm.
<br />
Owning the Swarm 2.0 Livestream NFT also grants you
eligibility for special commemorative drops after the
event—an opportunity to own a piece of Swarm&apos;s
digital history. Don&apos;t miss out on this chance to be
a part of the Swarm revolution!
</p>
</div>
<div className="flex flex-col w-full md:w-[40%] p-2 bg-base shadow rounded-lg justify-center items-center">
Expand Down
3 changes: 3 additions & 0 deletions packages/app/context/GeneralContext.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
'use client'

import { SpeedInsights } from '@vercel/speed-insights/next'
import { useMemo } from 'react'
import {
LivepeerConfig,
Expand Down Expand Up @@ -27,6 +29,7 @@ const GeneralContext = ({
<SiweContext>
<LivepeerConfig client={livepeerClient}>
<Analytics />
<SpeedInsights />
{children}
</LivepeerConfig>
</SiweContext>
Expand Down
5 changes: 3 additions & 2 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@types/react": "^18.2.13",
"@types/react-dom": "18.2.4",
"@vercel/analytics": "^1.0.2",
"@vercel/speed-insights": "^1.0.2",
"autoprefixer": "10.4.14",
"class-validator": "^0.14.0",
"class-variance-authority": "^0.7.0",
Expand Down Expand Up @@ -50,14 +51,14 @@
"remark-gfm": "^4.0.0",
"sharp": "^0.32.6",
"siwe": "^2.1.4",
"streameth-server": "1.0.0",
"tailwindcss": "3.3.2",
"typescript": "^5.1.3",
"usehooks-ts": "^2.9.1",
"video.js": "^8.5.2",
"viem": "^1.18.4",
"wagmi": "^1.4.5",
"zod": "^3.22.4",
"streameth-server": "1.0.0"
"zod": "^3.22.4"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.10",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4716,6 +4716,11 @@
dependencies:
server-only "^0.0.1"

"@vercel/speed-insights@^1.0.2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@vercel/speed-insights/-/speed-insights-1.0.2.tgz#1bebf3e7c7046b6a911721233b263b69214ddb3e"
integrity sha512-y5HWeB6RmlyVYxJAMrjiDEz8qAIy2cit0fhBq+MD78WaUwQvuBnQlX4+5MuwVTWi46bV3klaRMq83u9zUy1KOg==

"@videojs/[email protected]":
version "3.7.0"
resolved "https://registry.yarnpkg.com/@videojs/http-streaming/-/http-streaming-3.7.0.tgz#48ece0582602e24a3b403c2410bbcdf320bfcccd"
Expand Down