├── assets ├── clear.svg ├── clouds.svg ├── drizzle.svg ├── humid.svg ├── mist.svg ├── rain.svg └── wind.svg ├── index.css ├── index.html └── index.js /assets/clear.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /assets/clouds.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /assets/drizzle.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /assets/humid.svg: -------------------------------------------------------------------------------- 1 | 32 | -------------------------------------------------------------------------------- /assets/mist.svg: -------------------------------------------------------------------------------- 1 | 25 | -------------------------------------------------------------------------------- /assets/rain.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /assets/wind.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /index.css: -------------------------------------------------------------------------------- 1 | *{ 2 | margin: 0; 3 | padding: 0; 4 | font-family: 'Times New Roman', Times, serif; 5 | box-sizing: border-box; 6 | } 7 | 8 | .Card{ 9 | width: 90%; 10 | max-width: 470px; 11 | background:linear-gradient(135deg, #00feba, #5b548a); 12 | color: #fff; 13 | margin: 100px auto 0; 14 | border-radius: 20px; 15 | padding: 40px 35px; 16 | text-align: center; 17 | 18 | } 19 | .search{ 20 | width: 100%; 21 | display: flex; 22 | align-items: center; 23 | justify-content: space-between; 24 | } 25 | .search input{ 26 | border: 0; 27 | outline: 0; 28 | background: #555; 29 | padding: 10px 25px; 30 | height: 60px; 31 | border-radius: 30px; 32 | flex: 1; 33 | margin-right: 16px; 34 | font-size: 18px; 35 | } 36 | 37 | .search button{ 38 | border: 0; 39 | outline: 0; 40 | background: #ebfffc; 41 | border-radius: 50%; 42 | width: 60px; 43 | height: 60px; 44 | cursor: pointer; 45 | } 46 | 47 | .weather-icon { 48 | width: 170px; 49 | margin-top: 30px; 50 | } 51 | 52 | .weather h1 { 53 | font-size: 80px; 54 | font-weight: 500; 55 | } 56 | 57 | .weather h2 { 58 | font-size: 45px; 59 | font-weight: 400; 60 | margin-top: -10px; 61 | } 62 | 63 | .details { 64 | display: flex; 65 | align-items: center; 66 | justify-content: space-between; 67 | padding: 0 20px; 68 | margin-top: 50px; 69 | } 70 | 71 | .col { 72 | display: flex; 73 | align-items: center; 74 | text-align: left; 75 | } 76 | 77 | .col img { 78 | width: 40px; 79 | margin-right: 10px; 80 | } 81 | 82 | .humidity, .wind { 83 | font-size: 28px; 84 | margin-top: -6px; 85 | } 86 | 87 | .weather { 88 | display: none; 89 | } 90 | 91 | .error { 92 | text-align: left; 93 | margin-left: 10px; 94 | font-size: 14px; 95 | margin-top: 10px; 96 | display: none; 97 | } -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 |Invalid city name
18 |50%
28 |Humidity
29 |15 km/h
35 |Wind Speed
36 |