commitra / commitra/react-verse

Weather.jsx: Dynamic background / gradient based on condition

Open
#87 1 comment 0 reactions 1 assignee Claimed by @darshanbagade View on GitHub
good first commit hacktoberfest
Dominant language
JavaScript
Stars
8
Forks
34
PR merge metrics
No merged PRs in 30d

Description

Currently, the Weather.jsx component displays weather information but uses a static background. The goal is to enhance the UI by dynamically updating the background or gradient based on the current weather condition (e.g., sunny, rainy, cloudy, snow). This will improve visual appeal and user experience.

Acceptance Criteria:

Background or gradient changes dynamically according to weather condition.
Supports at least the main weather types: Sunny, Rainy, Cloudy, Snow, Thunderstorm, Mist.
Works seamlessly with existing UI and does not affect performance.
Optional: Smooth transition animation when the weather condition changes.

Reference / Suggestions:

Use CSS gradients or background images.
Can use condition codes from the weather API to determine the background.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.