-
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.
Merge pull request #36 from LikeLionHGU/hwan_#32/글쓰기
Hwan #32/글쓰기
- Loading branch information
Showing
7 changed files
with
199 additions
and
79 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
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 |
---|---|---|
@@ -1,10 +1,62 @@ | ||
// 글 수정 페이지 | ||
import Write from "../../components/Write"; | ||
import { useState } from "react"; | ||
import Header from "../../components/Header"; | ||
import Write from "../../components/Write"; | ||
|
||
import "../../styles/update.css"; | ||
|
||
// user === 0 : 독자, 1: 참여자, 2: 관리자 | ||
export default function Update() { | ||
const [user, setUser] = useState(0); | ||
return ( | ||
<> | ||
<Write /> | ||
</> | ||
<div id="update-main-container"> | ||
<Header mode={3} /> | ||
<div id="update-write-container"> | ||
<div id="update-left"> | ||
{user === 0 ? ( | ||
<div id="update-left-contents"> | ||
<div>갈피 목록</div> | ||
<div> | ||
<div>1갈피..</div> | ||
</div> | ||
</div> | ||
) : user === 1 ? ( | ||
<div id="update-left-contents"> | ||
<div>미승인 사유</div> | ||
<div> | ||
<div>현재 승인 검토가 진행되지 않음</div> | ||
</div> | ||
</div> | ||
) : ( | ||
<div | ||
id="update-left-contents" | ||
style={{ background: "white" }} | ||
></div> | ||
)} | ||
</div> | ||
<div id="update-middle"> | ||
<Write /> | ||
</div> | ||
<div id="update-right"> | ||
{user === 0 ? ( | ||
<></> | ||
) : user === 1 ? ( | ||
<div id="update-right-contents"> | ||
<div>History</div> | ||
<div> | ||
<div>현재 승인 검토가 진행되지 않음</div> | ||
</div> | ||
</div> | ||
) : ( | ||
<div id="update-right-contents"> | ||
<div>History</div> | ||
<div> | ||
<div>현재 승인 검토가 진행되지 않음</div> | ||
</div> | ||
</div> | ||
)} | ||
</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,30 @@ | ||
#update-main-container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
#update-write-container { | ||
display: flex; | ||
|
||
width: 95%; | ||
} | ||
|
||
#update-left { | ||
flex: 1; | ||
min-width: 150px; | ||
} | ||
|
||
#update-left-contents { | ||
margin-right: 40px; | ||
background-color: #f7f7f7; | ||
} | ||
|
||
#update-middle { | ||
flex: 3; | ||
width: 100%; | ||
} | ||
|
||
#update-right { | ||
flex: 1; | ||
} |
Oops, something went wrong.