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

Use info logic/#82 #105

Merged
merged 41 commits into from
May 21, 2024
Merged

Use info logic/#82 #105

merged 41 commits into from
May 21, 2024

Conversation

seonghunYang
Copy link
Collaborator

@seonghunYang seonghunYang commented May 16, 2024

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

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

  • ๋กœ๊ทธ์•„์›ƒ, ํšŒ์›ํƒˆํ‡ด ๋กœ์ง ๊ตฌํ˜„
  • ๋ชจ๋ฐ”์ผ ๋ฒ„์ „ side-navigation ์ปดํฌ๋„ŒํŠธ ๊ตฌํ˜„
  • user-info-navigation ์ปดํฌ๋„ŒํŠธ๋ฅผ ๋ฐ˜์‘ํ˜•์œผ๋กœ ๋ณ€๊ฒฝ
  • ์‚ฌ์šฉ์ž ์ƒํƒœ(๋น„ํšŒ์›, ์„ฑ์ ํ‘œ ๋ฏธ์ž…๋ ฅ ๋“ฑ)์— ๋”ฐ๋ฅธ ๋ทฐ ๋ถ„๊ธฐ ์ฒ˜๋ฆฌ ๊ตฌํ˜„
  • ์ผ๋ถ€ ์ปดํฌ๋„ŒํŠธ๋ฅผ ์ ์ ˆํ•œ ๊ณ„์ธต์— ๋ฐฐ์น˜ํ•˜๋„๋ก ๋ฆฌํŒฉํ„ฐ๋ง

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

  • ์˜๋„ํ–ˆ๋Š”์ง€๋Š” ๋ชจ๋ฅด๊ฒ ์ง€๋งŒ, RSC๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๋ฒ„ํŠผ ํ•˜๋‚˜๋„ ์ปดํฌ๋„ŒํŠธ๋กœ ์ถ”์ƒํ™”ํ•˜์—ฌ ์„ ์–ธํ˜•์œผ๋กœ ๋งŒ๋“ค๊ฒŒ ๋˜๋Š” ๋ถ€๋ถ„์ด ์žˆ์Šต๋‹ˆ๋‹ค. ๋‹ค ์ข‹์€๋ฐ, ์ปดํฌ๋„ŒํŠธ์˜ ๋„ค์ด๋ฐ์ด ๊ฑฑ์ •์Šค๋Ÿฝ์Šต๋‹ˆ๋‹ค. ์ปดํฌ๋„ŒํŠธ ๋„ค์ด๋ฐ์—์„œ ์˜๋„๊ฐ€ ์ž˜ ๋“œ๋Ÿฌ๋‚˜์ง€ ์•Š๋Š” ๋ถ€๋ถ„์„ ๋ฐœ๊ฒฌํ•˜๋ฉด ์•Œ๋ ค์ฃผ์„ธ์š”.
  • ๊ธฐ์กด ๋ทฐ์—์„œ ํŽ˜์ด์ง€ ์ˆ˜์ค€์œผ๋กœ navigation๊ณผ side-nav์˜ ๊ณ„์ธต์„ ๋ณ€๊ฒฝํ–ˆ์Šต๋‹ˆ๋‹ค. ์ด๋Š” navigation์— ์‚ฌ์šฉ์ž ๊ด€๋ จ ๋กœ์ง์„ ํฌํ•จํ•˜๋Š” ์ปดํฌ๋„ŒํŠธ๋ฅผ ์ฐธ์กฐํ•ด์•ผ ํ•˜๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค.

๐Ÿ”Š ๋„์›€์ด ํ•„์š”ํ•œ ๋ถ€๋ถ„

  • ์‚ฌ์ด๋“œ ๋„ค๋น„๊ฒŒ์ด์…˜์— ํ‘œ์‹œ๋˜๋Š” ์‚ฌ์šฉ์ž ์ •๋ณด๊ฐ€ ์„ฑ์ ํ‘œ ๋ฏธ์ž…๋ ฅ ์ƒํƒœ์ผ ๋•Œ ์ ์ ˆํ•œ ๋ฌธ๊ตฌ๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. ์–ด๋–ค ๋ฌธ๊ตฌ๊ฐ€ ์ข‹์„๊นŒ์š”?

Copy link

Copy link

Copy link

@seonghunYang seonghunYang reopened this May 16, 2024
Copy link

Copy link

@yougyung
Copy link
Member

yougyung commented May 16, 2024

