Skip to content

Commit

Permalink
design almost done
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmalfaris11 committed May 30, 2024
1 parent f64fb4f commit 160e780
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 28 deletions.
33 changes: 10 additions & 23 deletions assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ body{
.container{
max-width: 800px;
width: 100%;
background:linear-gradient(0deg, #5d47c9 20%, #2c2067);
background:linear-gradient(0deg, #5d47c9 20%, #181238);
color: #fff;
border-radius: 25px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
Expand Down Expand Up @@ -88,10 +88,13 @@ body{

.content_section {
padding: 1.5rem;
background:linear-gradient(0deg, #5d47c9 20%, #2c2067);
background-image: url("images/space.png");
background-size: contain;
background-repeat: no-repeat;
width: 100%;
height: 100%;
color: #ffffff;
border-radius: 16px;
position: relative;
}

.space_img{
Expand Down Expand Up @@ -136,30 +139,14 @@ body{
cursor: pointer;
}

.day_info{
z-index: 1;

}

.day_info .content{
display: flex;
justify-content: space-between;
padding: 0.4rem 0;
z-index: 1;
}

.day_info .content .title{
font-weight: 600;
z-index: 1;
}
.value{
z-index: 1;
}

.list_content {
display: flex;
background-color: red;
position: relative;
}

.list_content ul{
Expand All @@ -172,8 +159,7 @@ body{
border-radius: 12px;
background:#3D2D8B;
padding-block: 5px;
z-index: 1;
position: absolute;

}

.list_content ul li{
Expand All @@ -182,8 +168,9 @@ body{
flex-direction: column;
align-items: center;
border-radius: 1rem;
transition: all 0.3s ease-in;
transition: all 0.3s ease-in ;
color: #ffffff;

}

.min_temp {
Expand All @@ -197,7 +184,7 @@ body{
}

.list_content ul li:hover{
transform: scale(1.1);
transform: scale(1.2);
background-color: #8C52FF;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
cursor: pointer;
Expand Down
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ <h3 class="cloudtxt">Overcsast Clouds</h3>
</div>
</div>
<div class="content_section">
<img class="space_img" src="assets/images/space.png" alt="">
<form>
<input type="text" placeholder="Search Location" class="input_field">
<button type="submit" class="btn_search">Search</button>
Expand Down Expand Up @@ -55,23 +54,24 @@ <h3 class="cloudtxt">Overcsast Clouds</h3>
<li>
<span>Mon</span>
<img src="https://openweathermap.org/img/wn/[email protected]" alt="">
<span class="day_temp"><span class="min_temp">23&degC </span>&nbsp; <span class="max_temp">22&degc</span></span>
<span class="day_temp"><span class="min_temp">23&degC </span>&nbsp; <span class="max_temp">22&degC</span></span>
</li>
<li>
<span>Mon</span>
<img src="https://openweathermap.org/img/wn/[email protected]" alt="">
<span class="day_temp"><span class="min_temp">23&degC </span>&nbsp; <span class="max_temp">22&degc</span></span>
<span class="day_temp"><span class="min_temp">23&degC </span>&nbsp; <span class="max_temp">22&degC</span></span>
</li>
<li>
<span>Mon</span>
<img src="https://openweathermap.org/img/wn/[email protected]" alt="">
<span class="day_temp"><span class="min_temp">23&degC </span>&nbsp; <span class="max_temp">22&degc</span></span>
<span class="day_temp"><span class="min_temp">23&degC </span>&nbsp; <span class="max_temp">22&degC</span></span>
</li>
<li>
<span>Mon</span>
<img src="https://openweathermap.org/img/wn/[email protected]" alt="">
<span class="day_temp"><span class="min_temp">23&degC </span>&nbsp; <span class="max_temp">22&degc</span></span>
<span class="day_temp"><span class="min_temp">23&degC </span>&nbsp; <span class="max_temp">22&degC</span></span>
</li>

</ul>
</div>
</div>
Expand Down

0 comments on commit 160e780

Please sign in to comment.