-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[client] / #11,13,14,15 / Implement Mypage Modal
- Loading branch information
배채겸
authored and
배채겸
committed
Nov 17, 2020
1 parent
21acd02
commit fbfb1a5
Showing
8 changed files
with
198 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
.modal_page { | ||
display: flex; | ||
justify-content: center; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background: rgba(0, 0, 0, 0.6); | ||
z-index: 9999; | ||
} | ||
.modal_frame { | ||
/* margin: 200px 0; */ | ||
border: 2px solid #937666; | ||
/* box-sizing: border-box; */ | ||
box-shadow: 5px 5px 4px 5px rgba(0, 0, 0, 0.25); | ||
border-radius: 10px; | ||
background: #fff; | ||
padding: 50px; | ||
text-align: center; | ||
line-height: 50px; | ||
overflow: hidden; | ||
height: fit-content; | ||
width: auto; | ||
} | ||
|
||
.empty_modal_close_btn { | ||
vertical-align: middle; | ||
background: 0; | ||
background-color: #e9ad17; | ||
border-radius: 3px; | ||
color: #fff !important; | ||
text-shadow: none; | ||
border: 1px solid transparent; | ||
width: 30%; | ||
} | ||
|
||
.editinfo_email { | ||
float: left; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* eslint-disable */ | ||
import React from "react"; | ||
import './EditInfoModal.css' | ||
|
||
export default class EditInfoModal extends React.Component { | ||
|
||
handleInputValue = (key) => (e) => { | ||
this.setState({ [key]: e.target.value, incorrectInfo:false }); | ||
}; | ||
|
||
render() { | ||
{console.log('프롭스 뱉어라',this.props)} | ||
if (!this.props.show) { | ||
return null | ||
} | ||
|
||
|
||
|
||
return (<div className="modal_page"> | ||
<div className="modal_frame"> | ||
<div className="modal-main"> | ||
|
||
<div className="general_login_form"> | ||
<div className="field"> | ||
<div className="editinfo_email">이메일</div> | ||
<input className="input_email" type="email" onChange={this.handleInputValue("email")}></input> | ||
</div> | ||
<div className="field"> | ||
<div className="editinfo_label">패스워드</div> | ||
<input className="input_password" type="password" onChange={this.handleInputValue("password")}></input> | ||
</div> | ||
</div> | ||
|
||
<button className="empty_modal_close_btn" onClick={() => { this.props.onClose() }}> | ||
닫기 | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.modal_page { | ||
display: flex; | ||
justify-content: center; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background: rgba(0, 0, 0, 0.6); | ||
z-index: 9999; | ||
} | ||
.modal_frame { | ||
margin: 400px 0; | ||
border: 2px solid #937666; | ||
box-sizing: border-box; | ||
box-shadow: 5px 5px 4px 5px rgba(0, 0, 0, 0.25); | ||
border-radius: 10px; | ||
background: #fff; | ||
padding: 50px; | ||
text-align: center; | ||
line-height: 50px; | ||
} | ||
|
||
.empty_modal_close_btn { | ||
vertical-align: middle; | ||
background: 0; | ||
background-color: #e9ad17; | ||
border-radius: 3px; | ||
color: #fff !important; | ||
text-shadow: none; | ||
border: 1px solid transparent; | ||
width: 30%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* eslint-disable */ | ||
import React from "react"; | ||
import './EditInfoPasswordModal.css' | ||
|
||
export default class EditInfoPasswordModal extends React.Component { | ||
constructor(props) { | ||
super(props) | ||
this.state = { | ||
password : '' | ||
} | ||
} | ||
|
||
|
||
|
||
render() { | ||
{console.log('프롭스 뱉어라',this.props)} | ||
if (!this.props.show) { | ||
return null | ||
} | ||
return (<div className="modal_page"> | ||
<div className="modal_frame"> | ||
<div className="modal-main"> | ||
<div>{this.props.children}</div> | ||
<input type="password" /> | ||
<button className="empty_modal_close_btn" onClick={() => { this.props.onClose(), this.props.onShow() }}> | ||
닫기 | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters