More Weather Icons
This commit is contained in:
parent
ec63142ca3
commit
217a21b092
3 changed files with 6 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ export const metadata = {
|
||||||
|
|
||||||
export default function RootLayout({ children }) {
|
export default function RootLayout({ children }) {
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en" suppressHydrationWarning>
|
||||||
<body>{children}</body>
|
<body>{children}</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -161,7 +161,7 @@ export default function WeatherPage() {
|
||||||
src={weatherIcon}
|
src={weatherIcon}
|
||||||
width={175}
|
width={175}
|
||||||
height={175}
|
height={175}
|
||||||
unoptimized
|
loading="eager"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,12 @@ export function getWeatherIcon(icon) {
|
||||||
return `partlycloudynight`;
|
return `partlycloudynight`;
|
||||||
case "partly-cloudy-day":
|
case "partly-cloudy-day":
|
||||||
return `partlycloudyday`;
|
return `partlycloudyday`;
|
||||||
|
case "mostly-cloudy-day":
|
||||||
|
return `mostlycloudyday`;
|
||||||
case "breezy":
|
case "breezy":
|
||||||
return `windy`;
|
return `windy`;
|
||||||
|
case "cloudy":
|
||||||
|
return `cloudy`;
|
||||||
case "drizzle":
|
case "drizzle":
|
||||||
return `drizzle`;
|
return `drizzle`;
|
||||||
case "light-rain":
|
case "light-rain":
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue