Skip to content

Implement Rotating Tip of the Day #32

@Eshaan-byte

Description

@Eshaan-byte

Show a different eco-tip each day to keep content fresh

Tasks

  • Create tip rotation logic in src/utils/tipRotation.ts
  • Use current date to determine which tip to show
  • Create "Tip of the Day" component for dashboard
  • Display prominently with lightbulb icon 💡
  • Add "Show next tip" button to cycle through
  • Save viewed tips to localStorage (don't repeat for 30 days)
  • Add "All Tips" link to view full list

Acceptance Criteria

  • Different tip shown each day automatically
  • Tip changes at midnight
  • Users can manually cycle through tips
  • Viewed tips tracked to avoid repetition
  • Links to full tips section
  • Attractive card design matches dashboard
  • Works without account/login

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions