-
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
feat: 가이드 페이지 구현 #134
feat: 가이드 페이지 구현 #134
Conversation
🔗 배포된 storybook 주소: https://65f015a4aed45406385006ee-suswxoaeut.chromatic.com/ |
🔗 배포된 storybook 주소: https://65f015a4aed45406385006ee-opanqpyawv.chromatic.com/ |
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을 지금봤네요..ㅠㅠ 고생했어요 해옹! 전 가이드 배너에 연결하는거 좋은 것 같아요 그리고 높이는 다 통일하면 좋지 않을까요...? 제기준 높이가 그렇게 중요해보이지 않음..!
return ( | ||
<div className={contentWrapper}> | ||
<div className={titleWrapper}> | ||
<Text weight="bold" color="yellow" style={{ fontSize: '12px' }}> |
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.
이거 caption3 사이즈 아닌가용?
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.
🦅👁️
<Text size="display1" weight="semiBold" color="sub" style={{ whiteSpace: 'pre-wrap', textAlign: 'center' }}> | ||
{description} | ||
</Text> |
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.
style을 className으로 추가해주면 더 좋을것 같아용
import { container, stepper, wrapper } from './stepper.css'; | ||
|
||
interface StepperProps { | ||
selectedStepper: string; |
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.
이 selectedStepper을 string으로 관리하는 이유가 있나요? 다른 곳 보면 parseInt를 하거나 밑에서 String으로 변환시키는 것 같은데 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.
이게 useTabMenu 훅이 string을 받고 있어서 저렇게 썼던 거 같아요!
number로 받게 하고, 사용처에서
const selectedStepper = parseInt(selectedTabMenu);
요렇게 묶는 방식으로 변경했슴다!
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.
진짜 앱 같네요.!
첫진입때 뜨는게 맞아보이는데, 로컬스토리지에 처음 방문하면 값을 저장해둬서 구분하는거 어떤가요?
그리고 배너에 연결하는거 굿굿
높이는 동일하면 좋아보입니다..🫠
<button | ||
className={isSelected ? stepper['active'] : stepper['default']} | ||
type="button" | ||
value={String(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.
value는 뽑아서 쓸 때 아마 string으로 변환될거에요
🔗 배포된 storybook 주소: https://65f015a4aed45406385006ee-qtfmzhggsw.chromatic.com/ |
@Leejin-Yang |
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.
localStorage key값은 딱히 컨벤션 안정한듯?! 고생했어요!
Issue
✨ 구현한 기능
가이드 페이지를 구현하였습니다.
왕펑이 만든 useMenu custom hook 재사용했슴니당.
최상단에 있는 bar 이름은 material-ui에 있는 stepper의 이름을 참고했습니다!
📢 논의하고 싶은 내용
1. 이거 연결을 어디다가 할까요?
보통 홈페이지에 첫 진입하면 뜨지 않아요...?????
![스크린샷 2024-05-22 오후 4 42 18](https://private-user-images.githubusercontent.com/80464961/332705676-536481c9-9ca9-427f-8f0b-199c3082c566.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NTc2ODQsIm5iZiI6MTczOTQ1NzM4NCwicGF0aCI6Ii84MDQ2NDk2MS8zMzI3MDU2NzYtNTM2NDgxYzktOWNhOS00MjdmLThmMGItMTk5YzMwODJjNTY2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE0MzYyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNhOTI3OGQzN2FjMTA4YWE0MDA5MjJkOWFhNTc5MWU3YzM2MjQ5NThkODljN2Y3M2VjMzMyOTAxY2JiZGQwOTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.xt0OLlFKufCtc8DvNh1u9b4OlS4EpkzbimBknY-T9Og)
일단은 가이드 배너에 연결시켜놨습니다!
(요기에,,,!)
2. 높이
피그마 보면, 각 step마다 글자와 이미지 사이의 높이가 다르더라구요!
이거를 어떻게 하죵...?
(지금은 세 화면 다 높이 똑같음)
젤 쉬운 방법은 props로 높이를 받는건데, 뭔가 부자연스러운 느낌이라....
다른 방법 아시는 분 있나용?!?!
🎸 기타
x
⏰ 일정