Skip to content

Commit

Permalink
Add commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shayan12456 committed Dec 30, 2023
2 parents b584adb + 5ee3d47 commit 46333d8
Show file tree
Hide file tree
Showing 3 changed files with 154 additions and 5 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# Premium Weather-App

Real-time weather updates with accurate forecasts and interactive map. Stay informed about weather conditions globally.# Weather-App

Created by [email protected]
Real-time weather updates with accurate forecasts and interactive map. Stay informed about weather conditions globally.# Weather-App
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ async function getWeather(city){
}catch{
console.log("sorry");
}
}
}
152 changes: 152 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<<<<<<< HEAD
nav{
/* display: flex;
justify-content: space-between;
Expand Down Expand Up @@ -156,3 +157,154 @@ button{
}


=======
nav{
display: flex;
justify-content: space-between;
background-color: #000;
color: #fff;
position: fixed; /* Set to fixed instead of sticky */
top: 0; /* Position at the top of the viewport */
left: 0; /* Position at the left of the viewport */
width: 100%;
padding: 10px 10px;
z-index: 1000;
}

main{

position: fixed;
bottom: 0;
/* background: rgba(0, 0, 0, 0.5); */
color: black;
width: 100%;
padding: 20px;

}



.name{
margin-top: 0.05rem;
margin-left: 0rem;
}

.search-bar{
/* margin-top: 2em; */
/* margin-right: 2em; */
/* margin-bottom: 2em; */
display: flex;
}

input{
width: 600px;
padding: 10px;
margin-right: 20px;
border: none;
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
width: 300px;

}
button{

background-color: white;
border-top-left-radius: 20px;
border-bottom-left-radius: 20px;
border: 0;
padding: 5.5px;
padding-left: 10px;
padding-top: 10px;

}


/* ---------main------------ */
.temp-details{
height: 400px;
font-size: 100px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.temp{
display: inline-block;
}
.city{
display: inline-block;
font-size: 50px;
}
.symbol{
display: inline-block;
}
.icon{
font-size: 100px;
}

/* Style the video: 100% width and height to cover the entire window */
#myVideo {
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
}

@media (max-width: 415px){
.other-info{
overflow-x: auto;/*scroll-bar*/
}
.table{
table-layout: fixed; /*no auto adjusting*/
width: 100%; /*parents width k equal*/
font-size: 12px;
}
}

@media (max-width: 400px){
.other-info{
overflow-x: auto;/*scroll-bar*/
}
.table{
table-layout: fixed; /*no auto adjusting*/
width: 100%; /*parents width k equal*/
font-size: 9px;
}
}

@media (max-width: 700px){
.search-bar{
width: 250px;
}
}
@media (max-width: 540px){
.search-bar{
width: 220px;
margin-right: 15px;
}
}
@media (max-width: 460px){
.search-bar{
width: 220px;
}
input[type="search"]{
margin-right: 1px;

}
}
@media((min-height: 1024px) and (min-width:768px)){
.temp-details{
margin-bottom: 256px;
}
}
@media((min-height: 1180px) and (min-width:820px)){
.temp-details{
margin-bottom: 256px;
}
}



>>>>>>> 5ee3d4725892fb9366ded700e56b21a95ee440c2

0 comments on commit 46333d8

Please sign in to comment.