login/register tab title

This commit is contained in:
“spicecat” 2022-07-28 20:29:11 -04:00
commit 9b17b70aa3
2 changed files with 36 additions and 23 deletions

View file

@ -1,5 +1,7 @@
import { Helmet } from 'react-helmet';
import { Link, useLocation } from 'react-router-dom';
import { Card, CardContent, Grid, Typography, Alert } from '@mui/material';
import { LoginForm } from '../controllers/FormControllers';
export default function Login() {
@ -10,29 +12,34 @@ export default function Login() {
}
return (
<Grid
container
spacing={2}
alignItems='center'
justifyContent='center'
style={{ height: '92vh' }}
>
<Grid item xs={3.5} />
<Grid item xs={5}>
<Card sx={{ padding: '1vh' }}>
<CardContent>
<LoginForm />
<Typography variant='body1'>
Forgot your password?{' '}
<Link to='/users/recover'>Recover Password</Link>
</Typography>
</CardContent>
</Card>
{returnMsg() ? (
<Alert severity='warning'> {returnMsg()} </Alert>
) : null}
<>
<Helmet>
<title>Log In - qOverflow</title>
</Helmet>
<Grid
container
spacing={2}
alignItems='center'
justifyContent='center'
style={{ height: '92vh' }}
>
<Grid item xs={3.5} />
<Grid item xs={5}>
<Card sx={{ padding: '1vh' }}>
<CardContent>
<LoginForm />
<Typography variant='body1'>
Forgot your password?{' '}
<Link to='/users/recover'>Recover Password</Link>
</Typography>
</CardContent>
</Card>
{returnMsg() ? (
<Alert severity='warning'> {returnMsg()} </Alert>
) : null}
</Grid>
<Grid item xs={3.5} />
</Grid>
<Grid item xs={3.5} />
</Grid>
</>
);
}

View file

@ -1,3 +1,4 @@
import { Helmet } from 'react-helmet';
import { Card, CardContent, Grid } from '@mui/material';
import CAPTCHA from 'assets/captcha.jpg';
@ -5,6 +6,10 @@ import { RegisterForm } from 'controllers/FormControllers';
export default function Register() {
return (
<>
<Helmet>
<title>Register - qOverflow</title>
</Helmet>
<Grid
container
spacing={2}
@ -25,5 +30,6 @@ export default function Register() {
</Grid>
<Grid item xs={3.5} />
</Grid>
</>
);
}