Overview
SkyCast IA features a powerful weather display system that adapts its UI based on current weather conditions. The main weather card shows live temperature, atmospheric data, and AI-powered recommendations.Main Weather Card
TheMainWeatherCard component is the centerpiece of the weather display, showing current conditions with dynamic theming.
Key Features
Dynamic Icons
Weather-specific icons that animate based on conditions (sun, moon, rain, snow, thunder)
Adaptive Theming
UI colors change based on temperature and weather type
AI Analysis
Real-time weather recommendations powered by Groq/Llama
Local Time
Displays accurate local time for the selected city
Weather Icon Logic
The component automatically selects appropriate icons:Theme Variants
The UI adapts to weather conditions:Snow Theme (temp ≤ 0°C)
Snow Theme (temp ≤ 0°C)
- Light gray background with subtle transparency
- Dark text for high contrast on light surfaces
- Blue accent colors for ice/snow effects
- Snowflake animations across the page
Hot Theme (temp > 28°C)
Hot Theme (temp > 28°C)
- Warm gradient backgrounds (orange to red)
- Orange glow effects around weather icons
- Yellow/gold accent colors
- Heat wave visual effects
Rain Theme
Rain Theme
- Dark blue/slate backgrounds
- Animated rain pattern overlay
- Blue tints on all UI elements
- Cloud and rain drop icons
Clear/Default Theme
Clear/Default Theme
- Vibrant blue gradients
- White text on dark backgrounds
- Sun icons with rotation animations
- Clean, minimal design
Weather Stats Component
TheWeatherStats component displays key atmospheric data in a responsive grid:
Displayed Metrics
Thermal Sensation - Perceived temperature accounting for humidity and wind
Humidity - Relative humidity percentage (0-100%)
Wind Speed - Wind velocity in km/h with direction indicator
Atmospheric Pressure - Barometric pressure in hPa (hectopascals)
Custom Animations
SkyCast IA includes three custom CSS animations for weather icons:Spin Slow Animation
Used for sun icons to simulate rotation:Float Animation
Used for clouds and moon to create gentle movement:Bounce Slow Animation
Used for rain and snow to simulate falling motion:Usage Example
Responsive Design
All weather display components are fully responsive:- Mobile: Vertical stacking, single-column layouts
- Tablet: Two-column grids, optimized spacing
- Desktop: Multi-column layouts with sidebar statistics
The weather display automatically adjusts to screen size using Tailwind’s responsive utilities (
sm:, md:, lg:, xl:)Accessibility
- High contrast text ratios in all themes
- Semantic HTML structure
- ARIA labels on interactive elements
- Keyboard navigation support
- Screen reader friendly
