Weather
by _null
HTML
<h4 class="greeting">
Good afternoon</h4>
<div class="location">
<h1 class="location-city">Location</h1>
<canvas class="icon" width="64" height="64"></canvas>
</div>
<div class="temperature">
<div class="content">
<div class="degree-section">
<h2 class="temperature-degree">0</h2>
<span>°C</span>
</div>
<div class="temperature-description">It's friggin cold</div>
</div>
</div>
CSS
body {
color: #555659;
height: 100vh;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.location {
border-radius: 5px;
justify-content: space-around;
-webkit-box-shadow: 0px 134px 155px 7px rgba(0, 0, 0, 0.05);
-moz-box-shadow: 0px 134px 155px 7px rgba(0, 0, 0, 0.05);
box-shadow: 0px 134px 155px 7px rgba(0, 0, 0, 0.05);
}
.location,
.temperature {
height: 30vh;
max-width: 800px;
min-height: 200px;
width: 50%;
display: flex;
align-items: center;
}
.temperature {
flex-direction: column;
}
.content {
margin: auto;
}
.degree-section {
display: flex;
}
.degree-section span {
line-height: 20px;
margin: 5px;
font-size: 20px;
}
.degree-section h2 {
font-size: 35px;
}
.greeting {
align-self: start;
padding: 5px;
padding-right: 20px;
background-color: rgb(127, 255, 212);
margin-bottom: -15px;
}
@media only screen and (max-width: 900px) {
.location,
.temperature {
width: 90%;
}
}