// ** React Imports import { ReactNode, useState } from 'react' // ** Next Import import Link from 'next/link' // ** MUI Components import Button from '@mui/material/Button' import Divider from '@mui/material/Divider' import Checkbox from '@mui/material/Checkbox' import TextField from '@mui/material/TextField' import InputLabel from '@mui/material/InputLabel' import IconButton from '@mui/material/IconButton' import Box, { BoxProps } from '@mui/material/Box' import FormControl from '@mui/material/FormControl' import useMediaQuery from '@mui/material/useMediaQuery' import OutlinedInput from '@mui/material/OutlinedInput' import { styled, useTheme } from '@mui/material/styles' import InputAdornment from '@mui/material/InputAdornment' import Typography, { TypographyProps } from '@mui/material/Typography' import MuiFormControlLabel, { FormControlLabelProps } from '@mui/material/FormControlLabel' // ** Icon Imports import Icon from 'src/@core/components/icon' // ** Configs import themeConfig from 'src/configs/themeConfig' // ** Layout Import import BlankLayout from 'src/@core/layouts/BlankLayout' // ** Hooks import { useSettings } from 'src/@core/hooks/useSettings' // ** Demo Imports import FooterIllustrationsV2 from 'src/views/pages/auth/FooterIllustrationsV2' // ** Styled Components const RegisterIllustrationWrapper = styled(Box)(({ theme }) => ({ padding: theme.spacing(20), paddingRight: '0 !important', [theme.breakpoints.down('lg')]: { padding: theme.spacing(10) } })) const RegisterIllustration = styled('img')(({ theme }) => ({ maxWidth: '48rem', [theme.breakpoints.down('xl')]: { maxWidth: '38rem' }, [theme.breakpoints.down('lg')]: { maxWidth: '30rem' } })) const RightWrapper = styled(Box)(({ theme }) => ({ width: '100%', [theme.breakpoints.up('md')]: { maxWidth: 400 }, [theme.breakpoints.up('lg')]: { maxWidth: 450 } })) const BoxWrapper = styled(Box)(({ theme }) => ({ width: '100%', [theme.breakpoints.down('md')]: { maxWidth: 400 } })) const TypographyStyled = styled(Typography)(({ theme }) => ({ fontWeight: 600, letterSpacing: '0.18px', marginBottom: theme.spacing(1.5), [theme.breakpoints.down('md')]: { marginTop: theme.spacing(8) } })) const FormControlLabel = styled(MuiFormControlLabel)(({ theme }) => ({ marginBottom: theme.spacing(4), '& .MuiFormControlLabel-label': { fontSize: '0.875rem', color: theme.palette.text.secondary } })) const LinkStyled = styled(Link)(({ theme }) => ({ textDecoration: 'none', color: theme.palette.primary.main })) const Register = () => { // ** States const [showPassword, setShowPassword] = useState(false) // ** Hooks const theme = useTheme() const { settings } = useSettings() const hidden = useMediaQuery(theme.breakpoints.down('md')) // ** Vars const { skin } = settings const imageSource = skin === 'bordered' ? 'auth-v2-register-illustration-bordered' : 'auth-v2-register-illustration' return ( {!hidden ? ( ) : null} {themeConfig.templateName} Adventure starts here 🚀 Make your app management easy and fun!
e.preventDefault()}> Password e.preventDefault()} onClick={() => setShowPassword(!showPassword)} > } /> } sx={{ mb: 4, mt: 1.5, '& .MuiFormControlLabel-label': { fontSize: '0.875rem' } }} label={ <> I agree to{' '} e.preventDefault()}> privacy policy & terms } /> Already have an account? Sign in instead `${theme.spacing(5)} !important`, mb: theme => `${theme.spacing(7.5)} !important` }} > or e.preventDefault()}> e.preventDefault()}> e.preventDefault()} sx={{ color: theme => (theme.palette.mode === 'light' ? '#272727' : 'grey.300') }} > e.preventDefault()}>
) } Register.getLayout = (page: ReactNode) => {page} Register.guestGuard = true export default Register