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>
63 lines
1.4 KiB
TypeScript
63 lines
1.4 KiB
TypeScript
import clsx from 'clsx'
|
|
|
|
import { firebaseLogin } from 'web/lib/firebase/users'
|
|
import { Button } from './button'
|
|
import { PlayMoneyDisclaimer } from '../play-money-disclaimer'
|
|
import { Col } from '../layout/col'
|
|
import { Row } from 'web/components/layout/row'
|
|
|
|
export const SidebarSignUpButton = (props: { className?: string }) => {
|
|
const { className } = props
|
|
|
|
return (
|
|
<Col className={clsx('mt-4', className)}>
|
|
<Button
|
|
color="gradient"
|
|
size="xl"
|
|
onClick={firebaseLogin}
|
|
className="w-full"
|
|
>
|
|
Sign up
|
|
</Button>
|
|
<PlayMoneyDisclaimer />
|
|
</Col>
|
|
)
|
|
}
|
|
|
|
export const SignUpButton = (props: { className?: string }) => {
|
|
const { className } = props
|
|
|
|
return (
|
|
<Button
|
|
color="gradient"
|
|
size="md"
|
|
onClick={firebaseLogin}
|
|
className={className}
|
|
>
|
|
Sign up
|
|
</Button>
|
|
)
|
|
}
|
|
|
|
export const GoogleSignInButton = (props: { onClick: () => any }) => {
|
|
return (
|
|
<Button
|
|
onClick={props.onClick}
|
|
color={'gradient-pink'}
|
|
size={'lg'}
|
|
className=" whitespace-nowrap shadow-sm outline-2 "
|
|
>
|
|
<Row className={'items-center gap-2 p-2'}>
|
|
<img
|
|
src="/google.svg"
|
|
alt=""
|
|
width={24}
|
|
height={24}
|
|
className="rounded-full bg-white"
|
|
/>
|
|
<span>Sign in with Google</span>
|
|
</Row>
|
|
</Button>
|
|
)
|
|
}
|