forked from Aldhanekaa/windmill-dashboard-nextjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create-account.js
98 lines (90 loc) · 3.22 KB
/
create-account.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import React from 'react';
import Link from 'next/link';
import { GithubIcon, TwitterIcon } from 'icons';
import { Input, Label, Button } from '@windmill/react-ui';
const ImageLight = '/assets/img/create-account-office.jpeg';
const ImageDark = '/assets/img/create-account-office-dark.jpeg';
function Login() {
return (
<div className='flex items-center min-h-screen p-6 bg-gray-50 dark:bg-gray-900'>
<div className='flex-1 h-full max-w-4xl mx-auto overflow-hidden bg-white rounded-lg shadow-xl dark:bg-gray-800'>
<div className='flex flex-col overflow-y-auto md:flex-row'>
<div className='h-32 md:h-auto md:w-1/2'>
<img
aria-hidden='true'
className='object-cover w-full h-full dark:hidden'
src={ImageLight}
alt='Office'
/>
<img
aria-hidden='true'
className='hidden object-cover w-full h-full dark:block'
src={ImageDark}
alt='Office'
/>
</div>
<main className='flex items-center justify-center p-6 sm:p-12 md:w-1/2'>
<div className='w-full'>
<h1 className='mb-4 text-xl font-semibold text-gray-700 dark:text-gray-200'>
Create account
</h1>
<Label>
<span>Email</span>
<Input
className='mt-1'
type='email'
placeholder='[email protected]'
/>
</Label>
<Label className='mt-4'>
<span>Password</span>
<Input
className='mt-1'
placeholder='***************'
type='password'
/>
</Label>
<Label className='mt-4'>
<span>Confirm password</span>
<Input
className='mt-1'
placeholder='***************'
type='password'
/>
</Label>
<Label className='mt-6' check>
<Input type='checkbox' />
<span className='ml-2'>
I agree to the{' '}
<span className='underline'>privacy policy</span>
</span>
</Label>
<Link href='/login'>
<Button block className='mt-4'>
Signup
</Button>
</Link>
<hr className='my-8' />
<Button block layout='outline'>
<GithubIcon className='w-4 h-4 mr-2' aria-hidden='true' />
Github
</Button>
<Button block className='mt-4' layout='outline'>
<TwitterIcon className='w-4 h-4 mr-2' aria-hidden='true' />
Twitter
</Button>
<p className='mt-4'>
<Link href='/login'>
<a className='text-sm font-medium text-purple-600 dark:text-purple-400 hover:underline'>
Already have an account? Login
</a>
</Link>
</p>
</div>
</main>
</div>
</div>
</div>
);
}
export default Login;