-
Notifications
You must be signed in to change notification settings - Fork 9
[이성] 멋쟁이 사자처럼 3번째 과제 제출 #10
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
base: 이성
Are you sure you want to change the base?
Conversation
soriSeong
commented
May 15, 2022



devHudi
left a comment
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.
지난주 과제 때 보다 훨씬 성장하신 것 같아요 👍
몇가지 수정하면 좋을 만한 점을 코멘트 달아드렸어요. 반영해주셔도 좋고, 참고만 해주셔도 좋습니다 😁
| <MediaCard /> | ||
| </CardContainer> | ||
|
|
||
| </> | ||
| ); |
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.
큰 의미가 없는 개행은 지워주는 것이 좋습니다 😎
| width: ${(props) => (props.width ? props.width : '48px')}; | ||
| height : ${(props) => (props.height ? props.height : '31px')}; | ||
| box-sizing: border-box; | ||
| border: 1px solid black; | ||
| border-radius : 2px; | ||
| padding : ${(props) => (props.padding ? props.padding : '0px')}; | ||
| margin : ${(props) => (props.margin ? props.margin : '0px')}; | ||
| text-align : center; | ||
| color : ${(props) => (props.color ? props.color : '#6c757d')}; | ||
| font-size : ${(props) => (props.fontSize ? props.fontSize : '14px')}; | ||
| background-color:${(props) => (props.backgroundColor ? props.backgroundColor : 'white')}; | ||
| text-align : ${(props) => (props.textAlign ? props.textAlign : 'center')}; |
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.
단톡방에 공유드린 short circuit evaluation 을 적용하여 코드를 줄여볼 수 있을 것 같아요 😎
|
|
||
| const Button =(props) => { | ||
| return ( | ||
|
|
||
| <StyledButton width={props.width} height={props.height} color={props.color} fontSize={props.fontSize} backgroundColor={props.backgroundColor} textAlign={props.textAlign} padding={props.padding} margin={props.margin}>{props.children} </StyledButton> | ||
|
|
||
| ); | ||
| }; |
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.
혹시 Prettier 가 아직 적용이 안되어있나요? 담당 운영진에게 여쭈어보고 Prettier 를 적용해주세요! 🚨
| `; | ||
|
|
||
|
|
||
|
|
||
|
|
||
| const MediaCard = (props) => { |
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.
이것 포함하여 전체적으로 의미없는 개행을 지워주시면 좋을 것 같습니다.
| const StyledTime = styled.div` | ||
| color : #6c757d; | ||
| font-size : 13px; | ||
| border : 1px solid white; | ||
| text-align : center; | ||
| align-items : center; | ||
| margin-left : auto; | ||
| display: flex; | ||
| flex-direction : column; | ||
| justify-content : center; | ||
| `; | ||
|
|
||
| const TimeBox =(props) =>{ | ||
| return( | ||
| <StyledTime>{props.children}</StyledTime> | ||
| ); | ||
| }; | ||
|
|
||
| export default TimeBox; |
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.
| const StyledTime = styled.div` | |
| color : #6c757d; | |
| font-size : 13px; | |
| border : 1px solid white; | |
| text-align : center; | |
| align-items : center; | |
| margin-left : auto; | |
| display: flex; | |
| flex-direction : column; | |
| justify-content : center; | |
| `; | |
| const TimeBox =(props) =>{ | |
| return( | |
| <StyledTime>{props.children}</StyledTime> | |
| ); | |
| }; | |
| export default TimeBox; | |
| const TimeBox = styled.div` | |
| color : #6c757d; | |
| font-size : 13px; | |
| border : 1px solid white; | |
| text-align : center; | |
| align-items : center; | |
| margin-left : auto; | |
| display: flex; | |
| flex-direction : column; | |
| justify-content : center; | |
| `; | |
| export default TimeBox; |
TimeBox 컴포넌트는 단순히 StyledTime 에 props 를 그대로 전달해주는 역할만하고 있어요. 위와 같이 코드를 개선해볼 수 있을 것 같아요 😁
|
웹페이지 상하좌우에 흰색 여백이 존재하는 것 같아요. |
ReadMe 작성