-
Notifications
You must be signed in to change notification settings - Fork 4
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 #37 from GDSC-DGU/feature/project-page
[✨Feature] Project Feedback 반영, 모션 라이브러리 적용
- Loading branch information
Showing
25 changed files
with
1,105 additions
and
175 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.
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
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,46 @@ | ||
'use client'; | ||
|
||
import { ProjectMemberData } from '@/interfaces/project/projectMemberData'; | ||
import ToggleIcon from '@/svg/icons/project/toggleIcon.svg'; | ||
import ProjectMember from './ProjectMember'; | ||
import { useState } from 'react'; | ||
import { toggle } from '@/utils/project/toggle'; | ||
|
||
/** | ||
* @description | ||
* 프로젝트 상세 페이지 팀 정보 토글 컴포넌트 | ||
* @component ProjectToggle | ||
* @returns {JSX.Element} ProjectToggle | ||
* @since 2024.04.16 | ||
*/ | ||
/** | ||
* Renders the project toggle component for the project section. | ||
* @returns The rendered project toggle component. | ||
*/ | ||
|
||
const ProjectToggle = ({ teamData }: { teamData: ProjectMemberData[] }) => { | ||
const [isOpen, setIsOpen] = useState(false); | ||
const scope = toggle(isOpen); | ||
|
||
return ( | ||
<section ref={scope}> | ||
<div | ||
onClick={() => setIsOpen(!isOpen)} | ||
className="w-full flex flex-row justify-between items-center mb-8 px-2 pb-3 border-b border-solid border-mono_700" | ||
> | ||
<div className="H4">Team</div> | ||
<button className="toggle-arrow"> | ||
<ToggleIcon /> | ||
</button> | ||
</div> | ||
<div className="toggle-menu-box h-0 w-full grid min-[960px]:grid-cols-2 gap-8"> | ||
{teamData.length > 0 && | ||
teamData.map((member) => ( | ||
<ProjectMember key={member?.id} member={member} /> | ||
))} | ||
</div> | ||
</section> | ||
); | ||
}; | ||
|
||
export default ProjectToggle; |
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.