weather icons again

This commit is contained in:
Jake Kasper
2025-09-02 08:40:25 -05:00
parent 8c56914afe
commit 6a3b1861bf
2 changed files with 4 additions and 2 deletions

View File

@@ -38,9 +38,11 @@ app.use(helmet({
imgSrc: [ imgSrc: [
"'self'", "'self'",
"data:", "data:",
"https:",
"https://maps.googleapis.com", "https://maps.googleapis.com",
"https://maps.gstatic.com", "https://maps.gstatic.com",
"https://openweathermap.org" "https://openweathermap.org",
"https://*.openweathermap.org"
], ],
connectSrc: ["'self'", "https://api.openweathermap.org"] connectSrc: ["'self'", "https://api.openweathermap.org"]
} }

View File

@@ -93,7 +93,7 @@ const Weather = () => {
<div className="font-medium"> <div className="font-medium">
{new Date(d.date).toLocaleDateString(undefined, { weekday: 'short' })} {new Date(d.date).toLocaleDateString(undefined, { weekday: 'short' })}
</div> </div>
<img alt="" className="mx-auto" width="40" height="40" src={`https://openweathermap.org/img/wn/${d.icon}.png`} /> <img alt="" className="mx-auto" width="40" height="40" src={`https://openweathermap.org/img/wn/${d.icon}@2x.png`} />
<div>{d.temperatureHigh}° / {d.temperatureLow}°</div> <div>{d.temperatureHigh}° / {d.temperatureLow}°</div>
</div> </div>
))} ))}