aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/onboarding/wrap_eth_onboarding_step.tsx
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-06-20 01:19:38 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-06-20 01:19:38 +0800
commit7454e16aae476b3908123dadab0cf9fdf6ab5990 (patch)
tree3477ace66bc71c2aa4e09b85dd1923087effac1b /packages/website/ts/components/onboarding/wrap_eth_onboarding_step.tsx
parent2cc7289b7b3c3177230957ff2384c58bed4266f3 (diff)
parente4acad60e91943c2dcbdd55b7766b543e78df6f6 (diff)
downloaddexon-sol-tools-7454e16aae476b3908123dadab0cf9fdf6ab5990.tar
dexon-sol-tools-7454e16aae476b3908123dadab0cf9fdf6ab5990.tar.gz
dexon-sol-tools-7454e16aae476b3908123dadab0cf9fdf6ab5990.tar.bz2
dexon-sol-tools-7454e16aae476b3908123dadab0cf9fdf6ab5990.tar.lz
dexon-sol-tools-7454e16aae476b3908123dadab0cf9fdf6ab5990.tar.xz
dexon-sol-tools-7454e16aae476b3908123dadab0cf9fdf6ab5990.tar.zst
dexon-sol-tools-7454e16aae476b3908123dadab0cf9fdf6ab5990.zip
Merge branch 'v2-prototype' of https://github.com/0xProject/0x-monorepo into feature/website/portal-v2-analytics
Diffstat (limited to 'packages/website/ts/components/onboarding/wrap_eth_onboarding_step.tsx')
-rw-r--r--packages/website/ts/components/onboarding/wrap_eth_onboarding_step.tsx73
1 files changed, 73 insertions, 0 deletions
diff --git a/packages/website/ts/components/onboarding/wrap_eth_onboarding_step.tsx b/packages/website/ts/components/onboarding/wrap_eth_onboarding_step.tsx
new file mode 100644
index 000000000..b21b39341
--- /dev/null
+++ b/packages/website/ts/components/onboarding/wrap_eth_onboarding_step.tsx
@@ -0,0 +1,73 @@
+import { colors } from '@0xproject/react-shared';
+import * as React from 'react';
+import { Container } from 'ts/components/ui/container';
+import { IconButton } from 'ts/components/ui/icon_button';
+import { Text } from 'ts/components/ui/text';
+
+export interface WrapEthOnboardingStepProps {
+ formattedEthBalanceIfExists?: string;
+}
+
+export const WrapEthOnboardingStep: React.StatelessComponent<WrapEthOnboardingStepProps> = ({
+ formattedEthBalanceIfExists,
+}) => {
+ if (formattedEthBalanceIfExists) {
+ return (
+ <div className="flex items-center flex-column">
+ <Text>Congrats you now have {formattedEthBalanceIfExists} in your wallet.</Text>
+ <Container width="100%" marginTop="25px" marginBottom="15px" className="flex justify-center">
+ <div className="flex flex-column items-center">
+ <Text fontWeight={700}> 1 ETH </Text>
+ <img src="/images/eth_dollar.svg" height="75px" width="75x" />
+ </div>
+ <Container marginRight="25px" marginLeft="25px" position="relative" top="20px">
+ <Text fontSize="25px">
+ <i className="zmdi zmdi-long-arrow-right" />
+ </Text>
+ </Container>
+ <div className="flex flex-column items-center">
+ <Text fontWeight={700}> 1 WETH </Text>
+ <img src="/images/eth_token_erc20.svg" height="75px" width="75px" />
+ </div>
+ </Container>
+ </div>
+ );
+ } else {
+ return (
+ <div className="flex items-center flex-column">
+ <Text>
+ You need to convert some of your ETH into tradeable <b>Wrapped ETH (WETH)</b>.
+ </Text>
+ <Container width="100%" marginTop="25px" marginBottom="15px" className="flex justify-center">
+ <div className="flex flex-column items-center">
+ <Text fontWeight={700}> 1 ETH </Text>
+ <img src="/images/eth_dollar.svg" height="75px" width="75x" />
+ </div>
+ <Container marginRight="25px" marginLeft="25px" position="relative" top="20px">
+ <Text fontSize="36px">=</Text>
+ </Container>
+ <div className="flex flex-column items-center">
+ <Text fontWeight={700}> 1 WETH </Text>
+ <img src="/images/eth_token_erc20.svg" height="75px" width="75px" />
+ </div>
+ </Container>
+ <Text>
+ Think of it like the coin version of a paper note. It has the same value, but some machines only
+ take coins.
+ </Text>
+ <Text>
+ Click
+ <Container display="inline-block" marginLeft="10px" marginRight="10px">
+ <IconButton
+ iconName="zmdi-long-arrow-down"
+ color={colors.mediumBlue}
+ labelText="wrap"
+ display="inline-flex"
+ />
+ </Container>
+ to wrap your ETH.
+ </Text>
+ </div>
+ );
+ }
+};