์ปดํฌ๋„ŒํŠธ ๋„ค์ด๋ฐ์—์„œ ์˜๋„๊ฐ€ ์ž˜ ๋“œ๋Ÿฌ๋‚˜์ง€ ์•Š๋Š” ๋ถ€๋ถ„์„ ๋ฐœ๊ฒฌํ•˜๋ฉด ์•Œ๋ ค์ฃผ์„ธ์š”.

์˜๋„๊ฐ€ ๋ชจํ˜ธํ•˜๋‹ค๊ณ  ๋Š๊ปด์ง„ ๋ถ€๋ถ„์€ ๋”ฐ๋กœ ์—†์—ˆ๋˜ ๊ฒƒ ๊ฐ™์•„์š”. ์ˆ˜๊ณ ํ•˜์…จ์Šต๋‹ˆ๋‹ค !

์‚ฌ์ด๋“œ ๋„ค๋น„๊ฒŒ์ด์…˜์— ํ‘œ์‹œ๋˜๋Š” ์‚ฌ์šฉ์ž ์ •๋ณด๊ฐ€ ์„ฑ์ ํ‘œ ๋ฏธ์ž…๋ ฅ ์ƒํƒœ์ผ ๋•Œ ์ ์ ˆํ•œ ๋ฌธ๊ตฌ๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. ์–ด๋–ค ๋ฌธ๊ตฌ๊ฐ€ ์ข‹์„๊นŒ์š”?

  name: '์†Œ์ค‘ํ•œ GUEST' 
  major: '์„ฑ์ ํ‘œ๋ฅผ ์ž…๋ ฅํ•˜๊ณ , ์กธ์—… ์—ฌ๋ถ€๋ฅผ ํ™•์ธํ•˜์„ธ์š”',
  name:  '๋ช…์ง€์ธ'
  major: '์„ฑ์ ํ‘œ๋ฅผ ์ž…๋ ฅํ•˜๊ณ , ์กธ์—… ์—ฌ๋ถ€๋ฅผ ํ™•์ธํ•˜์„ธ์š”',

<SheetTrigger className="h-6">
<HamburgerMenuIcon className="w-6 h-6 text-white" />;
</SheetTrigger>
<SheetContent className="z-3">
Copy link
Member

Choose a reason for hiding this comment

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

tailwind configํŒŒ์ผ์„ ๋ณด๋ฉด z-index์— ๋Œ€ํ•œ ์žฌ์ •์˜๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ํ•ด๋‹น style์†์„ฑ์œผ๋กœ ๊ต์ฒด๊ฐ€ ํ•„์š”ํ•  ๊ฒƒ ๊ฐ™์•„์š”.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

  • z-3์ด ํ•ด๋‹น ์žฌ์ •์˜๋ฅผ ๋ฐ˜์˜ํ•œ ๊ฒƒ ์•„๋‹Œ๊ฐ€์š”? ๋” ์„ค๋ช…ํ•ด์ฃผ์‹œ๊ฒ ์–ด์š”?

Copy link
Member

Choose a reason for hiding this comment

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

tailwind.config.ts์—์„œ ์•„๋ž˜ ์žฌ์ •์˜๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค

      zIndex: {
        1: '100', // upper layout, navigation bar, main page content
        2: '200', // upper content , main page graduation cap
        3: '300', // upper all
      },

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

์Œ, ๋ญ”๊ฐ€ ์ฐฉ์˜ค๊ฐ€ ์žˆ๋Š” ๊ฒƒ ๊ฐ™๋„ค์š”. tailwind.config.ts์—์„œ ๋ง์”€ํ•˜์‹  ๊ฒƒ ์ฒ˜๋Ÿผ z-index๋ฅผ ์žฌ์ •์˜ํ•˜๋ฉด, 'zIndex-1', 'zIndex-2'๋กœ ์‚ฌ์šฉํ•˜๋Š”๊ฒƒ์ด ์•„๋‹ˆ๋ผ, 'z-1', 'z-2โ€™๋กœ ์‚ฌ์šฉํ–ˆ์„ ๋•Œ ๋™์ž‘ํ•ฉ๋‹ˆ๋‹ค. ์žฌ์ •์˜ํ•˜์ง€ ์•Š์•˜์„ ๋•Œ๋Š” 'z-10', 'z-20'์ด๊ณ ์š”. ์„œ๋น„์Šค์—์„œ 'zIndex-1'์„ ์‚ฌ์šฉํ•˜์…จ๋‹ค๋ฉด, ์•„๋งˆ ๋™์ž‘ํ•˜์ง€ ์•Š์•˜์„ ๊ฒƒ์ž…๋‹ˆ๋‹ค. ํ™•์ธ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

