mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
* 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>
26 lines
627 B
TypeScript
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>
|
|
);
|
|
};
|