Skip to content

Instantly share code, notes, and snippets.

@Code-Hex
Created August 3, 2020 13:35
Show Gist options
  • Select an option

  • Save Code-Hex/322c82a210aa4051df815a4c341dabe8 to your computer and use it in GitHub Desktop.

Select an option

Save Code-Hex/322c82a210aa4051df815a4c341dabe8 to your computer and use it in GitHub Desktop.
日めくりカレンダー
import styled from 'styled-components'
export const Calendar = ({ date }) => {
const month = ['Jan','Feb','Mar','Apr','May','June','July','Aug','Sept','Oct','Nov','Dec']
return (
<Border color="#000">
<Header>{month[6]}</Header>
<Body>25</Body>
</Border>
)
}
const Border = styled.div`
width: 110px;
`
const Header = styled.div`
padding-top: 2px;
text-align: center;
height: 26px;
color: #fff;
font-weight: bold;
background-color: #ee5253;
display: block;
border-bottom: 3px solid #d92c2c;
`
const Body = styled.div`
text-align: center;
font-size: 54px;
font-weight: bold;
color: #1d3557;
background-color: #fff;
display: block;
border-bottom: 5px solid #cecece;
`
@Code-Hex
Copy link
Copy Markdown
Author

Code-Hex commented Aug 3, 2020

スクリーンショット 2020-08-03 22 16 27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment