-
indicom
-
-
Communication for the Decentralized Web
+
+
+
+
- actions.setUsername(e.target.value)} value={state.username} placeholder="username" prefix={} style={{ marginTop: '16px' }} />
- actions.setPassword(e.target.value)} value={state.password} placeholder="password" prefix={} style={{ marginTop: '16px' }} />
- actions.setConfirmed(e.target.value)} value={state.confirmed} placeholder="password" prefix={} style={{ marginTop: '16px' }} />
-
+ }
+ onChange={(e) => actions.setUsername(e.target.value)} value={state.username}
+ addonAfter={state.conflict} />
+ }
+ onChange={(e) => actions.setPassword(e.target.value)} value={state.password} />
+ }
+ onChange={(e) => actions.setConfirmed(e.target.value)} value={state.confirmed} />
+ actions.onCreate()} disabled={actions.isDisabled()}>
+ Create Account
+
-
-
+
actions.onLogin()}>Account Sign In
+
)
}
diff --git a/net/web/src/Create/Create.styled.js b/net/web/src/Create/Create.styled.js
new file mode 100644
index 00000000..d8da4af3
--- /dev/null
+++ b/net/web/src/Create/Create.styled.js
@@ -0,0 +1,61 @@
+import { Input, Button } from 'antd';
+import styled from 'styled-components';
+
+export const CreateWrapper = styled.div`
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ width: 100%;
+
+ .container {
+ background-color: #ffffff;
+ display: flex;
+ flex-direction: column;
+ padding: 16px;
+ border-radius: 4px;
+ max-width: 500px;
+ width: 50%;
+ }
+
+ .header {
+ text-align: center;
+ font-size: 2em;
+ font-weight: bold;
+ color: #555555
+ }
+
+ .subheader {
+ font-size: 0.8em;
+ display: flex;
+ border-bottom: 1px solid black;
+ color: #444444
+ padding-left: 16px
+ padding-right: 16px;
+ }
+
+ .subheader-text {
+ text-align: center;
+ width: 100%;
+ }
+
+`;
+
+export const CreateInput = styled(Input)`
+ margin-top: 16px;
+`;
+
+export const CreatePassword = styled(Input.Password)`
+ margin-top: 16px;
+`;
+
+export const CreateEnter = styled(Button)`
+ align-self: center;
+ margin-top: 16px;
+ min-width: 128px;
+ width: 33%;
+`;
+
+export const CreateLogin = styled(Button)`
+ margin-top: 4px;
+`;
diff --git a/net/web/src/Login/Login.jsx b/net/web/src/Login/Login.jsx
index 2be413eb..637c9bd8 100644
--- a/net/web/src/Login/Login.jsx
+++ b/net/web/src/Login/Login.jsx
@@ -6,7 +6,6 @@ import { useLogin } from './useLogin.hook';
import { LoginWrapper, LoginInput, LoginPassword, LoginCreate, LoginEnter } from './Login.styled';
export function Login(props) {
-console.log(props)
const { state, actions } = useLogin()