Skip to content

Commit

Permalink
Merge branch 'Frontend_UI_Improvements' of https://github.com/UTT-GL0…
Browse files Browse the repository at this point in the history
…3/EcoMeteo into Frontend_UI_Improvements
  • Loading branch information
Asmeeeee committed Dec 17, 2024
1 parent 455c034 commit 18db906
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 1 deletion.
Binary file added frontend/public/icons/Est.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/icons/Nord-Est.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/icons/Nord-Ouest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/icons/Nord.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/icons/Ouest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/icons/Sud-Est.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/icons/Sud-Ouest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/icons/Sud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion frontend/src/WeatherCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,15 @@ const WeatherCard = ({ data }) => {
<span>{data?.meteo?.humidity ?? "Non disponible"}</span>
</div>
<div className="grid-item">
<span className="label">Vent:</span>
<span className="label">Vent:</span>
<img
src={data?.meteo?.wind ? `../public/icons/${data.meteo.wind}.png` : "#"}
alt={data?.meteo?.wind ? data.meteo.wind : "Image non disponible"}
style={{
clipPath: "inset(0px 0px 20px 0px)",
objectFit: "cover"
}}
/>
<span>{data?.meteo?.wind ?? "Non disponible"}</span>
</div>
</div>
Expand Down

0 comments on commit 18db906

Please sign in to comment.