Skip to content

Latest commit

Β 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŒ… Have a Good Day

A beautiful, single-page greeting web app that dynamically adapts its visuals, message, and animations based on the time of day and season β€” all in pure HTML, CSS, and vanilla JavaScript. No frameworks, no dependencies, no build step.


✨ Features

  • Time-aware greetings β€” Automatically detects whether it's Morning, Forenoon, Afternoon, Evening, or Night and displays a matching greeting and color theme.
  • Season-aware themes β€” Adapts to Summer, Monsoon, Autumn, Winter, or Spring with visual filters and bonus messages.
  • Animated particle system β€” Unique canvas animations for each time and season:
    • πŸŒ™ Night β†’ Twinkling stars & falling shooting stars
    • πŸŒ… Morning β†’ Sun rays & drifting clouds
    • β˜€οΈ Forenoon β†’ Floating leaves & clouds
    • 🌀️ Afternoon β†’ Sun rays & clouds
    • πŸŒ‡ Evening β†’ Glowing fireflies
    • ❄️ Winter β†’ Falling snowflakes (layered on top)
    • 🌧️ Monsoon β†’ Falling rain (layered on top)
  • Daily motivational messages β€” 10 unique heartfelt messages per time period, plus season-specific ones. Refresh for a new one.
  • Live clock β€” Displays the current time in the corner, updated every second.
  • Glassmorphism UI β€” Frosted-glass card with smooth fade-in animation.
  • Fully responsive β€” Works on mobile and desktop.

πŸ“Έ Preview

Morning Evening Night
Purple gradient + sun rays Warm orange + fireflies Deep navy + stars

πŸš€ Getting Started

No installation or setup needed. Just open the file in any browser.

# Clone the repository
git clone https://github.com/your-username/have-a-good-day.git
 
# Navigate into the folder
cd have-a-good-day
 
# Open in your browser
open index.html

Or simply download index.html and double-click it.


πŸ—‚οΈ Project Structure

have-a-good-day/
└── index.html   # Everything lives here β€” HTML, CSS, and JS in one file

🎨 How It Works

Time Periods

Period Hours Theme
Morning 5 AM – 9 AM Purple β†’ violet gradient
Forenoon 10 AM – 11 AM Teal β†’ blue gradient
Afternoon 12 PM – 4 PM Gold β†’ red gradient
Evening 5 PM – 8 PM Orange β†’ golden gradient
Night 9 PM – 4 AM Deep navy gradient

Seasons

Season Months Effect
Summer Apr – Jun Vibrant, high saturation
Monsoon Jul – Sep Rain particles, darker filter
Autumn Oct – Nov Warm tones
Winter Dec – Feb Snow particles, muted tones
Spring Mar Fresh, bright

πŸ› οΈ Built With

  • Pure HTML5
  • CSS3 β€” gradients, glassmorphism, keyframe animations
  • Vanilla JavaScript β€” Canvas API for particle animations, Date API for time/season detection
  • Google Fonts β€” Quicksand & Playfair Display

πŸ“„ License

This project is open source and available under the MIT License.


"The sunrise doesn't care about yesterday's clouds. Neither should you. Fresh light, fresh start."

About

A pretty little greeting app that changes its mood with the time of day and season πŸŒ…βœ¨

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages