From dcdc060b28f7711ff2c0d52e26f19d1de4eb60e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Veikko=20Lintuj=C3=A4rvi?= Date: Tue, 17 Jun 2025 18:45:29 +0300 Subject: [PATCH] Style improvements --- app/components/Calendar.module.css | 31 ++++++++++++++++++++++-------- app/components/Calendar.tsx | 6 ++++++ 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/app/components/Calendar.module.css b/app/components/Calendar.module.css index 6568b69..edd21d0 100644 --- a/app/components/Calendar.module.css +++ b/app/components/Calendar.module.css @@ -18,16 +18,18 @@ } .monthNavBtn { - background-color: #d4f0dd; -} + background-color: #a7ebb0; + border: 1px solid #ccc; + border-radius: 10px; + padding: 10px; -.emptyBtn { - background-color: #d4f0dd; + &:hover { + background-color: #7dcf8c; + } } .calendarCell { - background-color: #d4f0dd; - border: 1px solid #ccc; + border: 2px solid #ccc; padding: 0.5rem; cursor: pointer; height: 3rem; @@ -36,14 +38,27 @@ } .deliveredCell { - background-color: #62ed8e; + background-color: #27db60; + + &:hover { + background-color: #1ebd50; + } } .pickedUpCell { - background-color: #6287ed; + background-color: #a7ebb0; + + &:hover { + background-color: #7dcf8c; + } } .firstWeekPaddingCell { height: 3rem; width: 3rem; +} + +.statusText { + font-size: 0.8rem; + color: #555; } \ No newline at end of file diff --git a/app/components/Calendar.tsx b/app/components/Calendar.tsx index cdb4fb3..a75d7aa 100644 --- a/app/components/Calendar.tsx +++ b/app/components/Calendar.tsx @@ -76,6 +76,12 @@ export default function Calendar() { day: "2-digit", month: "2-digit", })} +
+ {matchingBox.pickup_date ? ( + Jako + ) : ( + Haettu + )} ); }