Skip to content

Commit e057fac

Browse files
committed
href fixes
1 parent 67945aa commit e057fac

File tree

6 files changed

+11524
-14
lines changed

6 files changed

+11524
-14
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

src/App.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ import fogImg from "./icons/017-foog.png";
2222
import sunImg from "./icons/039-sun.png";
2323
import loader from "./icons/810.gif";
2424

25-
const inputElm = document.querySelector("#cityInput");
26-
2725
function App() {
2826
// State
2927
const [isInit, setInit] = useState(0);
@@ -96,8 +94,6 @@ function App() {
9694
}
9795
};
9896

99-
const getQuote = () => {};
100-
10197
const getWeather = async () => {
10298
let city = document.querySelector("#cityInput").value;
10399
console.log(city);
@@ -164,7 +160,7 @@ function App() {
164160
onClick={getWeather}
165161
>
166162
{isLoading ? (
167-
<img src={loader} className="loader" />
163+
<img alt="loaderr" src={loader} className="loader"/>
168164
) : (
169165
<i className="bi bi-caret-right fs-6"></i>
170166
)}

src/Components/HumidityCard.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ const HumidityCard= (props)=>{
1616
<span>%</span>
1717
</div>
1818
<div className="d-flex flex-column justify-content-center ">
19-
<a href="#" data-toggle="tooltip" data-placement="top" title="Precipitation is a form of water from the atmosphere" className="border-bottom border-2 border-warning clr-31 fw-bold text-decoration-none">Precipitation: <span className="text-white">{props.preci} mb</span></a>
20-
<a href="#" data-toggle="tooltip" data-placement="top" title="Visibility is a measure of the distance at which an object or light can be clearly discerned." className="border-bottom border-2 border-warning clr-31 fw-bold text-decoration-none">Visibiltiy: <span className="text-white">{props.vis} k.m</span></a>
21-
<a href="#" data-toggle="tooltip" data-placement="top" title="The dew point is the temperature the air needs to be cooled to (at constant pressure) in order to achieve a relative humidity (RH) of 100%" className="border-bottom border-2 border-warning clr-31 fw-bold text-decoration-none">Dew Point: <span className="text-white">{props.dpt}</span></a>
19+
<button className="bg-transparent border-bottom border-0 border-warning clr-31 fw-bold text-decoration-none">Precipitation: <span className="text-white">{props.preci} mb</span></button>
20+
<button className="bg-transparent border-bottom border-0 border-warning clr-31 fw-bold text-decoration-none">Visibiltiy: <span className="text-white">{props.vis} k.m</span></button>
21+
<button className="bg-transparent border-bottom border-0 border-warning clr-31 fw-bold text-decoration-none">Dew Point: <span className="text-white">{props.dpt}</span></button>
2222
</div>
2323
</div>
2424
</div>

src/Components/PressureCard.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ const PressureCard= (props)=>{
1717
<span>mb</span>
1818
</div>
1919
<div className="d-flex flex-column justify-content-center">
20-
<a href="#" data-toggle="tooltip" data-placement="top" title="atmospheric pressure at mean sea level" className="border-bottom border-2 border-warning clr-31 fw-bold text-decoration-none">Sea Level: <span className="text-white">{props.slp}</span></a>
21-
<a href="#" data-toggle="tooltip" data-placement="top" title="The UVI is a measure of the level of UV radiation" className="border-bottom border-2 border-warning clr-31 fw-bold text-decoration-none">UV Index: <span className="text-white">{props.uvi}</span></a>
22-
<a href="#" data-toggle="tooltip" data-placement="top" title="electromagnetic radiation emitted by the sun" className="border-bottom border-2 border-warning clr-31 fw-bold text-decoration-none">Radiation: <span className="text-white">{props.sr}</span></a>
20+
<button className="bg-transparent border-bottom border-0 border-warning clr-31 fw-bold text-decoration-none">Sea Level: <span className="text-white">{props.slp}</span></button>
21+
<button className="bg-transparent border-bottom border-0 border-warning clr-31 fw-bold text-decoration-none">UV Index: <span className="text-white">{props.uvi}</span></button>
22+
<button className="bg-transparent border-bottom border-0 border-warning clr-31 fw-bold text-decoration-none">Radiation: <span className="text-white">{props.sr}</span></button>
2323
</div>
2424

2525
</div>

src/Components/WindSpdCard.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ const WindSpdCard= (props)=>{
1717
<span>m/s</span>
1818
</div>
1919
<div className="d-flex flex-column justify-content-center ">
20-
<a href="#" data-toggle="tooltip" data-placement="top" title="direction the wind is coming from" className="border-bottom border-2 border-warning text- clr-31 fw-bold text-decoration-none text-capitalize">Direction: <span className="text-white">{props.windDir}</span></a>
21-
<a href="#" data-toggle="tooltip" data-placement="top" title="refers to the fraction of the sky obscured by clouds when observed from a particular location" className="border-bottom border-2 border-warning clr-31 fw-bold text-decoration-none">Clouds: <span className="text-white">{props.cloudIndex}</span></a>
22-
<a href="#" data-toggle="tooltip" data-placement="top" title="Air quality is a measure of how clean or polluted the air is" className="border-bottom border-2 border-warning clr-31 fw-bold text-decoration-none">Air Quality: <span className="text-white">{props.airQuality}</span></a>
20+
<button className="bg-transparent border-bottom border-0 border-warning text- clr-31 fw-bold text-decoration-none text-capitalize">Direction: <span className="text-white">{props.windDir}</span></button>
21+
<button className="bg-transparent border-bottom border-0 border-warning clr-31 fw-bold text-decoration-none">Clouds: <span className="text-white">{props.cloudIndex}</span></button>
22+
<button className="bg-transparent border-bottom border-0 border-warning clr-31 fw-bold text-decoration-none">Air Quality: <span className="text-white">{props.airQuality}</span></button>
2323
</div>
2424
</div>
2525

0 commit comments

Comments
 (0)