Skip to content

Conversation

@junjeeong
Copy link
Collaborator

Preview

SearchInput.mov

설명

  • 반응형 지원합니다
  • 검색어를 입력하면 url에 search라는 queryString이 들어가게끔 했습니다. -> 카드리스트를 불러올 때 SSR로 context.qeury.search에 접근하기 위함입니다!

@junjeeong junjeeong self-assigned this Nov 7, 2024
@junjeeong junjeeong linked an issue Nov 7, 2024 that may be closed by this pull request
Copy link
Collaborator

@venise5224 venise5224 left a comment

Choose a reason for hiding this comment

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

깔끔합니다요

return (
<form
onSubmit={handleSubmit}
className="flex gap-[8px] w-[1024px] h-[54px] items-center px-[16px] py-[15px] bg-gray-100 rounded-[10px] md:w-[704px] md:h-[54px] sm:w-[325px] sm:h-[43px] transition-all"
Copy link
Collaborator

Choose a reason for hiding this comment

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

혹시 민지님이 작업하신 Container (layout) 에 들어가는거면 w-full 로 해도되지않을까요?

Copy link
Collaborator Author

@junjeeong junjeeong Nov 8, 2024

Choose a reason for hiding this comment

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

저희는 특정 페이지에서만 쓰이긴 하지만 ui 컴포넌트는 다른 곳에서 금방 쓸 수 있도록 재사용성을 고려해서 만들어야 한다고 생각했습니다! 고로 부모 컴포넌트에 종속적으로 크기를 갖는 게 아닌 이 친구만의 고유한 width가 있어야 한다고 생각했습니다!

const [value, setValue] = useState("");

const handleChange = (e: ChangeEvent<HTMLInputElement>) => {
setValue(e.target.value);
Copy link
Collaborator

Choose a reason for hiding this comment

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

입력값을 받을때 debounce를 적용해봐도 좋을것같습니다 !

pages/index.tsx Outdated
<div className="flex justify-center items-center mt-[20px]">
<SearchInput />
</div>
);
Copy link
Collaborator

Choose a reason for hiding this comment

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

랜딩페이지 들어가면 충돌하지않을까요오?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

앟 이거는 삭제하겠습니다! 잘못 들어간 겁니다!

Copy link
Collaborator

@hongggyelim hongggyelim left a comment

Choose a reason for hiding this comment

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

수고하셨습니다

@junjeeong junjeeong merged commit fb7d430 into develop Nov 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SearchInput UI 구현

4 participants