diff --git a/src/components/LandingPage.jsx b/src/components/LandingPage.jsx index fc9d7ec..f548068 100644 --- a/src/components/LandingPage.jsx +++ b/src/components/LandingPage.jsx @@ -85,6 +85,19 @@ function LandingPage() { } } }; + // Function to get the current time and determine the greeting +const getGreeting = () => { + const currentHour = new Date().getHours(); + + if (currentHour >= 5 && currentHour < 12) { + return 'Good Morning'; + } else if (currentHour >= 12 && currentHour < 18) { + return 'Good Afternoon'; + } else { + return 'Good Evening'; + } +}; + // Modal and loader handling functions const closeModal = () => setShowModal(false); @@ -141,7 +154,7 @@ function LandingPage() {