diff --git a/src/app/login/SubmitBox.tsx b/src/app/login/SubmitBox.tsx index 920cc69..ed8fae6 100644 --- a/src/app/login/SubmitBox.tsx +++ b/src/app/login/SubmitBox.tsx @@ -14,7 +14,12 @@ export default function LoginSubmitBox({ children }: { children: React.ReactNode }; return ( - + {children} ); diff --git a/src/app/register/SubmitBox.tsx b/src/app/register/SubmitBox.tsx new file mode 100644 index 0000000..ae90aeb --- /dev/null +++ b/src/app/register/SubmitBox.tsx @@ -0,0 +1,28 @@ +'use client'; +import { FormEvent } from 'react'; +import { Box } from '@mui/material'; + +export default function RegisterSubmitBox({ + children, +}: { + children: React.ReactNode; +}) { + const handleSubmit = (event: FormEvent) => { + event.preventDefault(); + const data = new FormData(event.currentTarget); + console.log({ + email: data.get('email'), + password: data.get('password'), + }); + }; + return ( + + {children} + + ); +} diff --git a/src/app/register/page.tsx b/src/app/register/page.tsx new file mode 100644 index 0000000..5f83c7f --- /dev/null +++ b/src/app/register/page.tsx @@ -0,0 +1,123 @@ +import { + Avatar, + Box, + Button, + Checkbox, + Grid, + TextField, + Typography, + FormControlLabel, +} from '@mui/material'; +import { LockOutlined } from '@mui/icons-material'; +import Copyright from '@/components/Copyright'; +import CustomLink from '@/components/CustomLink'; +import RegisterSubmitBox from './SubmitBox'; +import TACModal from '@/components/TACModal'; + +export default function SignUp() { + return ( + <> + + + + + + Register + + + + + + + + + + } + label='I agree to the terms and conditions.' + /> + + + {/* } + label='I want to receive inspiration, marketing promotions and updates via email.' + /> */} + + + + + Already have an account? Login + + + + + + + + ); +} diff --git a/src/components/TACModal.tsx b/src/components/TACModal.tsx new file mode 100644 index 0000000..a43fb54 --- /dev/null +++ b/src/components/TACModal.tsx @@ -0,0 +1,83 @@ +'use client'; +import { Box, Button, Modal, Typography } from '@mui/material'; +import { useState } from 'react'; + +const style = { + position: 'absolute' as 'absolute', + top: '50%', + left: '50%', + transform: 'translate(-50%, -50%)', + width: { xs: '80%', sm: '60%' }, + bgcolor: 'background.paper', + border: '2px solid #000', + boxShadow: 24, + p: 4, +}; + +export default function TACModal() { + const [open, setOpen] = useState(false); + const handleOpen = () => setOpen(true); + const handleClose = () => setOpen(false); + + return ( +
+ + + + + Terms and Conditions + + +
    +
  1. You can use Polygon to develop problems only.
  2. +
  3. + You should use your real name and all information about you + should be correct and accurate. +
  4. +
  5. + You should not submit files containing malicious code: +
      +
    • trojan horses;
    • +
    • rootkits;
    • +
    • backdoors;
    • +
    • viruses.
    • +
    +
  6. +
  7. + Your code not allowed to: +
      +
    • access the network;
    • +
    • + work with any files except those explicitly specified in the + problem statement; +
    • +
    • attack system security;
    • +
    • execute other programs and create new processes;
    • +
    • change file system permissions;
    • +
    • work with subdirectories;
    • +
    • + create or manipulate any GUI items (windows, dialog boxes, + etc); +
    • +
    • work with external devices (sound, printer, etc);
    • +
    • work with OS registry;
    • +
    • do anything else that can stir Polygon functioning.
    • +
    +
  8. +
+
+
+
+
+ ); +}