-
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 #28 from Fastcampus-Youcandoit/feature/#3
feat: wiki 레이아웃 작업
- Loading branch information
Showing
7 changed files
with
81 additions
and
93 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,73 @@ | ||
import { useState } from "react"; | ||
import styled from "styled-components"; | ||
import writeIcon from "../../assets/icons/wiki_icon/wiki_write_icon.png"; | ||
|
||
const WikiContentBox = styled.div` | ||
width: 75vw; | ||
font-family: "NotoSansKR-Regular"; | ||
`; | ||
|
||
const WikiHeader = styled.div` | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
margin-top: 25px; | ||
`; | ||
|
||
const WikiMainText = styled.span` | ||
font-size: 25px; | ||
font-family: "NotoSansKR-bold"; | ||
`; | ||
|
||
const WriteIcon = styled.img` | ||
width: 2.5rem; | ||
height: 2.5rem; | ||
`; | ||
|
||
const WikiContent = styled.div` | ||
width: 100%; | ||
height: 70vh; | ||
border: 1px solid #d2d2d2; | ||
border-radius: 5px; | ||
background-color: #f6f7f9; | ||
margin-top: 10px; | ||
align-items: center; | ||
display: flex; | ||
justify-content: center; | ||
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5); | ||
`; | ||
|
||
const WikiFooter = styled.div` | ||
margin-top: 10px; | ||
`; | ||
|
||
const ModificationDate = styled.span` | ||
font-size: 15px; | ||
`; | ||
|
||
const WikiComponent = () => { | ||
const [WikiMainTexts] = useState([ | ||
"회사내규", | ||
"팀 소개", | ||
"조직도", | ||
"진행중인 프로젝트", | ||
"예정된 프로젝트", | ||
"완료된 프로젝트", | ||
"신입사원 필독서", | ||
"온보딩 주제", | ||
]); | ||
return ( | ||
<WikiContentBox> | ||
<WikiHeader> | ||
<WikiMainText>{WikiMainTexts[0]}</WikiMainText> | ||
<WriteIcon src={writeIcon} alt="글작성 아이콘" /> | ||
</WikiHeader> | ||
<WikiContent>View</WikiContent> | ||
<WikiFooter> | ||
<ModificationDate>최종 수정일 : </ModificationDate> | ||
</WikiFooter> | ||
</WikiContentBox> | ||
); | ||
}; | ||
|
||
export default WikiComponent; |
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,5 +1,7 @@ | ||
import WikiComponent from "../WikiComponent"; | ||
|
||
const CompanyRules = () => { | ||
return <div>회사내규 내용</div>; | ||
return <WikiComponent />; | ||
}; | ||
|
||
export default CompanyRules; |
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