Skip to content

Commit

Permalink
Немного улучшил дизайн
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyAkkuratov committed Mar 18, 2024
1 parent 83336bd commit 91ec2f9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
19 changes: 15 additions & 4 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
#main {
width: 900px;
overflow: auto;
margin: 0 auto;
padding: 2rem 2rem;
border: 3px solid #333333;
border-radius: 2% 6% 5% 4% / 1% 1% 2% 4%;
}

.form-block {
clear: both;
margin: 20px;
height: 10%;
margin-bottom: 20px;
}

.form-input {
width: 280px;
}

.history-block {
float: right;
text-align: right;
}

.history-block span {
Expand All @@ -21,7 +34,6 @@
.info-block div {
display: inline-block;
width: 300px;
height: 300px;
vertical-align: top;
}

Expand All @@ -33,7 +45,6 @@

#map {
width: 300px;
height: 300px;
vertical-align: top;
}

Expand Down
3 changes: 1 addition & 2 deletions src/weatherApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ export default async function weatherApp(element) {
element.innerHTML = `
<div class="info-block">
<form id="weatherForm" class="form-block">
<input id="userInput" placeholder="Type city and press enter" required autofocus>
<button id="bGetWeather">Get weather</button>
<input id="userInput" class="form-input" placeholder="Type city and press enter" required autofocus>
</form>
<div id="weather">
<img id="map"
Expand Down

0 comments on commit 91ec2f9

Please sign in to comment.