Skip to content
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

Responsive component/#70 #71

Merged
merged 2 commits into from
Apr 9, 2024
Merged

Responsive component/#70 #71

merged 2 commits into from
Apr 9, 2024

Conversation

gahyuun
Copy link
Member

@gahyuun gahyuun commented Apr 7, 2024

๐Ÿ“Œ ์ž‘์—… ๋‚ด์šฉ

close #70

๊ตฌํ˜„ ๋‚ด์šฉ ๋ฐ ์ž‘์—… ํ–ˆ๋˜ ๋‚ด์—ญ

  • responsive component ๊ตฌํ˜„

๐Ÿค” ๊ณ ๋ฏผ ํ–ˆ๋˜ ๋ถ€๋ถ„

  • tailwind์ฒ˜๋Ÿผ breakpoint๋ฅผ sm,md,lg ๋“ฑ๋“ฑ์œผ๋กœ ๋‚˜๋ˆŒ๊นŒํ•˜๋‹ค๊ฐ€ ์‚ฌ์šฉํ•˜๋Š” ์‚ฌ๋žŒ์ด ์ž์œ ๋กญ๊ฒŒ ๊ตฌ๊ฐ„์„ ์ •ํ•˜๋Š” ๊ฒŒ ๋” ์œ ์—ฐํ•  ๊ฒƒ ๊ฐ™์•„์„œ minwidth๋ž‘ maxwidth๋ฅผ ์ง์ ‘ ํ• ๋‹นํ•˜๊ฒŒ ํ–ˆ์Šต๋‹ˆ๋‹ค
  • props๋ฅผ ํ†ตํ•ด ์ž์‹ ์ปดํฌ๋„ŒํŠธ๋ฅผ ๋ฐ›์œผ๋ ค๋‹ค๊ฐ€, props๋ณด๋‹ค children์œผ๋กœ ๋ฐ›๋Š” ๊ฒŒ ์ „ ๊ฐ€๋…์„ฑ์ด ๋” ์ข‹๋‹ค๊ณ  ์ƒ๊ฐํ•˜๋Š”๋ฐ ๋‹ค๋ฅธ ๋ถ„๋“ค์€ ์–ด๋–ป๊ฒŒ ์ƒ๊ฐํ•˜์‹œ๋‚˜์š”!?

@gahyuun gahyuun self-assigned this Apr 7, 2024
Copy link

github-actions bot commented Apr 7, 2024

@yougyung
Copy link
Member

yougyung commented Apr 7, 2024

์‚ฌ์šฉํ•˜๋Š” ์‚ฌ๋žŒ์ด ์ž์œ ๋กญ๊ฒŒ ๊ตฌ๊ฐ„์„ ์ •ํ•˜๋Š” ๊ฒŒ ๋” ์œ ์—ฐํ•  ๊ฒƒ ๊ฐ™์•„์„œ minwidth๋ž‘ maxwidth๋ฅผ ์ง์ ‘ ํ• ๋‹นํ•˜๊ฒŒ ํ–ˆ์Šต๋‹ˆ๋‹ค

mobile, PC ๋‘๊ฐ€์ง€ ๊ธฐ์ค€์œผ๋กœ ๋”ฑ ๋‚˜๋‰˜๋Š”๊ฒŒ ์•„๋‹ˆ๋‹ค๋ณด๋‹ˆ breakpoint๋ฅผ sm,md,lg ๋“ฑ๋“ฑ์œผ๋กœ ๋‚˜๋ˆ„๋Š” ๊ฒƒ์ด ์ •ํ˜•ํ™”ํ•˜๊ธฐ ์–ด๋ ค์šธ ์ˆ˜ ์žˆ๋‹ค๋Š” ์ƒ๊ฐ์ด ๋“ค์—ˆ๋Š”๋ฐ ์„ ํƒํ•ด์ฃผ์‹  ๊ตฌ์กฐ ์ข‹๋„ค์š”

props๋ฅผ ํ†ตํ•ด ์ž์‹ ์ปดํฌ๋„ŒํŠธ๋ฅผ ๋ฐ›์œผ๋ ค๋‹ค๊ฐ€, props๋ณด๋‹ค children์œผ๋กœ ๋ฐ›๋Š” ๊ฒŒ ์ „ ๊ฐ€๋…์„ฑ์ด ๋” ์ข‹๋‹ค๊ณ  ์ƒ๊ฐํ•˜๋Š”๋ฐ ๋‹ค๋ฅธ ๋ถ„๋“ค์€ ์–ด๋–ป๊ฒŒ ์ƒ๊ฐํ•˜์‹œ๋‚˜์š”!?

์ด์ „ ์Šคํ”„๋ฆฐํŠธ ๋…ผ์˜์—์„œ๋Š” sm,md,lg์— ๋”ฐ๋ผ์„œ breakpoint๋ฅผ ๋‚˜๋ˆ„๋Š” ๊ตฌ์กฐ๋ฅผ ๋จธ๋ฆฌ์— ๊ทธ๋ ค์„œ ๋ทฐํฌํŠธ์˜ ๋ฒ”์œ„์— ๋”ฐ๋ฅธ rendering์š”์†Œ๋ฅผ props๋กœ ๋ฐ›๋Š” ๋ฐฉํ–ฅ ๋– ์˜ฌ๋ ธ์—ˆ๋Š”๋ฐ, ์„ ํƒํ•ด์ฃผ์‹  ๊ตฌ์กฐ์—์„œ๋Š” children์œผ๋กœ ๋ฐ›์•„๋„ ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š”. ์ˆ˜๊ณ ๋งŽ์œผ์…จ์Šต๋‹ˆ๋‹ค ~!

ํ•œ ๊ฐ€์ง€ ์ถ”๊ฐ€์ ์œผ๋กœ ์ œ์•ˆํ•ด๋ณด๋ฉด, ํ˜„์žฌ number๋กœ ์ „๋‹ฌ๋ฐ›๋Š” minWidth, maxWidth ๋ฅผ type์œผ๋กœ ๋ถ„๋ฆฌํ•ด์„œ ํ†ต์ผ์„ฑ์žˆ๊ฒŒ ๊ด€๋ฆฌํ•˜๋Š” ๋ฐฉํ–ฅ๋„ ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š” ~ !

Copy link
Collaborator

@seonghunYang seonghunYang left a comment

Choose a reason for hiding this comment

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

  • ์ˆ˜๊ณ ํ•˜์…จ์Šต๋‹ˆ๋‹ค
  • ์ง€๊ธˆ ์œ ์Šค์ผ€์ด์Šค๋Š” ํ•ด๋‹น ์ปดํฌ๋„ŒํŠธ๋กœ ์ถฉ๋ถ„ํžˆ ์ปค๋ฒ„ํ•  ์ˆ˜ ์žˆ์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค
  • ์ถ”ํ›„์— ๋‹ค๋ฅธ ์œ ์Šค์ผ€์ด์Šค๊ฐ€ ์ƒ๊ธฐ๋ฉด ์ œ์•ˆ ์˜ฌ๋ฆฌ๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค

@gahyuun gahyuun merged commit 7445cff into main Apr 9, 2024
3 checks passed
@gahyuun gahyuun deleted the responsive-component/#70 branch April 9, 2024 12:09
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.

๋ฐ˜์‘ํ˜• ์ปดํฌ๋„ŒํŠธ ๊ตฌํ˜„
3 participants