diff --git a/e-commerce-app/src/App.tsx b/e-commerce-app/src/App.tsx index 8cf4099..7f15a6f 100644 --- a/e-commerce-app/src/App.tsx +++ b/e-commerce-app/src/App.tsx @@ -45,4 +45,4 @@ export const App = () => { ); -} \ No newline at end of file +}; \ No newline at end of file diff --git a/e-commerce-app/src/assets/images/RegPageImg.png b/e-commerce-app/src/assets/images/RegPageImg.png new file mode 100644 index 0000000..8358424 Binary files /dev/null and b/e-commerce-app/src/assets/images/RegPageImg.png differ diff --git a/e-commerce-app/src/pages/RegistrationPage/FormPage1.tsx b/e-commerce-app/src/pages/RegistrationPage/FormPage1.tsx new file mode 100644 index 0000000..e304a5b --- /dev/null +++ b/e-commerce-app/src/pages/RegistrationPage/FormPage1.tsx @@ -0,0 +1,58 @@ +import React from 'react'; +import Box from '@mui/material/Box'; +import TextField from '@mui/material/TextField'; +import Grid from '@mui/material/Grid'; + +export const FormPage1 =()=>{ + const handleSubmit = (event: React.FormEvent) => { + event.preventDefault(); + const data = new FormData(event.currentTarget); + console.log({ + email: data.get('email'), + password: data.get('password'), + }); + }; + return ( + + + + + + + + + + + + + + ); +}; \ No newline at end of file diff --git a/e-commerce-app/src/pages/RegistrationPage/FormPage2.tsx b/e-commerce-app/src/pages/RegistrationPage/FormPage2.tsx new file mode 100644 index 0000000..9c6f344 --- /dev/null +++ b/e-commerce-app/src/pages/RegistrationPage/FormPage2.tsx @@ -0,0 +1,48 @@ +import React from 'react'; +import Box from '@mui/material/Box'; +import TextField from '@mui/material/TextField'; +import Grid from '@mui/material/Grid'; + +export const FormPage2 = () => { + return ( + + + + + + + + + + + + + + ); +}; \ No newline at end of file diff --git a/e-commerce-app/src/pages/RegistrationPage/FormPage3.tsx b/e-commerce-app/src/pages/RegistrationPage/FormPage3.tsx new file mode 100644 index 0000000..4264762 --- /dev/null +++ b/e-commerce-app/src/pages/RegistrationPage/FormPage3.tsx @@ -0,0 +1,83 @@ +import React from 'react'; +import Box from '@mui/material/Box'; +import TextField from '@mui/material/TextField'; +import FormControlLabel from '@mui/material/FormControlLabel'; +import Checkbox from '@mui/material/Checkbox'; +import Grid from '@mui/material/Grid'; +import Button from '@mui/material/Button'; + + +export const FormPage3 = () => { + return ( + +

Address fields:

+ + + + + + + + + + + + + + + + } + label="I want to receive web-site promotions" + /> + + + +
+ ); +}; \ No newline at end of file diff --git a/e-commerce-app/src/pages/RegistrationPage/RegPage.module.scss b/e-commerce-app/src/pages/RegistrationPage/RegPage.module.scss new file mode 100644 index 0000000..e69de29 diff --git a/e-commerce-app/src/pages/RegistrationPage/RegistrationPage.tsx b/e-commerce-app/src/pages/RegistrationPage/RegistrationPage.tsx index 5010469..64f951b 100644 --- a/e-commerce-app/src/pages/RegistrationPage/RegistrationPage.tsx +++ b/e-commerce-app/src/pages/RegistrationPage/RegistrationPage.tsx @@ -1,5 +1,70 @@ -import React from 'react'; +import React, { useState} from 'react'; +import CssBaseline from '@mui/material/CssBaseline'; +import Box from '@mui/material/Box'; +import Typography from '@mui/material/Typography'; +import Container from '@mui/material/Container'; +import Button from '@mui/material/Button'; +import RegPageImg from '../../assets/images/RegPageImg.png'; +import { auto } from '@popperjs/core'; +import Link from '@mui/material/Link'; +import Grid from '@mui/material/Grid'; +import {FormPage1} from './FormPage1'; +import {FormPage2} from './FormPage2'; +import {FormPage3} from './FormPage3'; + export const RegistrationPage: React.FC = () => { - return
Registration Page
; + const [page, setPage] = useState(1); + return ( + + + + + Welcome to Registration! + + Image1 +

Page {page}/3

+ { + page == 1 ? : page == 2 ? : + } +
+ +

We don't share your personal information with anyone

+ { + page > 1 && ( + + ) + } + { + page < 3 && ( + + ) + } +
+ + + + Already have an account? Login + + + +
+ ); }; \ No newline at end of file