mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-09 05:25:15 -05:00
* registerPlayer & successPlayer layout done * moved to chakra-ui@next * added meta components and icons * refactored code based on review comments * using React.ComponentProps for getting correct props * using jpeg for background images * removed unwanted `declare module` * changed font naming in design-system * fixed fontFamily in packge web * using Heading component for MetaHeading
33 lines
950 B
TypeScript
33 lines
950 B
TypeScript
import { Image, MetaButton, MetaHeading, Text } from '@metafam/ds';
|
|
import React from 'react';
|
|
|
|
import PlayersImage from '../public/images/players.png';
|
|
import { FlexContainer } from './Container';
|
|
|
|
type Props = {
|
|
next: () => void;
|
|
};
|
|
|
|
export const WelcomePlayer: React.FC<Props> = ({ next }) => {
|
|
return (
|
|
<FlexContainer flex={1} maxWidth="45rem">
|
|
<Image src={PlayersImage} />
|
|
<MetaHeading m={5}>Become a Player</MetaHeading>
|
|
<Text fontSize="lg" textAlign="center">
|
|
MetaGame is an idea we can build a new world, a layer atop of the old
|
|
one. A more collaborative, transparent & caring world. A world in which
|
|
self-interest is better aligned with the common good & the ones creating
|
|
value are more directly rewarded.
|
|
</Text>
|
|
<MetaButton
|
|
onClick={() => {
|
|
next();
|
|
}}
|
|
mt={10}
|
|
>
|
|
Register
|
|
</MetaButton>
|
|
</FlexContainer>
|
|
);
|
|
};
|