mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-22 22:48:15 +02:00
2 files changed
+11
-6
No files matched your search
@@ -389,7 +389,7 @@ export default function CalendarGrid({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Calendar Days - Grid moderne sans arrondi */}
|
{/* 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) => {
|
{paddedDays.map((date, index) => {
|
||||||
const isCurrentMonth = isSameMonth(date, currentDate);
|
const isCurrentMonth = isSameMonth(date, currentDate);
|
||||||
const isTodayDate = isToday(date);
|
const isTodayDate = isToday(date);
|
||||||
@@ -400,15 +400,15 @@ export default function CalendarGrid({
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
key={index}
|
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
|
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
|
: isWeekend && isCurrentMonth
|
||||||
? "bg-gray-50 hover:bg-gray-100"
|
? "bg-gray-200 hover:bg-gray-300"
|
||||||
: isCurrentMonth
|
: isCurrentMonth
|
||||||
? "bg-white hover:bg-gray-50"
|
? "bg-white hover:bg-gray-50"
|
||||||
: "bg-gray-100"
|
: "bg-gray-150"
|
||||||
} ${!isCurrentMonth ? 'opacity-50' : ''} last:border-r-0`}
|
} ${!isCurrentMonth ? 'opacity-50' : ''}`}
|
||||||
onClick={() => onDateClick(date)}
|
onClick={() => onDateClick(date)}
|
||||||
>
|
>
|
||||||
<div className="p-3 h-full flex flex-col">
|
<div className="p-3 h-full flex flex-col">
|
||||||
|
|||||||
@@ -380,3 +380,8 @@ button[data-day-weekend="true"],
|
|||||||
.hover\:to-gray-50:hover {
|
.hover\:to-gray-50:hover {
|
||||||
--tw-gradient-to: #f9fafb var(--tw-gradient-to-position);
|
--tw-gradient-to: #f9fafb var(--tw-gradient-to-position);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Couleur grise personnalisée pour les jours hors mois */
|
||||||
|
.bg-gray-150 {
|
||||||
|
background-color: #f1f3f4;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user