diff --git a/app/page.tsx b/app/page.tsx index 384390e..b5bf8b7 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -416,21 +416,7 @@ function HomeTab({ weather, sensors }: { weather: WeatherData | null; sensors: S return () => clearInterval(t) }, []) - // Weather hint - const getWeatherHint = (): string | null => { - if (!weather) return null - const desc = weather.desc.toLowerCase() - const temp = parseInt(weather.temp) - if (desc.includes('дождь') || desc.includes('ливен') || desc.includes('морос')) return '☂️ Не забудьте зонт' - if (desc.includes('снег')) return '🧤 На улице снег, одевайтесь теплее' - if (desc.includes('гроз')) return '⛈️ Ожидается гроза' - if (temp <= 0) return '🥶 На улице мороз' - if (temp <= 5) return '🧥 Оденьтесь потеплее' - if (temp >= 30) return '🥵 Очень жарко, пейте воду' - return null - } - const hint = getWeatherHint() return (
@@ -439,16 +425,6 @@ function HomeTab({ weather, sensors }: { weather: WeatherData | null; sensors: S

{greeting} 👋

- {hint && ( -
- {hint} -
- )}
{/* Weather — full width compact */} diff --git a/components/TransportWidget.tsx b/components/TransportWidget.tsx index af39e15..0942abe 100644 --- a/components/TransportWidget.tsx +++ b/components/TransportWidget.tsx @@ -22,9 +22,9 @@ const DIRECTIONS: Direction[] = [ ] const ROUTES: { num: string; color: string; bg: string }[] = [ - { num: '23', color: '#60a5fa', bg: 'linear-gradient(135deg, #3b82f6, #2563eb)' }, - { num: '27', color: '#fbbf24', bg: 'linear-gradient(135deg, #f59e0b, #d97706)' }, - { num: '39', color: '#c084fc', bg: 'linear-gradient(135deg, #a855f7, #7c3aed)' }, + { num: '23', color: '#34d399', bg: 'linear-gradient(135deg, #10b981, #059669)' }, + { num: '27', color: '#60a5fa', bg: 'linear-gradient(135deg, #3b82f6, #2563eb)' }, + { num: '39', color: '#f87171', bg: 'linear-gradient(135deg, #ef4444, #dc2626)' }, ] function formatMinutes(m: number): string {