From 875460c44240b34dca19792e67fbe3aef262f3f4 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Mon, 18 Aug 2025 13:41:03 +0000 Subject: [PATCH] Update calendar colors and styles for a softer visual appearance Adjusted calendar item colors to use a more muted pastel palette, refined borders and shadows, and updated the display logic for multiple items per day. Replit-Commit-Author: Agent Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/utmjfWK --- client/src/components/CalendarGrid.tsx | 22 +++++++++++----------- replit.md | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/client/src/components/CalendarGrid.tsx b/client/src/components/CalendarGrid.tsx index 48af0df..92b693e 100644 --- a/client/src/components/CalendarGrid.tsx +++ b/client/src/components/CalendarGrid.tsx @@ -28,11 +28,11 @@ function CalendarItem({ item, type, onItemClick }: { item: any, type: 'order' | const getOrderStyle = () => { switch (item.status) { case 'delivered': - return 'bg-gray-500 text-white shadow-lg border-l-4 border-gray-700'; + return 'bg-gray-400 text-white shadow-md border-l-4 border-gray-500'; case 'planned': - return 'bg-yellow-500 text-black shadow-lg border-l-4 border-yellow-700 font-medium'; + return 'bg-yellow-300 text-gray-800 shadow-md border-l-4 border-yellow-500 font-medium'; default: - return 'bg-blue-500 text-white shadow-lg border-l-4 border-blue-700'; + return 'bg-blue-300 text-gray-800 shadow-md border-l-4 border-blue-500'; } }; @@ -49,7 +49,7 @@ function CalendarItem({ item, type, onItemClick }: { item: any, type: 'order' |
{item.status === 'planned' && ( -
+
)} {item.status === 'delivered' && ( @@ -63,11 +63,11 @@ function CalendarItem({ item, type, onItemClick }: { item: any, type: 'order' | const getDeliveryStyle = () => { switch (item.status) { case 'delivered': - return 'bg-gray-500 text-white shadow-lg border-l-4 border-gray-700'; + return 'bg-gray-400 text-white shadow-md border-l-4 border-gray-500'; case 'pending': - return 'bg-green-500 text-white shadow-lg border-l-4 border-green-700'; + return 'bg-green-300 text-gray-800 shadow-md border-l-4 border-green-500'; default: - return 'bg-green-500 text-white shadow-lg border-l-4 border-green-700'; + return 'bg-green-300 text-gray-800 shadow-md border-l-4 border-green-500'; } }; @@ -84,7 +84,7 @@ function CalendarItem({ item, type, onItemClick }: { item: any, type: 'order' |
{item.status === 'pending' && ( -
+
)} {item.status === 'delivered' && ( @@ -446,14 +446,14 @@ export default function CalendarGrid({ {dayPublicities.slice(0, 2).map((pub, idx) => (
pg.group?.name).join(', ')}` : ''}`} > {pub.pubNumber}
))} {dayPublicities.length > 2 && ( -
+
+{dayPublicities.length - 2}
)} @@ -465,7 +465,7 @@ export default function CalendarGrid({