Copy link
Member

@yougyung yougyung May 21, 2024

Choose a reason for hiding this comment

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

ํ™•์ธํ•ด๋ดค๋Š”๋ฐ ์ง€๊ธˆ๊นŒ์ง€ ์ž˜๋ชป์ ์šฉ๋˜๊ณ  ์žˆ์—ˆ๋„ค์š” ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค ! z-index๊ด€๋ จ ์ˆ˜์ •์€ ์ผ๊ด„์ ์œผ๋กœ ์ œ๊ฐ€ ์ง„ํ–‰ํ• ๊ฒŒ์š”.

yougyung
yougyung previously approved these changes May 16, 2024
app/(sub-page)/components/side-navigation-bar.tsx Outdated Show resolved Hide resolved
Copy link
Member

@gahyuun gahyuun left a comment

Choose a reason for hiding this comment

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

๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค ์ปดํฌ๋„ŒํŠธ ๋„ค์ด๋ฐ์—์„œ ๋ชจํ˜ธํ•˜๋‹ค๊ณ  ๋Š๊ปด์ง„ ๋ถ€๋ถ„์€ ๋”ฑํžˆ ์—†์—ˆ๋˜ ๊ฒƒ ๊ฐ™์•„์š”
์„ฑ์ ํ‘œ ๋ฏธ์ž…๋ ฅ ๋ฌธ๊ตฌ๋Š” ์–ธ๋‹ˆ ์˜๊ฒฌ์ด ์ ์ ˆํ•ด๋ณด์ด๋„ค์š”!

app/ui/view/molecule/sheet/sheet.tsx Outdated Show resolved Hide resolved
app/(sub-page)/components/navigation-bar.tsx Show resolved Hide resolved
app/(sub-page)/my/page.tsx Outdated Show resolved Hide resolved
app/ui/user/user-info-navigator/user-delete-modal.tsx Outdated Show resolved Hide resolved
@seonghunYang
Copy link
Collaborator Author

์ปดํฌ๋„ŒํŠธ ๋„ค์ด๋ฐ์—์„œ ์˜๋„๊ฐ€ ์ž˜ ๋“œ๋Ÿฌ๋‚˜์ง€ ์•Š๋Š” ๋ถ€๋ถ„์„ ๋ฐœ๊ฒฌํ•˜๋ฉด ์•Œ๋ ค์ฃผ์„ธ์š”.

์˜๋„๊ฐ€ ๋ชจํ˜ธํ•˜๋‹ค๊ณ  ๋Š๊ปด์ง„ ๋ถ€๋ถ„์€ ๋”ฐ๋กœ ์—†์—ˆ๋˜ ๊ฒƒ ๊ฐ™์•„์š”. ์ˆ˜๊ณ ํ•˜์…จ์Šต๋‹ˆ๋‹ค !

์‚ฌ์ด๋“œ ๋„ค๋น„๊ฒŒ์ด์…˜์— ํ‘œ์‹œ๋˜๋Š” ์‚ฌ์šฉ์ž ์ •๋ณด๊ฐ€ ์„ฑ์ ํ‘œ ๋ฏธ์ž…๋ ฅ ์ƒํƒœ์ผ ๋•Œ ์ ์ ˆํ•œ ๋ฌธ๊ตฌ๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. ์–ด๋–ค ๋ฌธ๊ตฌ๊ฐ€ ์ข‹์„๊นŒ์š”?

  name: '์†Œ์ค‘ํ•œ GUEST' 
  major: '์„ฑ์ ํ‘œ๋ฅผ ์ž…๋ ฅํ•˜๊ณ , ์กธ์—… ์—ฌ๋ถ€๋ฅผ ํ™•์ธํ•˜์„ธ์š”',
  name:  '๋ช…์ง€์ธ'
  major: '์„ฑ์ ํ‘œ๋ฅผ ์ž…๋ ฅํ•˜๊ณ , ์กธ์—… ์—ฌ๋ถ€๋ฅผ ํ™•์ธํ•˜์„ธ์š”',

0405b87

Copy link

Copy link

Copy link

@seonghunYang seonghunYang merged commit ec223db into main May 21, 2024
3 checks passed
@seonghunYang seonghunYang deleted the use-info-logic/#82 branch May 21, 2024 09:57
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