diff --git a/web/pages/kohrs.tsx b/web/pages/kohrs.tsx new file mode 100644 index 0000000000..ba40724c0f --- /dev/null +++ b/web/pages/kohrs.tsx @@ -0,0 +1,154 @@ +import { USElectionsPage } from 'web/components/elections-page' +import { Col } from 'web/components/layout/col' +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 Image from 'next/image' +import { formatMoneyUSD } from 'common/util/format' +import { CoinNumber } from 'web/components/widgets/coin-number' +import { Row } from 'web/components/layout/row' +import { buttonClass } from 'web/components/buttons/button' +import clsx from 'clsx' +import Link from 'next/link' +import SquiggleVertical from 'web/lib/icons/squiggle-vertical.svg' +import { useIsMobile } from 'web/hooks/use-is-mobile' +import Custom404 from './404' +import { ENV } from 'common/envs/constants' +import { useTracking } from 'web/hooks/use-tracking' + +const revalidate = 60 + +export async function getStaticProps() { + if (ENV === 'DEV') { + return { + props: {}, + revalidate, + } + } + + const electionsPageProps = await getElectionsPageProps() + return { + props: electionsPageProps, + revalidate, + } +} + +export default function Pakman(props: ElectionsPageProps) { + useTracking('pakman page view') + + if (Object.keys(props).length === 0) { + return + } + + return ( + + + + + + + ) +} + +export function PromotionalPanel(props: { + darkModeImg: string + lightModeImg: string + welcomerName: string +}) { + const { darkModeImg, lightModeImg, welcomerName } = props + const isMobile = useIsMobile() + return ( +
+ + Pakman Show Logo + + +
+ + {!isMobile && ( +
+ +
+ )} + +
+ Welcome, from {welcomerName} +
+ +
+ Register today and get a limited time offer in store! +
+ + +
+
+ {' '} +
+ for only {formatMoneyUSD(20)} +
+
+
+ {' '} + → {formatMoneyUSD(1)} USD +
+ +
+ + Register today! + +
+ Register today! +
+
+ + +
+ ) +} diff --git a/web/public/kohrs/kohrs.jpeg b/web/public/kohrs/kohrs.jpeg new file mode 100644 index 0000000000..23c09df8dd Binary files /dev/null and b/web/public/kohrs/kohrs.jpeg differ