-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
모임 피드 아이템 보완 #429
모임 피드 아이템 보완 #429
Conversation
backgroundColor: colors.black100, | ||
opacity: 0.6, | ||
color: colors.gray30, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
우리가 원래 썻던 방식대로 써도 colors 다 사용 가능하니까 그렇게 써주세여~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
역시 꼼꼼해.. 반영했어 !!
Deploying with
|
Latest commit: |
2ac0f96
|
Status: | ✅ Deploy successful! |
Preview URL: | https://378fd30a.sopt-crew-dev-legacy.pages.dev |
Branch Preview URL: | https://feat--411.sopt-crew-dev-legacy.pages.dev |
@@ -279,7 +279,7 @@ const stitches = createStitches({ | |||
170: '170%', | |||
H1: '24px', | |||
H2: '30px', | |||
H3: '18px', | |||
H3: '28px', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
최고!!!
@@ -0,0 +1,6 @@ | |||
export default function truncateText(text: string, limit: number) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
지연언니 진짜 너무 머쪄..!!! 🚀🚀 🥰 🥰
<Avatar | ||
key={`${thumbnail}-${index}`} | ||
src={thumbnail} | ||
alt="" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alt 혹시 깜빡한 거라면..!! 적어주면 더 좋게따!! 😄😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요거는 프로필 사진이라 alt를 일부러 비웠어! (참고)
한 가지 고려할 부분은 이미지 내용에 의미가 포함되어 있는지, 아니면 순전히 시각적인 장식을 위한 것인지 입니다. 그저 장식 요소라면 alt 속성에는 빈 문자열을 작성하거나 CSS background로 페이지에 포함시키는 편이 좋습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오오 그렇구나..!! 덕분에 배웠어 :) 😍🌷
<SContent>{truncateText(contents, 70)}</SContent> | ||
{images && ( | ||
<SThumbnailWrapper> | ||
<SThumbnail src={images[0]} alt="" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alt 혹시 깜빡한 거라면..!! 적어주면 더 좋게따!! 😄😄
그리구 오늘 재훈오빠한테서 스을쩍 들었는데 매직넘버를 지양하면 좋다구 그래서..! 40, 70, 0 같은 상수를 titleMaxLength, contentMaxLength, startIndex 같은 변수에 저장한 뒤에 사용해보면 어떨까아??? (@na-reum 맞나요 아빠,,)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alt는 위에서 언급한 거랑 동일한 이유라서 생략할게 ~~
상수는 아래처럼 반영하면 되겠다!
constants/index.ts (공통) -> START_INDEX
constants/feed.ts (피드) -> TITLE_MAX_LENGTH
, CONTENT_MAX_LENGTH
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
START_INDEX
도 이렇게만 적으면,
왜 start index를 image에 넣었는지 이유를 모르니 매직넘버를 확실하게 해결했다고 하기엔 어려울것 같아!
우리가 image 중에 첫번째를 thumbnail image로 사용하고 있으니까
THUMBNAIL_IMAGE_INDEX
로 명확하게 구분하는건 어때?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
웅웅 좋아 오빠가 말한 부분까지 반영해서 수정할게~!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
최고최고!!! 🚀🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
지 연 언 니 최 고 최 고 ! ! !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생했어~~ 👍
🚩 관련 이슈
📋 작업 내용
📌 PR Point
truncateText
를 활용해 주세요 😉<ProfileDefaultIcon />
을 추가했어요.📸 스크린샷