forked from oxen-io/websites
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from session-foundation/testnet_referral
Testnet referral program
- Loading branch information
Showing
19 changed files
with
802 additions
and
115 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
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,44 @@ | ||
import { useTranslations } from 'next-intl'; | ||
import { NextAuthProvider } from '@session/auth/client'; | ||
import { formatDate, formatList } from '@/lib/locale-client'; | ||
import { COMMUNITY_DATE } from '@/lib/constants'; | ||
import { AuthModule } from '@/app/faucet/AuthModule'; | ||
|
||
export function Faucet({ code }: { code?: string }) { | ||
const dictionary = useTranslations('faucet.information'); | ||
return ( | ||
<NextAuthProvider> | ||
<div className="lg:-mt-header-displacement max-w-screen-3xl mx-auto flex w-screen flex-col-reverse items-center justify-around gap-16 px-4 py-16 align-middle xl:grid xl:h-dvh xl:grid-cols-2 xl:p-32 xl:py-0"> | ||
<div className="flex h-max flex-col gap-4 text-start"> | ||
<h1 className="text-5xl font-semibold">{dictionary('title')}</h1> | ||
<h2 className="text-lg font-semibold">{dictionary('communityTitle')}</h2> | ||
<p> | ||
{dictionary.rich('communityDescription', { | ||
connectionOptions: formatList(['Discord', 'Telegram']), | ||
snapshotDate: formatDate(new Date(COMMUNITY_DATE.SESSION_TOKEN_COMMUNITY_SNAPSHOT), { | ||
dateStyle: 'long', | ||
}), | ||
})} | ||
</p> | ||
<h2 className="text-lg font-semibold">{dictionary('oxenTitle')}</h2> | ||
<p> | ||
{dictionary.rich('oxenDescription', { | ||
oxenRegistrationDate: formatDate( | ||
new Date(COMMUNITY_DATE.OXEN_SERVICE_NODE_BONUS_PROGRAM), | ||
{ | ||
dateStyle: 'long', | ||
} | ||
), | ||
})} | ||
</p> | ||
<p>{dictionary('notEligible')}</p> | ||
<h2 className="text-lg font-semibold">{dictionary('walletRequirementTitle')}</h2> | ||
<p>{dictionary.rich('walletRequirementDescription')}</p> | ||
</div> | ||
<div className="h-max min-h-[400px]"> | ||
<AuthModule code={code} /> | ||
</div> | ||
</div> | ||
</NextAuthProvider> | ||
); | ||
} |
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,14 @@ | ||
'use client'; | ||
|
||
import { Faucet } from '@/app/faucet/Faucet'; | ||
|
||
interface FaucetCodePageParams { | ||
params: { | ||
code: string; | ||
}; | ||
} | ||
|
||
export default function FaucetCodePage({ params }: FaucetCodePageParams) { | ||
const { code } = params; | ||
return <Faucet code={code} />; | ||
} |
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.