A Pen by Giovanni Orlando on CodePen.
Last active
April 8, 2017 07:09
-
-
Save gorlandor/ca6f6ba5f0c1077a087389c40caa5383 to your computer and use it in GitHub Desktop.
09-Calendar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="wrapper flex-vertically"> | |
<h1>Calendar</h1> | |
<div class="calendars flex-horizontally"> | |
<div class="apple-calendar-icon flex-vertically"> | |
<p class="weekday">Sunday</p> | |
<p class="day">9</p> | |
</div> | |
<div class="google-calendar-icon flex-vertically"> | |
<div class="page"> | |
<p class="day">18</p> | |
</div> | |
</div> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, | |
body { | |
width: 100%; | |
min-height: 100vh; | |
margin: 0; | |
padding: 0; | |
border: none; | |
background: #404099; | |
font-family: Arial, Helvetica, sans-serif; | |
font-size: 1rem; | |
font-weight: 400; | |
} | |
.flex-vertically { | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
justify-content: center; | |
} | |
.flex-horizontally { | |
display: flex; | |
flex-direction: row; | |
align-items: center; | |
justify-content: center; | |
} | |
.wrapper { | |
width: 100%; | |
min-height: 100vh; | |
margin: 0; | |
padding: 0; | |
border: none; | |
} | |
h1 { | |
color: white; | |
} | |
.apple-calendar-icon { | |
width: 8rem; | |
height: 8rem; | |
margin-right: 0.5rem; | |
border-radius: 1rem; | |
box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.4); | |
background-color: white; | |
} | |
.apple-calendar-icon .weekday { | |
color: red; | |
font-size: 1rem; | |
} | |
.apple-calendar-icon .day { | |
font-size: 5rem; | |
} | |
.google-calendar-icon { | |
width: 8rem; | |
height: 7rem; | |
margin-left: 0.5rem; | |
border-top: 1rem solid #d4d4d4; | |
border-radius: 1rem; | |
box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.4); | |
z-index: 0; | |
background-color: #d4d4d4; | |
} | |
.google-calendar-icon .page { | |
width: 8rem; | |
height: 8rem; | |
border-radius: 1rem; | |
background-image: repeating-linear-gradient( 180deg, #3664cf 0%, #3664cf 50%, #4989f4 50%, #4989f4 100%); | |
} | |
.google-calendar-icon p.day { | |
padding-top: 0.125em; | |
color: white; | |
font-size: 5em; | |
text-align: center; | |
} | |
p { | |
margin: 0; | |
padding: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment