ux: dashboard grouping, responsive grids, grouped nav drawer, modal polish
Dashboard: - Split 12-item quick-log into two labeled groups (Alimentation & Soins / Sommeil & Activités) - "Voir tout →" link on today's timeline when events present - Quick-log button: hover highlight indigo instead of grey for clearer affordance Event modal: - Timer: text-3xl on mobile, text-4xl on sm+ (prevents overflow on narrow screens) - Date/time inputs: CalendarDays + Clock icons inline in each field for clarity Stats: - Today summary 3-col: gap-2 md:gap-3, p-3 md:p-4, text-xl md:text-2xl (no text clipping on mobile) - Sleep/feeding summary grids: gap-2 md:gap-4 Calendar: - Cell min-height: 52px mobile, 64px sm+ (reduces grid height on small screens) - Day detail: events sorted by time, duration shown as HH:mm → HH:mm for ranged events - Empty day state uses card container instead of bare text Medications: - Empty state: Pill icon + subtitle copy, centred card Milk: - Used/archived section: "… et N lots de plus" indicator when > 20 items Nav drawer (mobile): - Grouped secondary links: Suivi / Santé / Vie du bébé sections with section headers - Medications: correct Pill icon (was duplicating Bell/Stethoscope) - Ungrouped items fall through to a full-width list row Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import { useState } from "react";
|
||||
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
||||
import { Plus, Pencil, Trash2, Check, X } from "lucide-react";
|
||||
import { Plus, Pencil, Trash2, Check, X, Pill } from "lucide-react";
|
||||
|
||||
interface Profile {
|
||||
id: string;
|
||||
@@ -224,7 +224,11 @@ export default function MedicationsPage() {
|
||||
|
||||
{!isLoading && profiles.length === 0 && !showForm && (
|
||||
<div className="text-center py-16 text-slate-400 dark:text-slate-500">
|
||||
<p className="text-sm">Aucun profil médicament</p>
|
||||
<div className="w-12 h-12 rounded-2xl bg-slate-100 dark:bg-slate-800 flex items-center justify-center mx-auto mb-3">
|
||||
<Pill className="w-6 h-6 opacity-30" />
|
||||
</div>
|
||||
<p className="text-sm font-medium">Aucun profil médicament</p>
|
||||
<p className="text-xs mt-1 opacity-70">Créez un profil pour suivre les intervalles de prise</p>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user