diff --git a/src/views/components/Calendar.css b/src/views/components/Calendar.css index bdd24c2..7ac0bee 100644 --- a/src/views/components/Calendar.css +++ b/src/views/components/Calendar.css @@ -6,11 +6,25 @@ border: none; } +/* Add styles for weekday names */ +.react-calendar__month-view__weekdays__weekday { + text-decoration: none; + font-weight: 500; + padding: 0.5em; +} + +.react-calendar__month-view__weekdays__weekday abbr { + text-decoration: none; + border-bottom: none; + cursor: default; +} + .react-calendar__tile { padding: 10px; - min-height: 45px; + max-height: 40px; + min-width: 40px; text-align: center; - border-radius: 8px; + border-radius: 50px; transition: background-color 0.3s ease; } @@ -19,13 +33,13 @@ } .react-calendar__tile--active { - background-color: #007bff !important; + border: 1px dotted #4ec1a2e3 !important; + /* background-color: inherit; */ } .react-calendar__tile--now { - border: 1px dotted #4ec1a2e3 !important; - border-radius: 8px; - background-color: inherit; + background-color: #007bff !important; + border-radius: 50px; } .react-calendar__tile--now:enabled:hover { @@ -39,6 +53,8 @@ height: 16px; flex-wrap: wrap; position: relative; + min-height: 16px; + margin-top: -5px; } .dot { @@ -48,6 +64,16 @@ margin: 0 1px; } +.dot-with-line { + width: 1.2em; + height: 0.3em; + border-radius: 0.15em; + margin: 0 1px; +} +.dot-empty { + background-color: transparent; +} + .chore-tooltip { position: absolute; top: 100%; diff --git a/src/views/components/CalendarView.jsx b/src/views/components/CalendarView.jsx index a745eb7..32c384c 100644 --- a/src/views/components/CalendarView.jsx +++ b/src/views/components/CalendarView.jsx @@ -26,14 +26,32 @@ const CalendarView = ({ chores }) => { const tileDate = date.toLocaleDateString() return choreDate === tileDate }) + if (dayChores.length === 0) { + return ( +