feat: add atmospheric cloudy weather theme
This commit is contained in:
@@ -164,6 +164,7 @@ export function getWeatherMoodFromData(station: SynopStation, date = new Date())
|
||||
if (hour < 6 || hour >= 21) return "night";
|
||||
if ((station.windSpeed ?? 0) >= 8) return "wind";
|
||||
if ((station.temperature ?? 15) <= 3) return "cold";
|
||||
if ((station.humidity ?? 0) >= 80) return "cloudy";
|
||||
if ((station.temperature ?? 15) >= 20) return "warm";
|
||||
return "mild";
|
||||
}
|
||||
@@ -179,7 +180,8 @@ export function getWeatherDescription(station: SynopStation, language: Language
|
||||
export function moodGradient(mood: WeatherMood) {
|
||||
return {
|
||||
warm: "from-sky-400 via-blue-500 to-indigo-700",
|
||||
rain: "from-slate-500 via-blue-700 to-slate-950",
|
||||
cloudy: "from-slate-600 via-slate-700 to-slate-900",
|
||||
rain: "from-slate-600 via-blue-900 to-slate-950",
|
||||
wind: "from-cyan-600 via-slate-600 to-blue-950",
|
||||
cold: "from-cyan-300 via-blue-500 to-indigo-900",
|
||||
night: "from-slate-800 via-indigo-950 to-slate-950",
|
||||
|
||||
Reference in New Issue
Block a user