changed sign , added semantic-ui
This commit is contained in:
parent
1ee657e2eb
commit
bc03615267
@ -33,6 +33,7 @@
|
|||||||
"react": "^15.5.4",
|
"react": "^15.5.4",
|
||||||
"react-dom": "15.5.4",
|
"react-dom": "15.5.4",
|
||||||
"react-router-dom": "^4.1.1",
|
"react-router-dom": "^4.1.1",
|
||||||
"react-tap-event-plugin": "^2.0.1"
|
"react-tap-event-plugin": "^2.0.1",
|
||||||
|
"semantic-ui-react": "^0.70.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import *as React from 'react'
|
import *as React from 'react'
|
||||||
import {
|
import {
|
||||||
Icon, Label, Input,
|
Icon, Label, Input, InputOnChangeData,
|
||||||
Select, Button, Header, Modal
|
Select, Button, Header, Modal
|
||||||
} from 'semantic-ui-react'
|
} from 'semantic-ui-react'
|
||||||
|
|
||||||
@ -15,32 +15,57 @@ export class SignIn extends React.Component<any, any> {
|
|||||||
constructor(props: any, context: any) {
|
constructor(props: any, context: any) {
|
||||||
super(props, context);
|
super(props, context);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
forgotPopup: false,
|
forgotPopup: false,
|
||||||
|
sendComPopup: false,
|
||||||
|
email: '',
|
||||||
|
pass: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
forgotPopupOpen = () => this.setState({ forgotPopup: true });
|
forgotPopupOpen = () => this.setState({ forgotPopup: true });
|
||||||
forgotPopupClose = () => this.setState({ forgotPopup: false });
|
PopupClose = () => this.setState({ forgotPopup: false, sendComPopup: false });
|
||||||
|
sendComOpen = () => {
|
||||||
|
this.setState({
|
||||||
|
forgotPopup: false,
|
||||||
|
sendComPopup: true,
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
onSignIn = () => {
|
||||||
|
console.log(this.state);
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Label> Email </Label>
|
|
||||||
<Input placeholder='Email' />
|
<Input label='Email ' placeholder='Email' onChange={
|
||||||
|
(event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
|
||||||
|
this.setState({ email: data.value });
|
||||||
|
}} />
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<Label> Password </Label>
|
<Input label='Password ' placeholder='Password' type='password' onChange={
|
||||||
<Input placeholder='Password' type='password' />
|
(event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
|
||||||
|
this.setState({ pass: data.value });
|
||||||
|
}} />
|
||||||
<br />
|
<br />
|
||||||
<Button onClick={this.forgotPopupOpen}>Forgot Password</Button>
|
<Button onClick={this.forgotPopupOpen}>Forgot Password</Button>
|
||||||
<Modal size='small' open={this.state.forgotPopup} onClose={this.forgotPopupClose}>
|
<br />
|
||||||
|
|
||||||
|
<Button onClick={this.onSignIn}> Sign In </Button>
|
||||||
|
<Button href='/#/test2'> Sign Up </Button>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Modal size='small' open={this.state.forgotPopup} onClose={this.PopupClose}>
|
||||||
<Modal.Header>Change your password Enter email address.</Modal.Header>
|
<Modal.Header>Change your password Enter email address.</Modal.Header>
|
||||||
<Modal.Content >
|
<Modal.Content >
|
||||||
<Label> Email </Label>
|
<Label> Email </Label>
|
||||||
@ -48,16 +73,25 @@ forgotPopupOpen = () => this.setState({ forgotPopup: true });
|
|||||||
|
|
||||||
</Modal.Content>
|
</Modal.Content>
|
||||||
<Modal.Actions>
|
<Modal.Actions>
|
||||||
<Button basic color='blue' > Submit </Button>
|
<Button onClick={this.sendComOpen} basic color='blue' > Submit </Button>
|
||||||
<Button onClick={this.forgotPopupClose}> Cancel </Button>
|
<Button onClick={this.PopupClose}> Cancel </Button>
|
||||||
|
</Modal.Actions>
|
||||||
|
</Modal>
|
||||||
|
|
||||||
|
<Modal size='small' open={this.state.sendComPopup} onClose={this.PopupClose}>
|
||||||
|
<Modal.Header>Send Complete</Modal.Header>
|
||||||
|
<Modal.Content>
|
||||||
|
<Modal.Description>
|
||||||
|
<Header>비밀번호 변경이 신청 되었습니다.</Header>
|
||||||
|
<p>수신하신 메일의 주소에서 비밀번호 변경을 완료 하시기 바랍니다.</p>
|
||||||
|
</Modal.Description>
|
||||||
|
</Modal.Content>
|
||||||
|
<Modal.Actions>
|
||||||
|
<Button onClick={this.PopupClose}> 확인 </Button>
|
||||||
</Modal.Actions>
|
</Modal.Actions>
|
||||||
</Modal>
|
</Modal>
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<Button> Sign In </Button>
|
|
||||||
<Button href='/#/test2'> Sign Up </Button>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import *as React from 'react'
|
import *as React from 'react'
|
||||||
import {
|
import {
|
||||||
Icon, Label, Input,
|
Icon, Label, Input, InputOnChangeData,
|
||||||
Select, Button
|
Select, Button, Dropdown
|
||||||
} from 'semantic-ui-react'
|
} from 'semantic-ui-react'
|
||||||
|
|
||||||
|
|
||||||
@ -20,6 +20,25 @@ export class SignUp extends React.Component<any, any> {
|
|||||||
constructor(props: any, context: any) {
|
constructor(props: any, context: any) {
|
||||||
super(props, context);
|
super(props, context);
|
||||||
|
|
||||||
|
this.state = {
|
||||||
|
email: '',
|
||||||
|
name: '',
|
||||||
|
pass: '',
|
||||||
|
passCon: '',
|
||||||
|
company: '',
|
||||||
|
phone: '',
|
||||||
|
country: '',
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
onSubmit = () => {
|
||||||
|
console.log(this.state)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
onChange = (event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -29,31 +48,45 @@ export class SignUp extends React.Component<any, any> {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Label> Email </Label>
|
|
||||||
<Input placeholder='Email' />
|
<Input label='Email ' value={this.state.email} placeholder='Email' onChange={
|
||||||
<br/>
|
(event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
|
||||||
<Label> User Name </Label>
|
this.setState({ email: data.value });
|
||||||
<Input placeholder='Name' />
|
}} />
|
||||||
<br/>
|
<br />
|
||||||
<Label> Password </Label>
|
|
||||||
<Input placeholder='Password' type='password' />
|
<Input label='User Name ' placeholder='Name' onChange={(event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
|
||||||
<br/>
|
this.setState({ name: data.value });
|
||||||
<Label> Password Confirm </Label>
|
}} />
|
||||||
<Input placeholder='Password Confirm' type='password' />
|
<br />
|
||||||
<br/>
|
|
||||||
<Label> Company Name </Label>
|
<Input label='Password ' placeholder='Password' type='password' onChange={(event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
|
||||||
<Input placeholder='Company' />
|
this.setState({ pass: data.value });
|
||||||
<br/>
|
}} />
|
||||||
<Label> Phone </Label>
|
<br />
|
||||||
<Select placeholder='Select your country' options={options} />
|
|
||||||
<Input placeholder='Phone' />
|
<Input label='Password Confirm ' placeholder='Password Confirm' type='password' onChange={(event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
|
||||||
<br/>
|
this.setState({ passCon: data.value });
|
||||||
<Button>
|
}} />
|
||||||
Sign Up
|
<br />
|
||||||
</Button>
|
|
||||||
<Button>
|
<Input label='Company Name ' placeholder='Company' onChange={(event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
|
||||||
Cancel
|
this.setState({ company: data.value });
|
||||||
</Button>
|
}} />
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<Input >
|
||||||
|
<Label> Phone </Label>
|
||||||
|
<Select value={this.state.country} placeholder='Select your country' options={options} onChange={(event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
|
||||||
|
this.setState({ country: data.value });
|
||||||
|
}} />
|
||||||
|
<Input placeholder='phone' onChange={(event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
|
||||||
|
this.setState({ phone: data.value });
|
||||||
|
}} />
|
||||||
|
</Input>
|
||||||
|
<br />
|
||||||
|
<Button onClick={this.onSubmit}> Sign Up </Button>
|
||||||
|
<Button> Cancel </Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user