Skip to content

Commit

Permalink
feat: 드롭박스 작업중
Browse files Browse the repository at this point in the history
  • Loading branch information
HongBoogie committed Feb 10, 2024
1 parent 72f3e04 commit 9bff573
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/component/ourteam/YearDropBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import styled from 'styled-components';
const yearList = new Array(dayjs().get('year') - 2022 + 1)
.fill(0)
.map((_, i) => 2022 + i);

export default function YearDropBox({ year, handleYearChange }) {
const handleChange = (event) => {
handleYearChange(event.target.value);
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion src/container/product/GenRegis.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,6 @@ const ModalButton = styled.button`
}
&:hover {
background-color: #8181f7;
background-color: grey;
}
`;
18 changes: 13 additions & 5 deletions src/page/ManageGenPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,10 @@ export default function ManageGenPage() {
<tbody>
<MemberBar>
<Cartegories type='first'>이름</Cartegories>
<Cartegories type='second'>역할 이름</Cartegories>
<Cartegories>기수</Cartegories>
<Cartegories type='second'>역할명</Cartegories>
<Cartegories type='third'>기수</Cartegories>
<Cartegories type='fourth'>파트명</Cartegories>
<Cartegories>이메일</Cartegories>
</MemberBar>
{getCurrentPageData().map((content) => (
<tr
Expand All @@ -202,6 +204,8 @@ export default function ManageGenPage() {
<td>{content.member}</td>
<td>{content.role}</td>
<td>{content.year}</td>
<td>{content.part}</td>
<td>{content.email}</td>
</tr>
))}
</tbody>
Expand Down Expand Up @@ -284,10 +288,14 @@ const Cartegories = styled.div`
position: absolute;
${(props) =>
props.type === 'first'
? 'left: 8rem; width: 220px;'
? 'left: 8rem; width: 90px;'
: props.type === 'second'
? 'left:18rem; width: 340px;'
: 'left: 35.7rem; width: 155px;'}
? 'left:13rem; width: 100px;'
: props.type === 'third'
? 'left: 18rem; width: 100px;'
: props.type === 'fourth'
? 'left: 22.5rem; width: 120px;'
: 'left: 28.5rem; width: 270px;'}
`;

const PaginationContainer = styled.div`
Expand Down

0 comments on commit 9bff573

Please sign in to comment.