2021/11/4 ~ 2021/11/9
메일작성 페이지
<CKEditor />
<Select />
<Datepicker />
- Styled Component
Node-schedule
||cron
<Modal />
//Adapting based on props
const Button = styled.button`
background: ${props => props.primary? "palevioletred" : "white"};
color: ${props => props.primary? "white" : "palevioletred"};
font-size: 1em;
margin: 1em;
padding: 0.25em 1em;
border: 2px solid palevioletred;
border-radius: 3px;
`;
render(
<div>
<Button>Normal</Button>
<Button primary>Primary</Button>
</div>
)
const StyledButton = styled.button`
background: ${(props) => (props.send ? "palevioletred" : "white")};
color: ${(props) => (props.send ? "white" : "palevioletred")};
float: ${(props) => (props.send ? "right" : "left")};
&:hover {cursor: pointer}; //hover되었을때 cursor 변경시키기
font-size: 1em;
padding: 0.25em 1em;
border: 2px solid palevioletred;
border-radius: 3px;
`;
render(
<div>
<StyledButton>Normal</StyledButton>
</div>
)
//extending styles
const Button = styled.button`
color:palevioletred;
font-size:1em;
margin:1em;
padding:0.25em 1em;
border:2px solid palevioletred;
border-radius:3px;
`;
const TomatoButton = styled(Button)`
color:tomato;
border-color:tomato;
`;
render(
<div>
<Button>Normal Button</Button>
<TomatoButton>Tomato Button</TomatoButton>
</div>
);
reference
styled component를 사용해보니 다음과 같은 장단점이 있었다.
장점
className=""
로 추가할 수 있다.단점
display:flex
속성에 따라 자식 컴포넌트에 flex:1 1 auto
가 적용되지 않았다. 그래서, 상위에 <div>
태그로 다시 감싸주고, 이 div에 display:flex
속성을 주어야했다.꼭!
Allow me to draw your attention to this really intriguing thought for a minute. Mockups, according to what I've heard, are quite important in the design profession, and I believe this to be true. Of course, such a product offers the buyer with a clear idea of what they may anticipate from the items and is very affordable to make in comparison to other types of products. My first attraction to the mockups on this website - https://www.ls.graphics/free-mockups/business-card-mockup was based on the fact that they were so well designed. Furthermore, they seem to have been manufactured in a very contemporary style and, in my view, to offer a realistic representation of the product now available on the market.