2022-03-10 22:28:50 +00:00
|
|
|
import React, { useState } from 'react'
|
|
|
|
import login from './login.png';
|
|
|
|
import { Input, Button } from 'antd';
|
|
|
|
import { UserOutlined, LockOutlined } from '@ant-design/icons';
|
|
|
|
|
|
|
|
import 'antd/dist/antd.css';
|
2022-03-10 18:54:09 +00:00
|
|
|
|
|
|
|
function App() {
|
2022-03-10 22:28:50 +00:00
|
|
|
const [username, setUsername] = useState('')
|
|
|
|
const [password, setPassword] = useState('')
|
|
|
|
|
|
|
|
const onLogin = () => {
|
|
|
|
console.log(username)
|
|
|
|
console.log(password)
|
|
|
|
}
|
|
|
|
|
|
|
|
const onCreate = () => {
|
|
|
|
console.log("create account")
|
|
|
|
}
|
|
|
|
|
2022-03-10 18:54:09 +00:00
|
|
|
return (
|
2022-03-10 22:28:50 +00:00
|
|
|
<div style={{ width: '100%', height: '100vh', backgroundColor: '#8fbea7' }}>
|
|
|
|
<img src={login} style={{ position: 'absolute', width: '33%', bottom: 0, right: 0 }}/>
|
|
|
|
<div style={{ position: 'absolute', display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', top: 0, left: 0, width: '100%', height: '67%' }}>
|
2022-03-11 05:26:17 +00:00
|
|
|
<div style={{ backgroundColor: '#ffffff', display: 'flex', flexDirection: 'column', padding: '16px', borderRadius: '8px', width: '500px' }}>
|
2022-03-10 22:28:50 +00:00
|
|
|
<div style={{ textAlign: 'center', fontSize: '24px', fontWeight: 'bold', color: '#555555' }}>indicom</div>
|
2022-03-11 05:26:17 +00:00
|
|
|
<div style={{ fontSize: '12px', display: 'flex', borderBottom: '1px solid black', color: '#444444', paddingLeft: '16px', paddingRight: '16px' }}>
|
|
|
|
<span style={{ textAlign: 'center', width: '100%' }}>Communication for the Decentralized Web</span>
|
2022-03-10 22:28:50 +00:00
|
|
|
</div>
|
|
|
|
<Input size="large" onChange={(e) => setUsername(e.target.value)} placeholder="username" prefix={<UserOutlined />} style={{ marginTop: '16px' }} />
|
|
|
|
<Input.Password size="large" onChange={(e) => setPassword(e.target.value)} placeholder="password" prefix={<LockOutlined />} style={{ marginTop: '16px' }} />
|
2022-03-11 05:26:17 +00:00
|
|
|
<Button type="primary" onClick={onLogin} style={{ alignSelf: 'center', marginTop: '16px', width: '33%' }}>Sign In</Button>
|
2022-03-10 22:28:50 +00:00
|
|
|
</div>
|
|
|
|
<Button type="link" onClick={onCreate} style={{ marginTop: '4px', color: '#000044' }}>Create Account</Button>
|
|
|
|
</div>
|
2022-03-10 18:54:09 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|