HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
프로그래머스 프론트엔드 데브코스 2기
프로그래머스 프론트엔드 데브코스 2기
/
🏃🏻‍♂️
달리팀
/
🍉
1차 프로젝트 문서
/
칭찬하기 페이지 (TTaBong)

칭찬하기 페이지 (TTaBong)

페이지 TTaBongPage

  • page template 사용
  • BaseContentContainer (base component로 만들어 사용)
  • 칭찬 대상자 모달
    • notion image
  • 칭찬 대상자 인풋 (모달에서 사용자 클릭하면 이름 나타내기)
    • notion image
  • 칭찬 사유 (textarea or contentEditable div)
    • notion image
  • 사진 업로드
    • notion image
  • 라벨
    • notion image
  • 칭찬하기 버튼
    • notion image
 

API

칭찬 대상자 클릭시 getAllUsers 불러오기
칭찬하기 버튼 클릭시 createPost 작성
  • 해당 유저 JWTtoken 들고오기
  • channelId (62a19123d1b81239d875d20d) // 테스트 채널 아이디
  • title에 JSON.stringify로 아래 내용 넣기
    • receiver
    • content
    • labelItems
    • type ⇒ TTaBong or BigTTaBong
  • image

컴포넌트

page template

  • props
    • page ⇒ TTaBong

BaseContentContainer

  • height
    • 600px?

TTaBongReceiverContainer

  • TTaBongReceiverModal
    • 검색할 수 있는 input
    • 사용자 클릭할 수 있는 div
  • modal에서 pick 한 사용자 보여주기

TTaBongReasonContainer

  • textarea or contentEditable div

ImageUploadContainer

  • 이미지 넣기

LabelList

  • defaultLabel 클릭시 선택 Label로 바뀜

TTaBongButton

  • Button 활용