Merge pull request #228 from R0m1k3/1.1

1.1
This commit is contained in:
LogiFlow authored and GitHub committed 2025-08-18 15:31:09 +02:00
commit 9f1863c8b9
2 files changed
+11 -6

No files matched your search

+6 -6
View File
@@ -389,7 +389,7 @@ export default function CalendarGrid({
</div>
{/* Calendar Days - Grid moderne sans arrondi */}
<div className="grid grid-cols-7">
<div className="grid grid-cols-7 gap-px bg-gray-300 p-px">
{paddedDays.map((date, index) => {
const isCurrentMonth = isSameMonth(date, currentDate);
const isTodayDate = isToday(date);
@@ -400,15 +400,15 @@ export default function CalendarGrid({
return (
<div
key={index}
className={`h-32 relative group cursor-pointer transition-all duration-200 border-r border-b border-gray-400 ${
className={`h-32 relative group cursor-pointer transition-all duration-200 ${
isTodayDate
? "bg-blue-100 hover:bg-blue-200 border-2 border-blue-500"
? "bg-blue-100 hover:bg-blue-200 border-2 border-blue-600"
: isWeekend && isCurrentMonth
? "bg-gray-50 hover:bg-gray-100"
? "bg-gray-200 hover:bg-gray-300"
: isCurrentMonth
? "bg-white hover:bg-gray-50"
: "bg-gray-100"
} ${!isCurrentMonth ? 'opacity-50' : ''} last:border-r-0`}
: "bg-gray-150"
} ${!isCurrentMonth ? 'opacity-50' : ''}`}
onClick={() => onDateClick(date)}
>
<div className="p-3 h-full flex flex-col">
+5
View File
@@ -380,3 +380,8 @@ button[data-day-weekend="true"],
.hover\:to-gray-50:hover {
--tw-gradient-to: #f9fafb var(--tw-gradient-to-position);
}
/* Couleur grise personnalisée pour les jours hors mois */
.bg-gray-150 {
background-color: #f1f3f4;
}