predikt/oracle/web/pages/welcomeoffer.tsx
caelum0x 2b68bde5d5 Predikt: full Polymarket-style prediction market — web + mobile + on-chain + bots
Working tree is now the canonical repo. Off-chain play-money + trustless on-chain
(FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution,
mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 23:29:50 +03:00

55 lines
1.5 KiB
TypeScript

import { USElectionsPage } from 'web/components/elections-page'
import { Page } from 'web/components/layout/page'
import { SEO } from 'web/components/SEO'
import { getElectionsPageProps } from 'web/lib/politics/home'
import { ElectionsPageProps } from 'web/public/data/elections-data'
import Custom404 from './404'
import { ENV } from 'common/envs/constants'
import { useTracking } from 'web/hooks/use-tracking'
import { PromotionalPanel } from 'web/components/promotional-panel'
import { useSaveCampaign } from 'web/hooks/use-save-campaign'
const revalidate = 60
export async function getStaticProps() {
if (ENV === 'DEV') {
return {
props: {},
revalidate,
}
}
const electionsPageProps = await getElectionsPageProps()
return {
props: electionsPageProps,
revalidate,
}
}
export default function WelcomeOffer(props: ElectionsPageProps) {
useTracking('welcome offer page view')
useSaveCampaign()
if (Object.keys(props).length === 0) {
return <Custom404 />
}
return (
<Page trackPageView="Welcome offer page">
<SEO
title="Welcome offer"
description="Landing page containing welcome offer for sweepstakes"
url="/welcomeoffer"
/>
<PromotionalPanel
darkModeImg={'/welcome/manipurple.png'}
lightModeImg={'/welcome/manipurple.png'}
header={<>Welcome offer applied</>}
loginTrackingText="sign up from /welcomeoffer"
/>
<USElectionsPage {...props} hideTitle />
</Page>
)
}