Skip to content

Conversation

@soriSeong
Copy link

1
2
3

dlwnsgus07 and others added 3 commits May 10, 2022 00:18
update Readme
3주차 과제_이성
Copy link

@devHudi devHudi left a comment

Choose a reason for hiding this comment

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

지난주 과제 때 보다 훨씬 성장하신 것 같아요 👍
몇가지 수정하면 좋을 만한 점을 코멘트 달아드렸어요. 반영해주셔도 좋고, 참고만 해주셔도 좋습니다 😁

Comment on lines +21 to +25
<MediaCard />
</CardContainer>

</>
);
Copy link

Choose a reason for hiding this comment

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

큰 의미가 없는 개행은 지워주는 것이 좋습니다 😎

Comment on lines +5 to +16
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')};
Copy link

Choose a reason for hiding this comment

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

단톡방에 공유드린 short circuit evaluation 을 적용하여 코드를 줄여볼 수 있을 것 같아요 😎

Comment on lines +20 to +27

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>

);
};
Copy link

Choose a reason for hiding this comment

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

혹시 Prettier 가 아직 적용이 안되어있나요? 담당 운영진에게 여쭈어보고 Prettier 를 적용해주세요! 🚨

Comment on lines +50 to +55
`;




const MediaCard = (props) => {
Copy link

Choose a reason for hiding this comment

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

이것 포함하여 전체적으로 의미없는 개행을 지워주시면 좋을 것 같습니다.

Comment on lines +4 to +22
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;
Copy link

Choose a reason for hiding this comment

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

Suggested change
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 를 그대로 전달해주는 역할만하고 있어요. 위와 같이 코드를 개선해볼 수 있을 것 같아요 😁

@devHudi
Copy link

devHudi commented May 15, 2022

웹페이지 상하좌우에 흰색 여백이 존재하는 것 같아요. html, body 에도 margin 스타일을 적용해볼 수 있는 사실 알고 계셨나요? 😎

ReadMe 작성
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