chore: login page done
This commit is contained in:
parent
2c2c94ea8c
commit
9ad627554b
BIN
frontend/public/assets/oktopus.png
Normal file
BIN
frontend/public/assets/oktopus.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
|
|
@ -128,7 +128,7 @@ export const AuthProvider = (props) => {
|
|||
};
|
||||
|
||||
const signIn = async (email, password) => {
|
||||
if (email !== 'demo@devias.io' || password !== 'Password123!') {
|
||||
if (email !== 'demo@oktopus.io' || password !== 'Password123!') {
|
||||
throw new Error('Please check your email and password');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ export const Layout = (props) => {
|
|||
lg={6}
|
||||
sx={{
|
||||
alignItems: 'center',
|
||||
background: 'radial-gradient(50% 50% at 50% 50%, #122647 0%, #090E23 100%)',
|
||||
background: 'radial-gradient(50% 50% at 50% 50%, #306D6F 0%, #255355 100%)',
|
||||
color: 'white',
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
|
|
@ -69,36 +69,15 @@ export const Layout = (props) => {
|
|||
}}
|
||||
>
|
||||
<Box sx={{ p: 3 }}>
|
||||
<Typography
|
||||
align="center"
|
||||
color="inherit"
|
||||
sx={{
|
||||
fontSize: '24px',
|
||||
lineHeight: '32px',
|
||||
mb: 1
|
||||
}}
|
||||
variant="h1"
|
||||
>
|
||||
Welcome to{' '}
|
||||
<Box
|
||||
component="a"
|
||||
sx={{ color: '#15B79E' }}
|
||||
target="_blank"
|
||||
>
|
||||
Devias Kit
|
||||
</Box>
|
||||
</Typography>
|
||||
<img
|
||||
alt=""
|
||||
src="/assets/oktopus.png"
|
||||
/>
|
||||
<Typography
|
||||
align="center"
|
||||
sx={{ mb: 3 }}
|
||||
variant="subtitle1"
|
||||
>
|
||||
A professional kit that comes with ready-to-use MUI components.
|
||||
</Typography>
|
||||
<img
|
||||
alt=""
|
||||
src="/assets/auth-illustration.svg"
|
||||
/>
|
||||
</Box>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const Page = () => {
|
|||
const [method, setMethod] = useState('email');
|
||||
const formik = useFormik({
|
||||
initialValues: {
|
||||
email: 'demo@devias.io',
|
||||
email: 'demo@oktopus.io',
|
||||
password: 'Password123!',
|
||||
submit: null
|
||||
},
|
||||
|
|
@ -71,7 +71,7 @@ const Page = () => {
|
|||
<>
|
||||
<Head>
|
||||
<title>
|
||||
Login | Devias Kit
|
||||
Login | Oktopus
|
||||
</title>
|
||||
</Head>
|
||||
<Box
|
||||
|
|
@ -103,7 +103,7 @@ const Page = () => {
|
|||
color="text.secondary"
|
||||
variant="body2"
|
||||
>
|
||||
Don't have an account?
|
||||
Não possui uma conta?
|
||||
|
||||
<Link
|
||||
component={NextLink}
|
||||
|
|
@ -111,11 +111,11 @@ const Page = () => {
|
|||
underline="hover"
|
||||
variant="subtitle2"
|
||||
>
|
||||
Register
|
||||
Registre-se
|
||||
</Link>
|
||||
</Typography>
|
||||
</Stack>
|
||||
<Tabs
|
||||
{/*<Tabs
|
||||
onChange={handleMethodChange}
|
||||
sx={{ mb: 3 }}
|
||||
value={method}
|
||||
|
|
@ -128,7 +128,7 @@ const Page = () => {
|
|||
label="Phone Number"
|
||||
value="phoneNumber"
|
||||
/>
|
||||
</Tabs>
|
||||
</Tabs>*/}
|
||||
{method === 'email' && (
|
||||
<form
|
||||
noValidate
|
||||
|
|
@ -193,7 +193,7 @@ const Page = () => {
|
|||
sx={{ mt: 3 }}
|
||||
>
|
||||
<div>
|
||||
You can use <b>demo@devias.io</b> and password <b>Password123!</b>
|
||||
You can use <b>demo@oktopus.io</b> and password <b>Password123!</b>
|
||||
</div>
|
||||
</Alert>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ export const AccountProfileDetails = () => {
|
|||
const [values, setValues] = useState({
|
||||
firstName: 'Anika',
|
||||
lastName: 'Visser',
|
||||
email: 'demo@devias.io',
|
||||
email: 'demo@oktopus.io',
|
||||
phone: '',
|
||||
state: 'los-angeles',
|
||||
country: 'USA'
|
||||
|
|
|
|||
|
|
@ -25,11 +25,11 @@ export const neutral = {
|
|||
};
|
||||
|
||||
export const indigo = withAlphas({
|
||||
lightest: '#F5F7FF',
|
||||
light: '#EBEEFE',
|
||||
main: '#6366F1',
|
||||
dark: '#4338CA',
|
||||
darkest: '#312E81',
|
||||
lightest: '#FFFFFF',
|
||||
light: '#306D6F',
|
||||
main: '#306D6F',
|
||||
dark: '#255355',
|
||||
darkest: '#00a0b8',
|
||||
contrastText: '#FFFFFF'
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user