-
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.
feat(my-recruit): 우측 사이드바 및 dnd구현 (#23)
* feat(my-recruit): 우측 사이드바 및 dnd구현 * dnd animation
- Loading branch information
1 parent
1d72ffc
commit dc0d3f4
Showing
39 changed files
with
510 additions
and
79 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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
2 changes: 1 addition & 1 deletion
2
src/app/(sidebar)/my-recruit/components/NewRecruitDialogContent/InputField.tsx
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
2 changes: 1 addition & 1 deletion
2
src/app/(sidebar)/my-recruit/containers/ProgressingRecruitment.tsx
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,71 @@ | ||
import { Spacing } from '@/system/utils/Spacing'; | ||
import { TouchButton } from '@/components/TouchButton'; | ||
import { Icon } from '@/system/components'; | ||
import { color } from '@/system/token/color'; | ||
import { mockInfoList } from '../mock'; | ||
import { InfoCard } from '@/components/InfoCard'; | ||
import { | ||
DropdownMenu, | ||
DropdownMenuContent, | ||
DropdownMenuItem, | ||
DropdownMenuTrigger, | ||
} from '@/system/components/DropdownMenu/DropdownMenu'; | ||
import { Draggable } from '@/lib/dnd-kit/dnd-kit'; | ||
import { motion } from 'framer-motion'; | ||
|
||
interface Props { | ||
onCloseButtonClick: () => void; | ||
} | ||
|
||
const infoCategoryList = ['경험 정리', '자기소개서', '면접 질문']; | ||
|
||
export function RightSidebar({ onCloseButtonClick }: Props) { | ||
return ( | ||
<motion.div | ||
initial={{ width: 0 }} | ||
animate={{ width: 400 }} | ||
exit={{ width: 0 }} | ||
transition={{ duration: 0.4 }} | ||
className="w-400 relative"> | ||
<motion.div | ||
initial={{ x: 400, opacity: 0 }} | ||
animate={{ x: 0, opacity: 1 }} | ||
exit={{ x: 400, opacity: 0 }} | ||
transition={{ duration: 0.4 }} | ||
className="flex flex-col fixed top-[16px] bottom-[16px] right-[16px] p-20 bg-neutral-3 w-370 rounded-[20px] shadow-[0px_3px_8px_0px_rgba(0,0,0,0.24)]"> | ||
<TouchButton className="self-end" onClick={onCloseButtonClick}> | ||
<Icon name="close" size={24} color={color.neutral40} /> | ||
</TouchButton> | ||
<Spacing size={25} /> | ||
<div className="flex justify-between items-center"> | ||
<span className="text-neutral-95 text-heading2 font-semibold">내 정보 가져오기</span> | ||
<DropdownMenu> | ||
<DropdownMenuTrigger> | ||
<div className="flex gap-[4px] items-center"> | ||
<span className="text-label2 font-semibold">경험 정리</span> | ||
<Icon name="down" color={color.neutral40} /> | ||
</div> | ||
</DropdownMenuTrigger> | ||
<DropdownMenuContent> | ||
{infoCategoryList.map((item) => ( | ||
<DropdownMenuItem key={item}>{item}</DropdownMenuItem> | ||
))} | ||
</DropdownMenuContent> | ||
</DropdownMenu> | ||
</div> | ||
<Spacing size={4} /> | ||
<span className="text-label2 text-neutral-40">카드를 공고 폴더로 드래그해보세요</span> | ||
<Spacing size={24} /> | ||
<ul className="flex flex-col items-center gap-[8px] overflow-auto"> | ||
{mockInfoList.map((info) => ( | ||
<li key={info.id} className="w-full"> | ||
<Draggable id={info.id} dataForOverlay={info}> | ||
<InfoCard key={info.id} {...info} /> | ||
</Draggable> | ||
</li> | ||
))} | ||
</ul> | ||
</motion.div> | ||
</motion.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
17 changes: 12 additions & 5 deletions
17
src/app/(sidebar)/my-recruit/containers/components/Card/RowCard.tsx
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
2 changes: 1 addition & 1 deletion
2
src/app/(sidebar)/my-recruit/containers/components/DueDateDialog.tsx
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.