diff --git a/nym-wallet/src/components/Buy/Tutorial.tsx b/nym-wallet/src/components/Buy/Tutorial.tsx index 1d4b40fc58..b9df4b4f0c 100644 --- a/nym-wallet/src/components/Buy/Tutorial.tsx +++ b/nym-wallet/src/components/Buy/Tutorial.tsx @@ -1,90 +1,119 @@ import React, { useState } from 'react'; -import { Box, Button, Stack, Typography, Grid, Link } from '@mui/material'; +import { Button, Stack, Typography, Grid, Link } from '@mui/material'; +import { Tune as TuneIcon, BorderColor as BorderColorIcon, Paid as PaidIcon } from '@mui/icons-material'; import { NymCard } from '../NymCard'; -import { ModalDivider } from '../Modals/ModalDivider'; import { SignMessageModal } from './SignMessageModal'; +const borderColor = 'rgba(141, 147, 153, 0.2)'; + +const TutorialStep = ({ + step, + title, + text, + icon, + divider, +}: { + step: number; + title: string; + text: string | React.ReactNode; + icon: React.ReactNode; + divider?: boolean; +}) => ( + + + + {icon} + + {`STEP ${step}`} + + + + {title} + + {typeof text === 'string' ? ( + t.palette.nym.text.muted }}>{text} + ) : ( + text + )} + + +); + export const Tutorial = () => { const [showSignModal, setShowSignModal] = useState(false); return ( - + + + Follow below 3 steps to quickly and easily to buy NYM tokens. You can purchase up to 1000 Swiss Francs per day + without KYC. + {showSignModal && setShowSignModal(false)} />} - - - - How to buy NYM with Bity? - - Follow these 3 steps below to quickly and easily buy NYM tokens - - + - - - - - - - Click on{' '} - - Buy NYM button to go to Bity’s website. - {' '} - Select the amount and currency for your purchase. Follow the steps and provide the required info i.e.{' '} - - IBAN, wallet address, etc. - - - - - - - - - When asked for signature, copy Bity’s message and{' '} - {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */} - setShowSignModal(true)} - > - sign it using this link - - {'. '} - Then{' '} - - copy and paste your signature on Bity website - {' '} - as shown above. - - - - - - - - Make the transfer to Bity’s address. Once Bity receives the amount and transaction is confirmed they - will{' '} - - deposit NYM tokens to your wallet. - - - - - - - + ); };