added configs

This commit is contained in:
MLH
2024-12-17 00:24:41 +01:00
parent a4a692b86e
commit 1b6ce03652
2 changed files with 12 additions and 46 deletions

View File

@ -29,6 +29,16 @@ const themeConfigs = {
js: 'seasonals/halloween.js',
containerClass: 'halloween'
},
hearts: {
css: 'seasonals/hearts.css',
js: 'seasonals/hearts.js',
containerClass: 'hearts'
},
eastern: {
css: 'seasonals/eastern.css',
js: 'seasonals/eastern.js',
containerClass: 'eastern'
},
summer: {
css: 'seasonals/summer.css',
js: 'seasonals/summer.js',
@ -49,8 +59,8 @@ const themeConfigs = {
// determine current theme based on the current month
function determineCurrentTheme() {
const date = new Date();
const month = date.getMonth();
const day = date.getDate();
const month = date.getMonth(); // 0-11
const day = date.getDate(); // 1-31
if (month === 11 || month === 0 || month === 1) return 'snowfall'; // december, january, february
if (month === 9 && day === 31) return 'halloween'; // halloween