From 9614187cb7dce134ea2399fd09ca160712c2789d Mon Sep 17 00:00:00 2001 From: Andrei Duvakin Date: Tue, 28 Jan 2025 19:27:14 +0500 Subject: [PATCH] ._. --- WEB/app/src/app/app.css | 4 ++++ WEB/app/src/app/components/сalendar.js | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/WEB/app/src/app/app.css b/WEB/app/src/app/app.css index a17733c..7c9ea57 100644 --- a/WEB/app/src/app/app.css +++ b/WEB/app/src/app/app.css @@ -202,4 +202,8 @@ z-index: 1001; position: absolute; border: 1px solid black; +} + +.calendar-weekend { + color: red !important; } \ No newline at end of file diff --git a/WEB/app/src/app/components/сalendar.js b/WEB/app/src/app/components/сalendar.js index 5425c44..b81a1a0 100644 --- a/WEB/app/src/app/components/сalendar.js +++ b/WEB/app/src/app/components/сalendar.js @@ -94,10 +94,12 @@ const Calendar = () => { const eventCount = dayEvents.length; const backgroundColor = eventCount > 0 ? getEventColor(eventCount) : "transparent"; + const weekendClass = [5, 6].includes(index % 7) ? "calendar-weekend" : ""; + return (