Files
TheGame/packages/web/components/Landing/StartButton.tsx
Sero 38c3dc059e Sero/wc v2 (#1735)
* wc/wagmi/viem

* replace

* profile

* replace context (,:

* testing, clean up

* wallet connect deploy

* connect

* remove type slive

* podcast

* podcast

* heck yeah

* feat: connect button

* chore

* trying siwe, network switch

* redirect

* prettying, cleaning up SIWE endpoints, & passing linting 🕊

* switching minting to Optimism & converting `ethers` to `wagmi` for contract access 🥧

* simplified onboarding & successfully minted 

* typo

* api key

---------

Co-authored-by: Udit Takkar <udit222001@gmail.com>
Co-authored-by: dysbulic <dys@dhappy.org>
2024-03-21 06:09:12 -04:00

26 lines
627 B
TypeScript

import { Button, Text, useBreakpointValue } from '@metafam/ds';
import { useRouter } from 'next/router';
export const StartButton: React.FC<{ text: string }> = ({
text = 'Start Playing',
}) => {
const router = useRouter();
const buttonSize = useBreakpointValue({ base: 'sm', xl: 'lg' });
return (
<Button
sx={{
backgroundColor: '#FF03FF',
color: '#261561',
}}
background="landing150"
colorScheme="white"
rounded="md"
size={buttonSize}
minW="7rem"
onClick={() => router.push('/signup')}
>
<Text as="span">{text}</Text>
</Button>
);
};