Source codes:
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type=”text/css”>
body{
position: relative;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: sans-serif;
background: url(“bg.jpg”) no-repeat center / cover;
&::before{
content: “”;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: inherit;
filter: blur(10px);
}
}
.calendar{
position: relative;
width: 300px;
background-color: #fff;
box-sizing: border-box;
box-shadow: 0 5px 50px rgba(0, 0.5);
border-radius: 8px;
overflow: hidden;
}
.calendar_picture{
position: relative;
height: 200px;
padding: 20px;
color: #fff;
background: #262626 url(“bg.jpg”) no-repeat center / cover;
text-shadow: 0 2px 2px rgba(#000, 0.2);
box-sizing: border-box;
&::before{
content: “”;
left: 0;
right: 0;
top: 0;
bottom: 0;
position: absolute;
background: linear-gradient(to top, rgba(#000, 0.25), rgba(#000, 0.1));
}
h2{
margin: 0;
}
h3{
margin: 0;
font-weight: 500;
}
}
.calendar_date{
padding: 20px;
display: grid;
grid-template-columns: repeat(auto-fit,minmax(25px, 1fr));
grid-gap: 10px;
box-sizing: border-box;
}
.day{
display: flex;
align-items: center;
justify-content: center;
height: 25px;
font-weight: 600;
color: #262626;
&:nth-child(7){
color: #ff685d;
}
}
.number{
display: flex;
align-items: center;
justify-content: center;
height: 25px;
color: #262626;
&:nth-child(7n){
color: #ff685d;
font-weight: 700;
}
.current, &:hover{
background-color: #009688;
color: #fff !important;
font-weight: 700;
cursor: pointer;
}
}
</style>
</head>
<body>
<div class=”calendar”>
<div class=”calendar_picture”>
<h2>25, Sunday</h2>
<h3>December</h3>
</div>
<div class=”calendar_date”>
<div class=”day”>M</div>
<div class=”day”>T</div>
<div class=”day”>W</div>
<div class=”day”>T</div>
<div class=”day”>F</div>
<div class=”day”>S</div>
<div class=”day”>S</div>
<div class=”number”></div>
<div class=”number”></div>
<div class=”number”></div>
<div class=”number”>1</div>
<div class=”number”>2</div>
<div class=”number”>3</div>
<div class=”number”>4</div>
<div class=”number”>5</div>
<div class=”number”>6</div>
<div class=”number”>7</div>
<div class=”number”>8</div>
<div class=”number”>9</div>
<div class=”number”>10</div>
<div class=”number”>11</div>
<div class=”number”>12</div>
<div class=”number”>13</div>
<div class=”number”>14</div>
<div class=”number”>15</div>
<div class=”number”>16</div>
<div class=”number”>17</div>
<div class=”number current”>18</div>
<div class=”number”>19</div>
<div class=”number”>20</div>
<div class=”number”>21</div>
<div class=”number”>22</div>
<div class=”number”>23</div>
<div class=”number”>24</div>
<div class=”number”>25</div>
<div class=”number”>26</div>
<div class=”number”>27</div>
<div class=”number”>28</div>
<div class=”number”>29</div>
<div class=”number”>30</div>
<div class=”number”>31</div>
</div>
</div>
</body>
</html>