-
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.
- Loading branch information
Showing
4 changed files
with
105 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
.admininfo { | ||
height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
text-align: center; | ||
margin: auto; | ||
width: 90%; | ||
} | ||
|
||
.message1 { | ||
margin-top: 12px; | ||
font-size: 24px; | ||
white-space: nowrap; | ||
} | ||
|
||
.message2 { | ||
margin-top: 12px; | ||
font-size: 18px; | ||
color: #808080; | ||
white-space: nowrap; | ||
} | ||
|
||
#password { | ||
border: 1px solid #808080; | ||
width: 50%; | ||
} | ||
|
||
.confirm-button2 { | ||
margin-top: 3%; | ||
margin-bottom: 5%; | ||
height: 50px; | ||
width: 50%; | ||
padding: 8px 16px; | ||
background-color: #808080; | ||
color: #ffffff; | ||
border: 2px solid #808080; | ||
font-size: 17px; | ||
font-weight: bold; | ||
cursor: pointer; | ||
white-space: nowrap; | ||
} | ||
|
||
|
||
.memberinfo h2 { | ||
font-weight: bold; | ||
} | ||
|
||
.content { | ||
font-weight: bold; | ||
padding-top: 30px; | ||
border-top: 2px solid #000; | ||
margin-top: 30px; | ||
} | ||
|
||
.password-options { | ||
display: flex; | ||
justify-content: space-between; | ||
margin-top: 25px; | ||
} | ||
|
||
.password-options p { | ||
font-size: 16px; | ||
color: #808080; | ||
white-space: nowrap; | ||
} |
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,34 @@ | ||
import { useEffect, useState } from "react"; | ||
import './isadmin.css'; | ||
import key from '../img/key.png'; | ||
|
||
function Isadmin(props) { | ||
let password = '1234'; | ||
let [입력값, 입력값변경] = useState(''); | ||
|
||
return ( | ||
<div className="admininfo"> | ||
<h2>비밀번호 재확인</h2> | ||
<div className="content"> | ||
<img src={key} alt="열쇠" width="50"></img> | ||
<form> | ||
<p className="message1">비밀번호 재확인</p> | ||
<p className="message2">회원님은 관리자전용 계정입니다.</p> | ||
<p className="message2">2차 비밀번호를 입력해주세요</p> | ||
<input type="password" id="password" name="password" required placeholder="비밀번호 입력" | ||
onChange={(e) => { 입력값변경(e.target.value) }} | ||
/> | ||
<div> | ||
<button type="submit" className="confirm-button2" | ||
onClick={()=>{ | ||
입력값 === password ? props.navigate("/adminpage") : alert('비밀번호가 틀렸습니다') | ||
}} | ||
>확인</button> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default Isadmin; |