-
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 #9 from Dear-project/refactor/View-#8
Refactor/view #8
- Loading branch information
Showing
20 changed files
with
262 additions
and
109 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,8 @@ | ||
import Approve from "@/components/home/approve"; | ||
import React from "react"; | ||
|
||
const ApprovePage = () => { | ||
return <Approve />; | ||
}; | ||
|
||
export default ApprovePage; |
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,33 @@ | ||
"use client"; | ||
import Image from "next/image"; | ||
import * as S from "./style"; | ||
import MoreImage from "@/assets/img/home/ic_round-more-horiz.svg"; | ||
|
||
const ApproveTable = () => { | ||
return ( | ||
<> | ||
<S.TBody> | ||
<S.TR> | ||
<S.TD>신민호</S.TD> | ||
<S.TD>신민호</S.TD> | ||
<S.TD>신민호</S.TD> | ||
<Image src={MoreImage} alt="더보기" /> | ||
</S.TR> | ||
<S.TR> | ||
<S.TD>신민호</S.TD> | ||
<S.TD>신민호</S.TD> | ||
<S.TD>신민호</S.TD> | ||
<Image src={MoreImage} alt="더보기" /> | ||
</S.TR> | ||
<S.TR> | ||
<S.TD>신민호</S.TD> | ||
<S.TD>신민호</S.TD> | ||
<S.TD>신민호</S.TD> | ||
<Image src={MoreImage} alt="더보기" /> | ||
</S.TR> | ||
</S.TBody> | ||
</> | ||
); | ||
}; | ||
|
||
export default ApproveTable; |
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,36 @@ | ||
import styled from "styled-components"; | ||
|
||
export const TBody = styled.tbody` | ||
width: 100%; | ||
font-size: 14px; | ||
font-weight: 600; | ||
display: flex; | ||
flex-direction: column; | ||
white-space: normal; | ||
`; | ||
|
||
export const TR = styled.tr` | ||
width: 100%; | ||
height: 80px; | ||
display: flex; | ||
position: relative; | ||
align-items: center; | ||
justify-content: space-between; | ||
border-top: 1px solid rgb(217, 217, 217); | ||
border-bottom: 1px solid rgb(217, 217, 217); | ||
`; | ||
|
||
export const TD = styled.td` | ||
text-align: start; | ||
padding: 12px; | ||
vertical-align: middle; | ||
display: flex; | ||
justify-content: space-around; | ||
width: 14%; | ||
font-size: 16px; | ||
line-height: 20px; | ||
overflow-x: hidden; | ||
width: 115px; | ||
text-overflow: ellipsis; | ||
`; |
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,25 @@ | ||
"use client"; | ||
import { SearchBar } from "../searchBar/searchBar"; | ||
import Table from "../table"; | ||
import ApproveTable from "./approveTable"; | ||
import * as S from "./style"; | ||
import { APPROVE_MEMBER_TABLE_ITEM } from "@/constant/approve/approve.constants"; | ||
const Approve = () => { | ||
return ( | ||
<S.Main> | ||
<S.PendingMember> | ||
<S.SearchBox>{/* <SearchBar /> */}</S.SearchBox> | ||
<table> | ||
<Table constant={APPROVE_MEMBER_TABLE_ITEM} style={{ width: "75%" }} /> | ||
</table> | ||
<S.PendingMemberMain> | ||
<S.PendingMemberList> | ||
<ApproveTable /> | ||
</S.PendingMemberList> | ||
</S.PendingMemberMain> | ||
</S.PendingMember> | ||
</S.Main> | ||
); | ||
}; | ||
|
||
export default Approve; |
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,41 @@ | ||
import styled from "styled-components"; | ||
|
||
export const Main = styled.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
min-width: 600px; | ||
width: 100%; | ||
height: 100%; | ||
`; | ||
|
||
export const PendingMember = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
width: 95%; | ||
height: 100%; | ||
`; | ||
|
||
export const SearchBox = styled.div` | ||
display: flex; | ||
align-items: flex-end; | ||
width: 100%; | ||
height: 200px; | ||
`; | ||
|
||
export const PendingMemberMain = styled.div` | ||
display: flex; | ||
width: 100%; | ||
height: 100%; | ||
overflow-y: scroll; | ||
&::-webkit-scrollbar { | ||
display: none; | ||
} | ||
border-bottom: 1px rgb(217, 217, 217); | ||
`; | ||
|
||
export const PendingMemberList = styled.div` | ||
display: flex; | ||
width: 100%; | ||
height: 100%; | ||
`; |
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 |
---|---|---|
|
@@ -34,5 +34,4 @@ export const memberList = styled.div` | |
display: flex; | ||
width: 100%; | ||
height: 100%; | ||
`; | ||
`; |
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
Oops, something went wrong.