Skip to content

UI Enhancement: Modernize Weather Page Design#1856

Merged
omroy07 merged 4 commits into
omroy07:mainfrom
Aditya8369:308
Jun 1, 2026
Merged

UI Enhancement: Modernize Weather Page Design#1856
omroy07 merged 4 commits into
omroy07:mainfrom
Aditya8369:308

Conversation

@Aditya8369
Copy link
Copy Markdown
Contributor

I have successfully modernized the weather page visual design and layout, integrated the theme engine, and resolved a major API performance issue:

Style & Layout Enhancements (

weather.css
):

Implemented design tokens mapping variables for light, dark, ocean, and neon themes.
Added a body backdrop mask overlay (body::after) to preserve text contrast when dynamic weather background images load.
Upgraded the weather container card (.box) to a modern, glassmorphic layout (blur filters, borders, and shadows) with dynamic height flex rules.
Styled custom scrollbars, autocomplete dropdowns, search buttons, .hData-card (hourly card), and .dayData-card (day card).
Improved responsiveness for tablets and mobile devices with flex wrappers and stacked alignment rules.
Theme Switcher & Fixes (

weather.html
):

Added the inline theme check script to prevent style flashes on load.
Integrated the animated Sun/Moon toggle button in the header.
Fixed a syntax error in the mouseover listener (missing single quote) that was breaking script parsing.
Added a themeChanged listener bridge at the bottom to synchronize local changes.
API & Animation Optimizations (

weather.js
):

Consolidated queries into a single fetch to /forecast.json asking for 10 days of data. This eliminates a loop that fired up to 24 sequential hourly fetches, solving severe flickering issues.
Added a fallback to tomorrow's forecast if the page is checked late at night (when no hourly slots remain for today).
Appended cascading fade-in slide-up delay values to newly spawned hourly and daily cards.
Updated weather backgrounds with high-resolution scenic backgrounds from Unsplash.

closes #308

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

@Aditya8369 is attempting to deploy a commit to the Om Roy's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@Aditya8369
Copy link
Copy Markdown
Contributor Author

@omroy07 merge under NSOC

@omroy07 omroy07 merged commit 38631d7 into omroy07:main Jun 1, 2026
1 of 4 checks passed
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

🎉 Congrats @Aditya8369 on getting your PR merged! 🙌
Thanks for the contribution — looking forward to more from you 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI Enhancement: Modernize Weather Page Design

2 participants