reorganized calendar page, fixes

This commit is contained in:
ivic00
2024-12-17 18:12:47 +01:00
parent 79ac1efe63
commit 3324a2fd6f
51 changed files with 1082 additions and 27 deletions

View File

@ -1,12 +1,18 @@
export const colorMap = {
pink: "#ea156c",
orange: "#ffb902",
green: "#72d82a",
teal: "#07b9c6",
purple: "#7204d5",
lightPink: '#ffc8dd',
lightOrange: '#ffe5a6',
lightGreen: '#c1eea1',
lightTeal: '#c4f0f3',
lightPurple: '#debffa',
};
pink: "#ea156c",
orange: "#ffb902",
green: "#72d82a",
teal: "#07b9c6",
purple: "#7204d5",
lightPink: "#ffc8dd",
lightOrange: "#ffe5a6",
lightGreen: "#c1eea1",
lightTeal: "#c4f0f3",
lightPurple: "#debffa",
};
export const getEventTextColor = (backgroundColor: string): string => {
const lightColors = ["#ffc8dd", "#ffe5a6", "#c1eea1", "#c4f0f3", "#debffa"];
return lightColors.includes(backgroundColor) ? "black" : "white";
};