HridoyHazard / HazzWeather

A Cool Weather App Made Using ReactJs
https://effulgent-brioche-795ac4.netlify.app/
MIT License
60 stars 73 forks source link

Day and night theme selected automatically as per Time #107

Closed BikramNarayan closed 1 year ago

BikramNarayan commented 1 year ago

Pull Request: Day or Night Theme Auto-Selection as per Time issue#92

Description

This pull request implements a feature that automatically selects the day or night theme based on the time of day. The core logic of this feature is implemented in the determineTimeOfDay function. It checks the sunrise and sunset times in the provided weatherData and calculates whether it's currently daytime or nighttime in the searched location. The theme is set accordingly, providing a more visually appealing and context-aware user experience.

Changes Made

netlify[bot] commented 1 year ago

Deploy Preview for effulgent-brioche-795ac4 ready!

Name Link
Latest commit cc88ec1a2ede8cd908691899c87abca911ac31d1
Latest deploy log https://app.netlify.com/sites/effulgent-brioche-795ac4/deploys/651c0db5da1f2b0008887f1c
Deploy Preview https://deploy-preview-107--effulgent-brioche-795ac4.netlify.app/
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

ghost commented 1 year ago
👇 Click on the image for a new way to code review #### [![Review these changes using an interactive CodeSee Map](https://s3.us-east-2.amazonaws.com/maps.codesee.io/images/github/HridoyHazard/HazzWeather/107/8d525e13/cc88ec1a2ede8cd908691899c87abca911ac31d1.svg)](https://app.codesee.io/r/reviews?pr=107&src=https%3A%2F%2Fgithub.com%2FHridoyHazard%2FHazzWeather) #### Legend CodeSee Map legend