Skip to content

[Feat]: Survey 컴포넌트 제작#62

Merged
kwonsaebom merged 12 commits intodevelopfrom
feat/#60/survey
Jul 9, 2025
Merged

[Feat]: Survey 컴포넌트 제작#62
kwonsaebom merged 12 commits intodevelopfrom
feat/#60/survey

Conversation

@kwonsaebom
Copy link
Copy Markdown
Contributor

💡 Summary

close #60

✅ Tasks

  • Survey 컴포넌트 제작
  • SurveyItem 컴포넌트 제작

👀 To Reviewer

아래꺼 넣고 테스트 해주세염 🤗

// home.css.ts
import { style } from '@vanilla-extract/css';

export const homeStyle = style({
  backgroundColor: 'black',
  height: '100vh',
});
// home.ts
import { homeStyle } from '@/page/home/home.css';
import { Survey } from '@/page/signup/component/Survey/Survey';

const Home = () => {
  return (
    <div className={homeStyle}>
      <Survey />
    </div>
  );
};

export default Home;

📸 Screenshot

image

@kwonsaebom kwonsaebom self-assigned this Jul 8, 2025
@kwonsaebom kwonsaebom linked an issue Jul 8, 2025 that may be closed by this pull request
2 tasks
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 8, 2025

빌드 결과

빌드 실패 😵

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 8, 2025

🎨 스토리북 배포 완료!

👉 스토리북 미리보기

변경된 컴포넌트의 디자인을 확인해주세요.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 8, 2025

빌드 결과

빌드 성공 🎉

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 8, 2025

🎨 스토리북 배포 완료!

👉 스토리북 미리보기

변경된 컴포넌트의 디자인을 확인해주세요.

Copy link
Copy Markdown
Contributor

@Leeyoonji23 Leeyoonji23 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다! 코멘트 몇 개만 확인해주세용!~

그리고 현재 로직에 응답에 대한 유효성 검사가 없는 것 같아서, 하나라도 응답하지 않았으면 제출 버튼을 비활성화해야할 것 같은데, 관련해서 논의사항이 있었으면 추가해주시는게 좋을 것 같고 없다면 한 번 여쭤보시는 게 좋을 것 같습니다!

<div className={surveyWrapper}>
{questionList.map((question) => (
<div key={question.id} className={surveyContainer}>
<p className={surveyTitle}>{question.content}</p>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

p3) 시맨틱 태그 활용 좋습니다!
다만, 질문에 대한 제목이니만큼 p 태그 말고 h3...이나 header 관련 태그는 어떨까요?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

12d92ad

좋은 의견 감사합니다 ! 수정했습니다 !!


const SurveyItem = ({ item, isChecked, onClick }: itemProps) => {
return (
<div className={itemContainer} onClick={onClick}>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

p3) div에 직접 onClick을 쓰면 접근성면에서 부족한 점이 없지않아...있기 때문에 button 이나 label 태그 써주시면 좋을 것 같아요!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

bb2e926

리뷰 주신 방향으로 수정했습니다 !! 👍🏻 👍🏻

Comment on lines +19 to +23
{isChecked ? (
<IcRadioChecked className={checkedIcon} />
) : (
<IcRadioDefault className={defaultIcon} />
)}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

p2)

<IcRadioChecked className={isChecked ? checkedIcon : defaultIcon} />

요롷게 한 줄로 처리할 수 있을 것 같아용

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

23f2264

체크된 부분이랑 체크 안된 부분이랑 아이콘이 아예 달라서 요렇게 수정해보아뜹니다 ..
확실히 더 깔끔해진 것 같은데 어떤가요 ?!! 🤩

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

굳드.

) : (
<IcRadioDefault className={defaultIcon} />
)}
<p className={itemText}>{item.content}</p>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

p3) 리스트 항목 안에서 쓰이는 정적인 텍스트라면 p보다는 span이 더 시멘틱 할 것 같습니당

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

6b9faef

수정헀습니다아

Copy link
Copy Markdown
Contributor

@shinjigu shinjigu left a comment

Choose a reason for hiding this comment

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

div → button/label 변경이나 시맨틱 태그 개선 제안들만 수정하면 되겠네요 !! 너무 수고하셨습니당 🐰🐰

@kwonsaebom
Copy link
Copy Markdown
Contributor Author

고생하셨습니다! 코멘트 몇 개만 확인해주세용!~

그리고 현재 로직에 응답에 대한 유효성 검사가 없는 것 같아서, 하나라도 응답하지 않았으면 제출 버튼을 비활성화해야할 것 같은데, 관련해서 논의사항이 있었으면 추가해주시는게 좋을 것 같고 없다면 한 번 여쭤보시는 게 좋을 것 같습니다!

(이름, 이메일, 생년월일, 개인정보 동의) 이렇게가 필수 정보고, 이 정보들을 입력했을 시에 제출 버튼이 비활성화 된다고 알고 있습니다 !
요 부분은 회원가입 뷰 작성할 때 로직 작성하겠습니다 !!

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 9, 2025

빌드 결과

빌드 성공 🎉

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 9, 2025

🎨 스토리북 배포 완료!

👉 스토리북 미리보기

변경된 컴포넌트의 디자인을 확인해주세요.

@kwonsaebom kwonsaebom merged commit 7657e1f into develop Jul 9, 2025
4 checks passed
@jisooooooooooo jisooooooooooo deleted the feat/#60/survey branch September 11, 2025 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: 맞춤 정보 컴포넌트 제작

4 participants