From d6d91e43404146b62b5c221441e705aa5fa8181d Mon Sep 17 00:00:00 2001 From: CaIon <1808837298@qq.com> Date: Thu, 1 Feb 2024 21:47:28 +0800 Subject: [PATCH] feat: Happy New Year --- web/src/components/HeaderBar.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/components/HeaderBar.js b/web/src/components/HeaderBar.js index 1ae6c410..244cbd89 100644 --- a/web/src/components/HeaderBar.js +++ b/web/src/components/HeaderBar.js @@ -43,7 +43,8 @@ const HeaderBar = () => { const logo = getLogo(); var themeMode = localStorage.getItem('theme-mode'); const currentDate = new Date(); - const isNewYear = currentDate.getMonth() === 0 && currentDate.getDate() === 1; + // enable fireworks on new year(1.1 and 2.9-2.24) + const isNewYear = (currentDate.getMonth() === 0 && currentDate.getDate() === 1) || (currentDate.getMonth() === 1 && currentDate.getDate() >= 9 && currentDate.getDate() <= 24); async function logout() { setShowSidebar(false);