Skip to content

Conversation

@42sungwook
Copy link
Contributor

@42sungwook 42sungwook commented Oct 23, 2023

Summary

이니셜을 표기해주는 Avatar를 제작했습니다

Describe your changes

  • 로딩, 사진 에러일 때 이니셜 표기되는 아바타를 불러오도록 했습니다 (내 정보 header 제외)
  • 랜덤한 색상을 string 기준으로 정하게 만들었습니다 (아예 랜덤한 색상을 고르면 유저마다 색을 고유하게 어떻게 지정해줄 지 감이 안잡히네요 ㅋ..)
  • 색을 결정할 때 밝기, 범위도 정할 수 있게 하였습니다. light모드일 때 어두운 색상, dark모드일 때 밝은 색상을 가져오게 설정했어요.
  • 이니셜은 intraId 앞 두글자로 했습니다. 혹시나 실제 이름을 기준으로 하고싶으면 api에 추가해야될 것 같아요.
  • fontSize도 width처럼 size별로 지정해줬습니다
스크린샷 2023-10-23 오후 2 30 07 스크린샷 2023-10-23 오후 2 29 48

Issue number and link

@42sungwook 42sungwook linked an issue Oct 23, 2023 that may be closed by this pull request
@42sungwook 42sungwook changed the title [eat: AvatarInitials 추가 [Feat] AvatarInitials 제작 Oct 23, 2023
@42sungwook 42sungwook self-assigned this Oct 23, 2023
@42sungwook 42sungwook requested a review from yoopark October 23, 2023 05:42
Copy link
Contributor

@yoopark yoopark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

42 특성 상 이름보다 닉네임을 더 많이 부르니 닉네임 앞 두 글자가 더 좋은 선택인 듯합니다 :) 수고하셨습니다 👍

@42sungwook
Copy link
Contributor Author

추가했습니다!

@42sungwook 42sungwook requested a review from yoopark October 23, 2023 10:57
@42sungwook 42sungwook merged commit 9690699 into develop Oct 23, 2023
@42sungwook 42sungwook deleted the feat/avatar branch October 23, 2023 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

나와비교 intra사진 없는사람끼리 비교

3 participants