更新
This commit is contained in:
1 parent
01f9f2c514
commit
dc23ea53ed
25 files changed
+3116
-176
No files matched your search
+1303
-28
File diff suppressed because it is too large.
Load diff
+612
-110
@@ -25,47 +25,47 @@
|
||||
</script>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body class="bg-slate-100 text-slate-800 antialiased select-none pb-24 md:pb-8 min-h-screen">
|
||||
<body class="text-stone-800 antialiased select-none pb-28 md:pb-8 min-h-screen">
|
||||
|
||||
<!-- Responsive App Container (手机与电脑自适应) -->
|
||||
<div id="app" class="w-full max-w-5xl mx-auto min-h-screen bg-slate-50/70 shadow-xl relative flex flex-col transition-all duration-300">
|
||||
<!-- Responsive App Container (温暖治愈微拟物卡片外壳) -->
|
||||
<div id="app" class="w-full max-w-5xl mx-auto min-h-screen md:min-h-[92vh] bg-white/95 backdrop-blur-2xl shadow-soft-lg md:rounded-[36px] md:my-5 md:border md:border-stone-200/60 relative flex flex-col transition-all duration-300 overflow-hidden">
|
||||
|
||||
<!-- TOP HEADER: WARM, ELEGANT & USER-FOCUSED (自适应单行紧凑设计,专注宝宝与看护人) -->
|
||||
<header class="sticky top-0 z-40 bg-white/95 backdrop-blur-md border-b border-slate-200/80 px-4 md:px-6 py-2.5 shadow-2xs">
|
||||
<header class="sticky top-0 z-40 bg-white/90 backdrop-blur-md border-b border-stone-200/60 px-4 md:px-6 py-2.5 shadow-2xs">
|
||||
<div class="flex items-center justify-between">
|
||||
|
||||
<!-- 左侧:宝宝身份与成长阶段 (点击可进入档案或切换宝宝) -->
|
||||
<button id="babySelectorBtn" class="flex items-center space-x-2.5 active:scale-95 transition text-left group">
|
||||
<div id="babyAvatarDot" class="w-9 h-9 rounded-full bg-blue-500 text-white font-extrabold text-sm flex items-center justify-center shadow-xs border-2 border-white ring-1 ring-slate-100">
|
||||
<div id="babyAvatarDot" class="w-9 h-9 rounded-full bg-gradient-to-tr from-amber-400 to-orange-400 text-white font-black text-sm flex items-center justify-center shadow-xs border-2 border-white ring-1 ring-amber-100">
|
||||
嘟
|
||||
</div>
|
||||
<div>
|
||||
<div class="flex items-center space-x-1.5">
|
||||
<span id="currentBabyName" class="font-extrabold text-sm text-slate-900 group-hover:text-indigo-600 transition">嘟嘟</span>
|
||||
<span class="text-[10px] text-slate-400 group-hover:text-indigo-500 transition">▼</span>
|
||||
<span id="currentBabyName" class="font-black text-sm text-stone-900 group-hover:text-amber-600 transition">嘟嘟</span>
|
||||
<span class="text-[10px] text-stone-400 group-hover:text-amber-500 transition">▼</span>
|
||||
</div>
|
||||
<div class="flex items-center space-x-1 mt-0.5">
|
||||
<span id="headerFamilyNameBadge" class="text-[9px] font-bold text-indigo-700 bg-indigo-50 border border-indigo-200/80 px-1.5 py-0.2 rounded-md truncate max-w-[90px]" title="点击管理或切换家庭">🏡 小花园之家</span>
|
||||
<span id="currentBabyAge" class="text-[10px] text-slate-400 font-medium">42天</span>
|
||||
<span id="headerFamilyNameBadge" class="text-[9px] font-bold text-amber-800 bg-amber-50 border border-amber-200/80 px-1.5 py-0.2 rounded-md truncate max-w-[90px]" title="点击管理或切换家庭">🏡 小花园之家</span>
|
||||
<span id="currentBabyAge" class="text-[10px] text-stone-400 font-medium">42天</span>
|
||||
</div>
|
||||
</div>
|
||||
</button>
|
||||
|
||||
<!-- 中间:桌面端专属主导航条 (md:flex 展现,移动端隐藏) -->
|
||||
<nav id="desktopNavTabs" class="hidden md:flex items-center space-x-1 bg-slate-100/90 p-1 rounded-2xl border border-slate-200/70">
|
||||
<button class="tab-btn active px-4 py-1.5 rounded-xl text-xs text-indigo-600 font-bold bg-white shadow-2xs transition flex items-center space-x-1" data-target="quick">
|
||||
<nav id="desktopNavTabs" class="hidden md:flex items-center space-x-1 bg-stone-100/90 p-1 rounded-2xl border border-stone-200/70">
|
||||
<button class="tab-btn active px-4 py-1.5 rounded-xl text-xs text-amber-900 font-bold bg-white shadow-2xs transition flex items-center space-x-1" data-target="quick">
|
||||
<span>⚡</span>
|
||||
<span>快速打卡</span>
|
||||
</button>
|
||||
<button class="tab-btn px-4 py-1.5 rounded-xl text-xs text-slate-500 hover:text-slate-800 font-semibold transition flex items-center space-x-1" data-target="dashboard">
|
||||
<button class="tab-btn px-4 py-1.5 rounded-xl text-xs text-stone-500 hover:text-stone-800 font-semibold transition flex items-center space-x-1" data-target="dashboard">
|
||||
<span>📊</span>
|
||||
<span>统计看板</span>
|
||||
</button>
|
||||
<button class="tab-btn px-4 py-1.5 rounded-xl text-xs text-slate-500 hover:text-slate-800 font-semibold transition flex items-center space-x-1" data-target="guides">
|
||||
<button class="tab-btn px-4 py-1.5 rounded-xl text-xs text-stone-500 hover:text-stone-800 font-semibold transition flex items-center space-x-1" data-target="guides">
|
||||
<span>📖</span>
|
||||
<span>护理视频</span>
|
||||
</button>
|
||||
<button class="tab-btn px-4 py-1.5 rounded-xl text-xs text-slate-500 hover:text-slate-800 font-semibold transition flex items-center space-x-1" data-target="profile">
|
||||
<button class="tab-btn px-4 py-1.5 rounded-xl text-xs text-stone-500 hover:text-stone-800 font-semibold transition flex items-center space-x-1" data-target="profile">
|
||||
<span>👶</span>
|
||||
<span>宝贝档案</span>
|
||||
</button>
|
||||
@@ -74,17 +74,17 @@
|
||||
<!-- 右侧:看护人称谓与快捷流水入口 -->
|
||||
<div class="flex items-center space-x-2">
|
||||
<!-- 身份称呼:表明当前记录人,点击自由切换宝妈/宝爸/月嫂 -->
|
||||
<button id="roleSelectorBtn" class="flex items-center space-x-1.5 bg-slate-100 hover:bg-slate-200 active:scale-95 transition px-3 py-1.5 rounded-full text-xs font-bold text-slate-700 shadow-2xs" title="点击切换当前记录身份">
|
||||
<button id="roleSelectorBtn" class="flex items-center space-x-1.5 bg-stone-100 hover:bg-stone-200 active:scale-95 transition px-3 py-1.5 rounded-full text-xs font-bold text-stone-700 shadow-2xs" title="点击切换当前记录身份">
|
||||
<span id="currentOperatorIcon">👩</span>
|
||||
<span id="currentOperatorName">宝妈</span>
|
||||
<span class="text-[10px] text-slate-400">▼</span>
|
||||
<span class="text-[10px] text-stone-400">▼</span>
|
||||
</button>
|
||||
|
||||
<!-- 快捷流水气泡入口:随时查看今日明细 -->
|
||||
<button onclick="openTimelineModal()" class="flex items-center space-x-1 bg-indigo-50 hover:bg-indigo-100 text-indigo-700 active:scale-95 transition px-2.5 py-1.5 rounded-full text-xs font-bold border border-indigo-200/60 shadow-2xs" title="查看今日所有操作流水">
|
||||
<button onclick="openTimelineModal()" class="flex items-center space-x-1 bg-amber-50 hover:bg-amber-100 text-amber-800 active:scale-95 transition px-2.5 py-1.5 rounded-full text-xs font-bold border border-amber-200/60 shadow-2xs" title="查看今日所有操作流水">
|
||||
<span>📋</span>
|
||||
<span>流水</span>
|
||||
<span id="headerTimelineCountBadge" class="bg-indigo-600 text-white text-[10px] px-1.5 py-0.2 rounded-full min-w-[16px] text-center">0</span>
|
||||
<span id="headerTimelineCountBadge" class="bg-amber-500 text-white text-[10px] px-1.5 py-0.2 rounded-full min-w-[16px] text-center">0</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -108,123 +108,207 @@
|
||||
<!-- 核心高频打卡卡片群 (手机单列垂直流,电脑端三列并排大盘) -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-3.5">
|
||||
|
||||
<!-- 1. 🍼 喂养打卡卡片 (距上次喂奶已逝时间直接融合) -->
|
||||
<div class="bg-white border border-amber-200 rounded-3xl p-4 shadow-xs space-y-2.5 flex flex-col justify-between">
|
||||
<!-- 1. 🍼 喂养打卡卡片 (支持 🤱 亲喂按时长与 🍼 瓶喂按容量 双模式切换) -->
|
||||
<div id="cardFeeding" class="bg-white border border-amber-200/90 rounded-3xl p-4 shadow-soft space-y-2 flex flex-col justify-between transition-all">
|
||||
<div>
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="flex items-center space-x-2.5">
|
||||
<span class="text-2xl p-2 bg-amber-500 text-white rounded-2xl shadow-xs">🍼</span>
|
||||
<div>
|
||||
<div class="flex items-center space-x-2">
|
||||
<span class="font-black text-slate-900 text-sm">喂奶打卡</span>
|
||||
<button class="text-[10px] font-bold text-amber-700 bg-amber-100 hover:bg-amber-200 px-2 py-0.5 rounded-full" onclick="openCareGuideModal('guide-bottle')">💡手法</button>
|
||||
<div class="flex items-center justify-between gap-1">
|
||||
<div class="flex items-center space-x-2 min-w-0">
|
||||
<span id="feedingCardIcon" class="text-xl p-2 bg-amber-500 text-white rounded-2xl shadow-xs shrink-0">🍼</span>
|
||||
<div class="min-w-0">
|
||||
<div class="flex items-center space-x-1.5">
|
||||
<span id="feedingCardTitle" class="font-black text-stone-900 text-sm whitespace-nowrap">喂奶打卡</span>
|
||||
<button class="w-5 h-5 rounded-full bg-amber-100/90 hover:bg-amber-200 text-amber-800 flex items-center justify-center text-[11px] transition shrink-0 active:scale-90" onclick="openCareGuideModal('guide-bottle')" title="查看喂奶规范手法视频">💡</button>
|
||||
</div>
|
||||
<div id="feedLastSummary" class="text-[11px] text-slate-500 mt-0.5">上次: --</div>
|
||||
<div id="feedLastSummary" class="text-[11px] text-stone-500 mt-0.5 truncate">上次: --</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 距上次喂奶已逝时间 -->
|
||||
<div class="text-right">
|
||||
<span id="lastFeedingTime" class="text-xs font-black text-amber-700 bg-amber-50 border border-amber-200/80 px-2.5 py-1 rounded-xl">距上次 --</span>
|
||||
<div class="text-right shrink-0">
|
||||
<span id="lastFeedingTime" class="text-xs font-black text-amber-800 bg-amber-50 border border-amber-200/80 px-2 py-1 rounded-xl whitespace-nowrap inline-block">距上次 --</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 亲喂 vs 瓶喂 分段模式切换 Tab (各角色自动记忆偏好) -->
|
||||
<div class="flex p-0.5 bg-amber-100/70 rounded-xl text-xs font-bold mt-2 mb-1">
|
||||
<button id="btnModeBreastfeed" class="flex-1 py-1.5 rounded-lg transition text-stone-600 flex items-center justify-center space-x-1 whitespace-nowrap font-bold" onclick="setFeedingMode('breastfeed')">
|
||||
<span>🤱 亲喂 (时长)</span>
|
||||
</button>
|
||||
<button id="btnModeBottle" class="flex-1 py-1.5 rounded-lg transition bg-white text-amber-900 shadow-2xs flex items-center justify-center space-x-1 whitespace-nowrap font-bold" onclick="setFeedingMode('bottle')">
|
||||
<span>🍼 瓶喂 (容量)</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- 觅食/超时间隔温和提示 (仅超时时显示) -->
|
||||
<div id="feedingAlertBanner" class="hidden text-[11px] text-amber-900 bg-amber-100 border border-amber-300/80 px-3 py-1.5 rounded-xl font-bold flex items-center justify-between mt-2">
|
||||
<div id="feedingAlertBanner" class="hidden text-[11px] text-amber-900 bg-amber-100 border border-amber-300/80 px-3 py-1.5 rounded-xl font-bold flex items-center justify-between mt-1.5">
|
||||
<span>⏰ 已达月龄推荐喂养间隔,可留意寻乳/觅食信号</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 快捷操作按键群 -->
|
||||
<div class="flex items-center space-x-1.5 pt-2">
|
||||
<button class="flex-1 bg-amber-500 hover:bg-amber-600 active:scale-98 text-white font-extrabold text-xs py-3 rounded-2xl shadow-xs transition flex items-center justify-center space-x-1" onclick="quickLogBottleDefault()">
|
||||
<span>秒记</span>
|
||||
<span id="btnLastBottleAmount" class="underline decoration-white/60">120ml</span>
|
||||
</button>
|
||||
<button class="bg-amber-100 hover:bg-amber-200 active:scale-95 text-amber-800 font-bold text-xs px-2.5 py-3 rounded-2xl transition" onclick="openBottleAdjustModal()" title="自定义本次冲奶量">
|
||||
改量
|
||||
</button>
|
||||
<button class="bg-rose-50 hover:bg-rose-100 active:scale-95 text-rose-700 font-bold text-xs px-3 py-3 rounded-2xl border border-rose-200 transition" onclick="handleQuickBreastfeed()" title="亲喂双侧时长">
|
||||
🤱 亲喂
|
||||
<!-- 模式 A: 🍼 瓶喂操作区 (纯极速秒记按键) -->
|
||||
<div id="feedBottleSection" class="pt-1">
|
||||
<button class="w-full bg-gradient-to-r from-amber-500 to-amber-600 hover:from-amber-600 hover:to-amber-700 active:scale-98 text-white font-black text-xs sm:text-sm py-3.5 rounded-2xl shadow-xs transition flex items-center justify-center space-x-1.5 whitespace-nowrap cursor-pointer" onclick="quickLogBottleDefault()">
|
||||
<span>🍼 秒记瓶喂</span>
|
||||
<span id="btnLastBottleAmount" class="underline decoration-white/60 font-mono text-sm">120ml</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 2. 😴 睡眠打卡卡片 (当前状态与已逝时长直接融合) -->
|
||||
<div id="btnSleepCard" class="bg-white border border-purple-200 rounded-3xl p-4 shadow-xs space-y-2.5 flex flex-col justify-between">
|
||||
<div>
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="flex items-center space-x-2.5">
|
||||
<span id="sleepToggleIcon" class="text-2xl p-2 bg-purple-600 text-white rounded-2xl shadow-xs">😴</span>
|
||||
<div>
|
||||
<div class="flex items-center space-x-2">
|
||||
<span id="sleepCardTitle" class="font-black text-slate-900 text-sm">睡眠打卡</span>
|
||||
<button class="text-[10px] font-bold text-purple-700 bg-purple-100 hover:bg-purple-200 px-2 py-0.5 rounded-full" onclick="openCareGuideModal('guide-sleep')">💡手法</button>
|
||||
</div>
|
||||
<div id="currentSleepStateDetail" class="text-[11px] text-slate-500 mt-0.5">宝宝清醒中</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 当前状态与已逝时长 -->
|
||||
<div class="text-right">
|
||||
<span id="currentSleepStateTitle" class="text-xs font-black text-purple-700 bg-purple-50 border border-purple-200/80 px-2.5 py-1 rounded-xl">清醒 35分钟</span>
|
||||
</div>
|
||||
<!-- 模式 B: 🤱 亲喂操作区 (纯极速打卡与倒计时按键) -->
|
||||
<div id="feedBreastfeedSection" class="hidden pt-1">
|
||||
<div class="flex items-center space-x-2">
|
||||
<button id="btnStartBfTimer" class="flex-1 bg-gradient-to-r from-rose-500 to-pink-500 hover:from-rose-600 hover:to-pink-600 active:scale-98 text-white font-black text-xs sm:text-sm py-3.5 rounded-2xl shadow-xs transition flex items-center justify-center space-x-1.5 whitespace-nowrap cursor-pointer" onclick="handleStartBfCountdown()">
|
||||
<span>⏱️ 亲喂倒计时</span>
|
||||
<span id="quickBfDurationText" class="opacity-90 underline decoration-white/60 font-mono text-xs">20m</span>
|
||||
</button>
|
||||
<button id="btnBfFocusExpand" class="hidden bg-rose-100 hover:bg-rose-200 text-rose-800 font-bold text-xs px-3 py-3.5 rounded-2xl transition shrink-0 whitespace-nowrap cursor-pointer" onclick="openFocusModal('breastfeed')" title="放大全屏专注模式">
|
||||
🔍 专注
|
||||
</button>
|
||||
<button class="bg-rose-100 hover:bg-rose-200 active:scale-95 text-rose-800 font-bold text-xs sm:text-sm px-4 py-3.5 rounded-2xl transition shrink-0 whitespace-nowrap cursor-pointer" onclick="quickLogBreastfeedDefault()" title="以当前时刻倒推默认时长直接秒记">
|
||||
<span>⚡ 秒记</span>
|
||||
<span id="quickBfSecText" class="opacity-90 font-mono text-xs">20m</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 一键状态切换大按键 -->
|
||||
<div class="pt-2">
|
||||
<button id="btnSleepToggle" class="w-full bg-gradient-to-r from-purple-600 to-indigo-600 hover:from-purple-700 hover:to-indigo-700 active:scale-98 text-white font-extrabold text-xs py-3.5 rounded-2xl shadow-md transition flex items-center justify-center space-x-2" onclick="handleQuickSleepToggle()">
|
||||
<span id="sleepToggleActionText">🌙 宝宝睡下了 (点击开始计时)</span>
|
||||
</div>
|
||||
|
||||
<!-- 2. 😴 睡眠打卡卡片 (支持倒计时、已安睡时长感知与放大全屏专注) -->
|
||||
<div id="btnSleepCard" class="bg-white border border-purple-200/90 rounded-3xl p-4 shadow-soft space-y-2 flex flex-col justify-between transition-all">
|
||||
<div>
|
||||
<div class="flex items-center justify-between gap-1">
|
||||
<div class="flex items-center space-x-2 min-w-0">
|
||||
<span id="sleepToggleIcon" class="text-xl p-2 bg-purple-600 text-white rounded-2xl shadow-xs shrink-0">😴</span>
|
||||
<div class="min-w-0">
|
||||
<div class="flex items-center space-x-1.5">
|
||||
<span id="sleepCardTitle" class="font-black text-stone-900 text-sm whitespace-nowrap">睡眠打卡</span>
|
||||
<button class="w-5 h-5 rounded-full bg-purple-100/90 hover:bg-purple-200 text-purple-700 flex items-center justify-center text-[11px] transition shrink-0 active:scale-90" onclick="openCareGuideModal('guide-sleep')" title="查看睡眠安抚规范手法视频">💡</button>
|
||||
</div>
|
||||
<div id="currentSleepStateDetail" class="text-[11px] text-stone-500 mt-0.5 truncate">宝宝清醒中</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 当前状态与已逝时长 -->
|
||||
<div class="text-right flex items-center space-x-1.5 shrink-0">
|
||||
<span id="currentSleepStateTitle" class="text-xs font-black text-purple-700 bg-purple-50 border border-purple-200/80 px-2 py-1 rounded-xl whitespace-nowrap inline-block">清醒中</span>
|
||||
<!-- 正在睡觉时提供放大专注大视窗入口 -->
|
||||
<button id="btnSleepFocusExpand" class="hidden text-xs text-purple-700 bg-purple-100 hover:bg-purple-200 px-2 py-1 rounded-xl font-bold whitespace-nowrap" onclick="openFocusModal('sleep')" title="放大全屏夜间睡眠专注大屏">
|
||||
🔍 专注
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 睡眠规律建议标签 -->
|
||||
<div class="flex items-center justify-between text-xs font-semibold px-2.5 py-1.5 bg-purple-50/70 rounded-xl border border-purple-100/70 text-purple-900 mt-2 mb-1">
|
||||
<span class="flex items-center space-x-1.5"><span class="text-sm">💤</span><span>建议小睡 1.5~2小时</span></span>
|
||||
<span class="text-[10px] text-purple-600 font-bold">规律作息培养</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 一键状态切换大按键与快捷补录 -->
|
||||
<div class="flex items-center space-x-1.5 pt-1">
|
||||
<button id="btnSleepToggle" class="flex-1 bg-gradient-to-r from-purple-600 to-indigo-600 hover:from-purple-700 hover:to-indigo-700 active:scale-98 text-white font-black text-xs py-3 rounded-2xl shadow-xs transition flex items-center justify-center space-x-2 whitespace-nowrap" onclick="handleQuickSleepToggle()">
|
||||
<span id="sleepToggleActionText">🌙 宝宝睡下了 (开始计时)</span>
|
||||
</button>
|
||||
<button class="bg-purple-100 hover:bg-purple-200 active:scale-95 text-purple-800 font-bold text-xs px-2.5 py-3 rounded-2xl transition shrink-0 whitespace-nowrap" onclick="openRetroRecordModal()" title="补录既往睡眠记录">
|
||||
+补录
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 3. 💧 换尿布卡片 (距上次更换已逝时间直接融合) -->
|
||||
<div class="bg-white border border-sky-200 rounded-3xl p-4 shadow-xs space-y-2.5 flex flex-col justify-between">
|
||||
<div class="bg-white border border-sky-200/90 rounded-3xl p-4 shadow-soft space-y-2 flex flex-col justify-between transition-all">
|
||||
<div>
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="flex items-center space-x-2.5">
|
||||
<span class="text-2xl p-2 bg-sky-500 text-white rounded-2xl shadow-xs">💧</span>
|
||||
<div>
|
||||
<div class="flex items-center space-x-2">
|
||||
<span class="font-black text-slate-900 text-sm">换尿布打卡</span>
|
||||
<button class="text-[10px] font-bold text-sky-700 bg-sky-100 hover:bg-sky-200 px-2 py-0.5 rounded-full" onclick="openCareGuideModal('guide-diaper')">💡手法</button>
|
||||
<div class="flex items-center justify-between gap-1">
|
||||
<div class="flex items-center space-x-2 min-w-0">
|
||||
<span class="text-xl p-2 bg-sky-500 text-white rounded-2xl shadow-xs shrink-0">💧</span>
|
||||
<div class="min-w-0">
|
||||
<div class="flex items-center space-x-1.5">
|
||||
<span class="font-black text-stone-900 text-sm whitespace-nowrap">换尿布打卡</span>
|
||||
<button class="w-5 h-5 rounded-full bg-sky-100/90 hover:bg-sky-200 text-sky-700 flex items-center justify-center text-[11px] transition shrink-0 active:scale-90" onclick="openCareGuideModal('guide-diaper')" title="查看换尿布护臀规范手法视频">💡</button>
|
||||
</div>
|
||||
<div id="lastDiaperDetail" class="text-[11px] text-slate-500 mt-0.5">上次: --</div>
|
||||
<div id="lastDiaperDetail" class="text-[11px] text-stone-500 mt-0.5 truncate">上次: --</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 距上次更换已逝时间 -->
|
||||
<div class="text-right">
|
||||
<span id="lastDiaperTime" class="text-xs font-black text-sky-700 bg-sky-50 border border-sky-200/80 px-2.5 py-1 rounded-xl">距上次 --</span>
|
||||
<div class="text-right shrink-0">
|
||||
<span id="lastDiaperTime" class="text-xs font-black text-sky-700 bg-sky-50 border border-sky-200/80 px-2 py-1 rounded-xl whitespace-nowrap inline-block">距上次 --</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 护臀干爽建议 -->
|
||||
<div class="flex items-center justify-between text-xs font-semibold px-2.5 py-1.5 bg-sky-50/70 rounded-xl border border-sky-100/70 text-sky-900 mt-2 mb-1">
|
||||
<span class="flex items-center space-x-1.5"><span class="text-sm">🛡️</span><span>勤换护臀 · 保持干爽</span></span>
|
||||
<span class="text-[10px] text-sky-600 font-bold">即触即记</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 双大按键并排一触即发 -->
|
||||
<div class="grid grid-cols-2 gap-2 pt-2">
|
||||
<button class="bg-sky-500 hover:bg-sky-600 active:scale-98 text-white font-extrabold text-xs py-3 rounded-2xl shadow-xs transition flex items-center justify-center space-x-1.5" onclick="handleQuickDiaper('pee')">
|
||||
<span>💧</span>
|
||||
<span>嘘嘘 (纯小便)</span>
|
||||
<!-- 三大快捷按键一触即发 -->
|
||||
<div class="grid grid-cols-3 gap-2 pt-1">
|
||||
<button class="bg-sky-500 hover:bg-sky-600 active:scale-98 text-white font-black text-xs py-3 rounded-2xl shadow-xs transition flex items-center justify-center space-x-1 whitespace-nowrap cursor-pointer" onclick="handleQuickDiaper('pee')">
|
||||
<span>💧 纯嘘嘘</span>
|
||||
</button>
|
||||
<button class="bg-emerald-600 hover:bg-emerald-700 active:scale-98 text-white font-extrabold text-xs py-3 rounded-2xl shadow-xs transition flex items-center justify-center space-x-1.5" onclick="handleQuickDiaper('poop')">
|
||||
<span>💩</span>
|
||||
<span>便便 (大便)</span>
|
||||
<button class="bg-emerald-600 hover:bg-emerald-700 active:scale-98 text-white font-black text-xs py-3 rounded-2xl shadow-xs transition flex items-center justify-center space-x-1 whitespace-nowrap cursor-pointer" onclick="handleQuickDiaper('poop')">
|
||||
<span>💩 纯便便</span>
|
||||
</button>
|
||||
<button class="bg-gradient-to-r from-teal-500 to-cyan-600 hover:from-teal-600 hover:to-cyan-700 active:scale-98 text-white font-black text-xs py-3 rounded-2xl shadow-xs transition flex items-center justify-center space-x-1 whitespace-nowrap cursor-pointer" onclick="handleQuickDiaper('both')">
|
||||
<span>✨ 嘘+便</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 4. ✨ 日常保健与私人目标一键打卡 (自适应网格) -->
|
||||
<div class="bg-white border border-slate-200/90 rounded-3xl p-4 shadow-2xs space-y-2.5">
|
||||
<div class="flex items-center justify-between px-1">
|
||||
<span class="text-xs font-bold text-slate-700 flex items-center space-x-1.5">
|
||||
<span>✨</span>
|
||||
<span>日常保健与私人目标 (一键打卡)</span>
|
||||
</span>
|
||||
<span class="text-[10px] text-slate-400">在宝贝档案中增减与配置默认值</span>
|
||||
<!-- 4. 📝 今日家庭备忘待办清单 (MEMO CHECKLIST - 家人协同/勾选即完成) -->
|
||||
<div id="memoChecklistCard" class="bg-white border border-stone-200/80 rounded-3xl p-4 shadow-soft space-y-3">
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="flex items-center space-x-2">
|
||||
<span class="text-lg p-1.5 bg-indigo-50 text-indigo-600 rounded-xl">📝</span>
|
||||
<div>
|
||||
<div class="flex items-center space-x-2">
|
||||
<h3 class="font-black text-sm text-stone-900">今日家庭备忘待办清单</h3>
|
||||
<span id="memoCountBadge" class="text-[10px] font-bold text-indigo-700 bg-indigo-50 px-2 py-0.5 rounded-full border border-indigo-100">0 项待办</span>
|
||||
</div>
|
||||
<p class="text-[11px] text-stone-400">家人协同清单 · 照料事项防遗漏 · 勾选划线完成</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center space-x-1.5 shrink-0">
|
||||
<button type="button" class="text-xs bg-indigo-50 hover:bg-indigo-100 text-indigo-700 font-bold px-2.5 py-1 rounded-xl transition flex items-center space-x-1 cursor-pointer active:scale-95" onclick="openMemoHistoryModal()" title="查看并维护全量历史备忘清单">
|
||||
<span>📋</span>
|
||||
<span>历史备忘</span>
|
||||
</button>
|
||||
<button type="button" class="text-xs text-indigo-600 hover:text-indigo-800 font-bold px-1.5 py-1 cursor-pointer" onclick="focusMemoInput()">+ 添加</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 动态渲染自定义目标打卡按钮列表 (手机2列,桌面4列) -->
|
||||
<div id="quickCustomMetricsGrid" class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-2 text-xs">
|
||||
|
||||
<!-- 快捷输入行 -->
|
||||
<form id="memoAddForm" onsubmit="handleCreateMemo(event)" class="flex items-center space-x-2 bg-stone-50/90 p-2 rounded-2xl border border-stone-200/60">
|
||||
<input type="text" id="memoInputContent" placeholder="输入待办备忘 (如: 下午3点测温、补充维D3滴剂、准备温水洗澡...)" class="flex-1 bg-transparent text-xs px-2 py-1 outline-hidden text-stone-800 placeholder-stone-400 font-medium" required>
|
||||
<select id="memoDuePeriod" class="text-[11px] bg-white border border-stone-200/80 rounded-xl px-2 py-1 text-stone-600 font-bold">
|
||||
<option value="today">全天</option>
|
||||
<option value="morning">上午</option>
|
||||
<option value="afternoon">下午</option>
|
||||
<option value="evening">睡前</option>
|
||||
</select>
|
||||
<button type="submit" class="bg-indigo-600 hover:bg-indigo-700 active:scale-95 text-white text-xs font-bold px-3 py-1.5 rounded-xl transition shadow-2xs">
|
||||
添加
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<!-- 备忘待办列表容器 -->
|
||||
<div id="memoListContainer" class="space-y-1.5 max-h-56 overflow-y-auto no-scrollbar">
|
||||
<!-- Dynamic Memos rendered via JS -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 5. ✨ 日常保健与私人目标一键打卡 (自适应网格,带倒计时与微调) -->
|
||||
<div class="bg-white border border-stone-200/80 rounded-3xl p-4 shadow-soft space-y-2.5">
|
||||
<div class="flex items-center justify-between px-1">
|
||||
<span class="text-xs font-bold text-stone-700 flex items-center space-x-1.5">
|
||||
<span>✨</span>
|
||||
<span>日常保健与私人目标 (一键打卡 / 倒计时)</span>
|
||||
</span>
|
||||
<span class="text-[10px] text-stone-400">在宝贝档案中增减与配置默认值</span>
|
||||
</div>
|
||||
<!-- 动态渲染自定义目标打卡按钮列表 (手机1列,平板2列,桌面4列) -->
|
||||
<div id="quickCustomMetricsGrid" class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-2.5 text-xs">
|
||||
<!-- Dynamic Custom Quick Buttons (D3, Tummy, Temp etc.) -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -455,10 +539,16 @@
|
||||
<div id="currentFamilyMeta" class="text-[11px] text-slate-500 mt-0.5">创建人: 宝妈 · 1 位宝宝 · 3 位看护人</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="bg-indigo-600 hover:bg-indigo-700 active:scale-95 text-white font-bold text-xs px-3.5 py-1.5 rounded-2xl shadow-xs transition flex items-center space-x-1" onclick="openFamilySwitchModal()">
|
||||
<span>⇄</span>
|
||||
<span>切换家庭</span>
|
||||
</button>
|
||||
<div class="flex items-center space-x-2">
|
||||
<button type="button" class="bg-white hover:bg-indigo-50 text-indigo-700 border border-indigo-200/90 active:scale-95 font-bold text-xs px-3 py-1.5 rounded-2xl shadow-2xs transition flex items-center space-x-1 cursor-pointer" onclick="openMemoHistoryModal()" title="查看并维护家庭全量历史备忘待办">
|
||||
<span>📋</span>
|
||||
<span>历史备忘</span>
|
||||
</button>
|
||||
<button type="button" class="bg-indigo-600 hover:bg-indigo-700 active:scale-95 text-white font-bold text-xs px-3.5 py-1.5 rounded-2xl shadow-xs transition flex items-center space-x-1 cursor-pointer" onclick="openFamilySwitchModal()">
|
||||
<span>⇄</span>
|
||||
<span>切换家庭</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 微信/口令家庭邀请卡片 (为微信邀请加入打通) -->
|
||||
@@ -519,21 +609,186 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 2. 私人专属目标打卡项与指标默认值配置 (移入宝贝档案) -->
|
||||
<div class="bg-white border border-slate-200 rounded-2xl p-4 shadow-xs space-y-3">
|
||||
<div class="flex items-center justify-between border-b border-slate-100 pb-2.5">
|
||||
<div>
|
||||
<h3 class="text-xs font-black text-slate-800 flex items-center space-x-1.5">
|
||||
<span>✨</span>
|
||||
<span>私人目标打卡项与指标默认值配置</span>
|
||||
</h3>
|
||||
<p class="text-[10px] text-slate-500 mt-0.5">配置打卡时使用的默认数值与每日目标频次</p>
|
||||
<!-- ⚙️ 专属配置中心 (CARE & DEFAULT CONFIGURATION MENU) -->
|
||||
<div class="bg-white border border-slate-200/90 rounded-3xl p-4 shadow-soft space-y-4">
|
||||
<div class="border-b border-slate-100 pb-2.5">
|
||||
<div class="flex items-center space-x-2">
|
||||
<span class="text-lg p-1.5 bg-indigo-50 text-indigo-600 rounded-xl">⚙️</span>
|
||||
<div>
|
||||
<h3 class="font-black text-xs sm:text-sm text-slate-900">看护习惯与专属配置菜单</h3>
|
||||
<p class="text-[10px] text-slate-500">维护打卡默认值、看护人角色偏好与私人目标</p>
|
||||
</div>
|
||||
</div>
|
||||
<button class="text-xs bg-emerald-600 hover:bg-emerald-700 text-white px-3 py-1.5 rounded-full font-bold shadow-xs active:scale-95 transition" onclick="openAddCustomMetricModal()">+ 新建目标</button>
|
||||
</div>
|
||||
|
||||
<div id="profileCustomMetricsList" class="space-y-2">
|
||||
<!-- Dynamic list of metrics with default values and edit config button -->
|
||||
<!-- Configuration Navigation Tabs -->
|
||||
<div class="flex p-1 bg-slate-100/90 rounded-2xl text-xs font-bold gap-1">
|
||||
<button id="cfgSubTabBtnFeeding" class="flex-1 py-1.5 rounded-xl bg-white text-indigo-700 shadow-2xs transition whitespace-nowrap cursor-pointer" onclick="switchConfigSubTab('feeding')">
|
||||
🍼 喂养打卡
|
||||
</button>
|
||||
<button id="cfgSubTabBtnRoles" class="flex-1 py-1.5 rounded-xl text-slate-600 hover:text-slate-900 transition whitespace-nowrap cursor-pointer" onclick="switchConfigSubTab('roles')">
|
||||
👥 角色偏好
|
||||
</button>
|
||||
<button id="cfgSubTabBtnMetrics" class="flex-1 py-1.5 rounded-xl text-slate-600 hover:text-slate-900 transition whitespace-nowrap cursor-pointer" onclick="switchConfigSubTab('metrics')">
|
||||
✨ 私人目标
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Subpanel 1: 🍼 喂养默认模式与打卡参数配置 -->
|
||||
<div id="cfgSubPanelFeeding" class="space-y-3.5">
|
||||
<div class="bg-amber-50/70 border border-amber-200/60 rounded-2xl p-3 text-xs space-y-1">
|
||||
<div class="font-bold text-amber-900 flex items-center justify-between">
|
||||
<span>当前宝宝: <span id="cfgBabyFeedingName" class="font-black underline decoration-amber-400">--</span></span>
|
||||
<span class="text-[10px] bg-amber-200/80 text-amber-900 px-2 py-0.5 rounded-full font-bold">打卡秒记基准</span>
|
||||
</div>
|
||||
<p class="text-[11px] text-amber-800/80">配置宝宝常用的喂养方式、奶量和亲喂时长,在快速打卡中一触即记。</p>
|
||||
</div>
|
||||
|
||||
<!-- 默认喂养模式单选 -->
|
||||
<div class="space-y-1.5">
|
||||
<label class="text-xs font-bold text-slate-700">默认喂养模式:</label>
|
||||
<div class="grid grid-cols-2 gap-2 text-xs font-bold">
|
||||
<label class="flex items-center space-x-2 p-2.5 rounded-xl border border-slate-200 cursor-pointer hover:bg-slate-50 transition has-checked:border-indigo-600 has-checked:bg-indigo-50/50 has-checked:text-indigo-900">
|
||||
<input type="radio" name="cfgDefaultMode" value="bottle" class="accent-indigo-600" checked>
|
||||
<span>🍼 瓶喂 (按容量)</span>
|
||||
</label>
|
||||
<label class="flex items-center space-x-2 p-2.5 rounded-xl border border-slate-200 cursor-pointer hover:bg-slate-50 transition has-checked:border-indigo-600 has-checked:bg-indigo-50/50 has-checked:text-indigo-900">
|
||||
<input type="radio" name="cfgDefaultMode" value="breastfeed" class="accent-indigo-600">
|
||||
<span>🤱 亲喂 (按时长)</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 默认冲奶量 -->
|
||||
<div class="space-y-1.5">
|
||||
<div class="flex items-center justify-between">
|
||||
<label class="text-xs font-bold text-slate-700">默认单次瓶喂冲奶量 (ml):</label>
|
||||
<div class="flex items-center space-x-1 font-mono text-xs">
|
||||
<span id="cfgBottleMlDisplay" class="font-bold text-amber-600">120</span>
|
||||
<span class="text-slate-400">ml</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid grid-cols-5 gap-1 text-xs text-center font-bold">
|
||||
<button type="button" class="cfg-bottle-chip py-1.5 rounded-xl bg-slate-100 hover:bg-amber-100 transition cursor-pointer" onclick="setCfgBottlePreset(60)">60</button>
|
||||
<button type="button" class="cfg-bottle-chip py-1.5 rounded-xl bg-slate-100 hover:bg-amber-100 transition cursor-pointer" onclick="setCfgBottlePreset(90)">90</button>
|
||||
<button type="button" class="cfg-bottle-chip active py-1.5 rounded-xl bg-amber-500 text-white transition cursor-pointer" onclick="setCfgBottlePreset(120)">120</button>
|
||||
<button type="button" class="cfg-bottle-chip py-1.5 rounded-xl bg-slate-100 hover:bg-amber-100 transition cursor-pointer" onclick="setCfgBottlePreset(150)">150</button>
|
||||
<button type="button" class="cfg-bottle-chip py-1.5 rounded-xl bg-slate-100 hover:bg-amber-100 transition cursor-pointer" onclick="setCfgBottlePreset(180)">180</button>
|
||||
</div>
|
||||
<input type="number" id="cfgInputBottleMl" value="120" min="10" max="350" step="5" class="w-full bg-slate-50 border border-slate-200 rounded-xl px-3 py-1.5 text-xs text-slate-800 font-bold outline-hidden focus:border-indigo-500" oninput="onCfgBottleInput(this.value)">
|
||||
</div>
|
||||
|
||||
<!-- 默认亲喂目标时长 -->
|
||||
<div class="space-y-1.5">
|
||||
<div class="flex items-center justify-between">
|
||||
<label class="text-xs font-bold text-slate-700">默认亲喂目标时长 (分钟):</label>
|
||||
<div class="flex items-center space-x-1 font-mono text-xs">
|
||||
<span id="cfgBfMinDisplay" class="font-bold text-rose-600">20</span>
|
||||
<span class="text-slate-400">分钟</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid grid-cols-4 gap-1 text-xs text-center font-bold">
|
||||
<button type="button" class="cfg-bf-chip py-1.5 rounded-xl bg-slate-100 hover:bg-rose-100 transition cursor-pointer" onclick="setCfgBfPreset(15)">15m</button>
|
||||
<button type="button" class="cfg-bf-chip active py-1.5 rounded-xl bg-rose-500 text-white transition cursor-pointer" onclick="setCfgBfPreset(20)">20m</button>
|
||||
<button type="button" class="cfg-bf-chip py-1.5 rounded-xl bg-slate-100 hover:bg-rose-100 transition cursor-pointer" onclick="setCfgBfPreset(25)">25m</button>
|
||||
<button type="button" class="cfg-bf-chip py-1.5 rounded-xl bg-slate-100 hover:bg-rose-100 transition cursor-pointer" onclick="setCfgBfPreset(30)">30m</button>
|
||||
</div>
|
||||
<input type="number" id="cfgInputBfMinutes" value="20" min="5" max="60" step="1" class="w-full bg-slate-50 border border-slate-200 rounded-xl px-3 py-1.5 text-xs text-slate-800 font-bold outline-hidden focus:border-indigo-500" oninput="onCfgBfInput(this.value)">
|
||||
</div>
|
||||
|
||||
<!-- 默认奶液类型 -->
|
||||
<div class="space-y-1.5">
|
||||
<label class="text-xs font-bold text-slate-700">默认奶液类型:</label>
|
||||
<div class="grid grid-cols-2 gap-2 text-xs font-bold">
|
||||
<label class="flex items-center space-x-2 p-2 rounded-xl border border-slate-200 cursor-pointer hover:bg-slate-50 transition has-checked:border-indigo-600 has-checked:bg-indigo-50/50 has-checked:text-indigo-900">
|
||||
<input type="radio" name="cfgDefaultMilkType" value="formula" class="accent-indigo-600" checked>
|
||||
<span>🍼 配方奶粉</span>
|
||||
</label>
|
||||
<label class="flex items-center space-x-2 p-2 rounded-xl border border-slate-200 cursor-pointer hover:bg-slate-50 transition has-checked:border-indigo-600 has-checked:bg-indigo-50/50 has-checked:text-indigo-900">
|
||||
<input type="radio" name="cfgDefaultMilkType" value="breast_milk" class="accent-indigo-600">
|
||||
<span>💧 母乳/冷藏储奶</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button type="button" class="w-full bg-indigo-600 hover:bg-indigo-700 active:scale-98 text-white font-bold text-xs py-2.5 rounded-2xl shadow-xs transition flex items-center justify-center space-x-1.5 cursor-pointer" onclick="saveBabyFeedingDefaults()">
|
||||
<span>💾 保存宝宝喂养打卡默认配置</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Subpanel 2: 👥 看护人角色记忆与偏好配置 -->
|
||||
<div id="cfgSubPanelRoles" class="hidden space-y-3.5">
|
||||
<div class="bg-indigo-50/70 border border-indigo-200/60 rounded-2xl p-3 text-xs space-y-1">
|
||||
<div class="font-bold text-indigo-900 flex items-center justify-between">
|
||||
<span>👥 各角色专属打卡习惯</span>
|
||||
<span class="text-[10px] bg-indigo-200/80 text-indigo-900 px-2 py-0.5 rounded-full font-bold">云端独立记忆</span>
|
||||
</div>
|
||||
<p class="text-[11px] text-indigo-800/80">宝妈常亲喂、宝爸/月嫂常瓶喂?为各家庭成员定制专属模式与容量,打卡自动适配。</p>
|
||||
</div>
|
||||
|
||||
<!-- 成员选择 -->
|
||||
<div class="space-y-1.5">
|
||||
<label class="text-xs font-bold text-slate-700">选择要配置的看护人角色:</label>
|
||||
<select id="cfgRoleSelect" onchange="loadRoleConfigForSelectedRole()" class="w-full bg-white border border-slate-200 rounded-xl px-3 py-2 text-xs font-bold text-slate-800 outline-hidden focus:border-indigo-500">
|
||||
<!-- Dynamic populated roles -->
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- 该角色喂养模式 -->
|
||||
<div class="space-y-1.5">
|
||||
<label class="text-xs font-bold text-slate-700">该角色打卡模式偏好:</label>
|
||||
<div class="grid grid-cols-3 gap-1.5 text-xs font-bold">
|
||||
<label class="flex items-center justify-center p-2 rounded-xl border border-slate-200 cursor-pointer text-center hover:bg-slate-50 transition has-checked:border-indigo-600 has-checked:bg-indigo-50/50 has-checked:text-indigo-900">
|
||||
<input type="radio" name="cfgRoleMode" value="" class="accent-indigo-600 sr-only" checked>
|
||||
<span>🔄 跟随宝宝</span>
|
||||
</label>
|
||||
<label class="flex items-center justify-center p-2 rounded-xl border border-slate-200 cursor-pointer text-center hover:bg-slate-50 transition has-checked:border-indigo-600 has-checked:bg-indigo-50/50 has-checked:text-indigo-900">
|
||||
<input type="radio" name="cfgRoleMode" value="bottle" class="accent-indigo-600 sr-only">
|
||||
<span>🍼 瓶喂</span>
|
||||
</label>
|
||||
<label class="flex items-center justify-center p-2 rounded-xl border border-slate-200 cursor-pointer text-center hover:bg-slate-50 transition has-checked:border-indigo-600 has-checked:bg-indigo-50/50 has-checked:text-indigo-900">
|
||||
<input type="radio" name="cfgRoleMode" value="breastfeed" class="accent-indigo-600 sr-only">
|
||||
<span>🤱 亲喂</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 该角色瓶喂容量 -->
|
||||
<div class="space-y-1.5">
|
||||
<div class="flex items-center justify-between">
|
||||
<label class="text-xs font-bold text-slate-700">该角色常用瓶喂奶量 (ml):</label>
|
||||
<span class="text-[10px] text-slate-400">留空则跟随宝宝默认</span>
|
||||
</div>
|
||||
<input type="number" id="cfgRoleBottleMl" placeholder="跟随宝宝默认 (如120)" min="10" max="350" step="5" class="w-full bg-slate-50 border border-slate-200 rounded-xl px-3 py-1.5 text-xs text-slate-800 font-bold outline-hidden focus:border-indigo-500">
|
||||
</div>
|
||||
|
||||
<!-- 该角色亲喂时长 -->
|
||||
<div class="space-y-1.5">
|
||||
<div class="flex items-center justify-between">
|
||||
<label class="text-xs font-bold text-slate-700">该角色常用亲喂目标时长 (分钟):</label>
|
||||
<span class="text-[10px] text-slate-400">留空则跟随宝宝默认</span>
|
||||
</div>
|
||||
<input type="number" id="cfgRoleBfMinutes" placeholder="跟随宝宝默认 (如20)" min="5" max="60" step="1" class="w-full bg-slate-50 border border-slate-200 rounded-xl px-3 py-1.5 text-xs text-slate-800 font-bold outline-hidden focus:border-indigo-500">
|
||||
</div>
|
||||
|
||||
<button type="button" class="w-full bg-indigo-600 hover:bg-indigo-700 active:scale-98 text-white font-bold text-xs py-2.5 rounded-2xl shadow-xs transition flex items-center justify-center space-x-1.5 cursor-pointer" onclick="saveRolePreferencesFromProfile()">
|
||||
<span>💾 保存该角色专属偏好</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Subpanel 3: ✨ 私人专属目标打卡项维护 -->
|
||||
<div id="cfgSubPanelMetrics" class="hidden space-y-3.5">
|
||||
<div class="flex items-center justify-between border-b border-slate-100 pb-2">
|
||||
<div>
|
||||
<h4 class="text-xs font-black text-slate-800">自定义目标与预设值维护</h4>
|
||||
<p class="text-[10px] text-slate-500">配置打卡默认数值、单位与每日达标频次</p>
|
||||
</div>
|
||||
<button class="text-xs bg-emerald-600 hover:bg-emerald-700 text-white px-3 py-1.5 rounded-full font-bold shadow-xs active:scale-95 transition cursor-pointer" onclick="openAddCustomMetricModal()">+ 新建目标</button>
|
||||
</div>
|
||||
|
||||
<div id="profileCustomMetricsList" class="space-y-2">
|
||||
<!-- Dynamic list of metrics with default values and edit config button -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -541,6 +796,144 @@
|
||||
|
||||
</main>
|
||||
|
||||
<!-- ======================================================== -->
|
||||
<!-- MEMO HISTORY QUERY & MAINTENANCE MODAL (历史备忘查询与维护弹窗) -->
|
||||
<!-- ======================================================== -->
|
||||
<div id="memoHistoryModal" class="fixed inset-0 bg-black/60 z-50 hidden flex items-end md:items-center justify-center backdrop-blur-xs p-0 md:p-4">
|
||||
<div class="bg-white rounded-t-3xl md:rounded-3xl max-w-md md:max-w-2xl w-full max-h-[88vh] flex flex-col shadow-2xl mx-auto pb-2">
|
||||
<!-- Modal Header -->
|
||||
<div class="p-4 border-b border-slate-100 flex items-center justify-between">
|
||||
<div class="flex items-center space-x-2.5">
|
||||
<span class="text-xl p-2 bg-indigo-50 text-indigo-600 rounded-2xl shadow-2xs">📋</span>
|
||||
<div>
|
||||
<div class="flex items-center space-x-2">
|
||||
<h3 class="font-extrabold text-sm sm:text-base text-slate-900">家庭备忘清单与历史归档</h3>
|
||||
<span id="memoHistoryTotalCountBadge" class="text-[10px] font-bold text-indigo-700 bg-indigo-50 px-2 py-0.5 rounded-full border border-indigo-100">0 条记录</span>
|
||||
</div>
|
||||
<p class="text-[11px] text-slate-500 mt-0.5">全量待办检索 · 历史完成追溯 · 待办内容与时段维护</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center space-x-2">
|
||||
<button type="button" class="text-xs bg-rose-50 hover:bg-rose-100 text-rose-600 font-bold px-2.5 py-1.5 rounded-xl transition flex items-center space-x-1 cursor-pointer active:scale-95" onclick="clearCompletedMemos()" title="一键清理所有已标记完成的待办">
|
||||
<span>🧹</span>
|
||||
<span>清理已完成</span>
|
||||
</button>
|
||||
<button type="button" class="text-slate-400 hover:text-slate-600 text-lg font-bold ml-1 cursor-pointer" onclick="closeModal('memoHistoryModal')">✕</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Filter & Search Toolbar -->
|
||||
<div class="p-3 border-b border-slate-100 space-y-2.5 bg-slate-50/60">
|
||||
<!-- Search Box -->
|
||||
<div class="relative">
|
||||
<input type="text" id="memoHistorySearchInput" placeholder="🔍 搜索备忘内容、创建看护人..." class="w-full bg-white border border-slate-200 rounded-xl pl-3 pr-8 py-2 text-xs text-slate-800 placeholder:text-slate-400 outline-hidden focus:border-indigo-500 font-medium" oninput="onMemoHistoryFilterChange()">
|
||||
<button type="button" id="btnClearMemoSearch" class="hidden absolute right-2.5 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 text-xs font-bold cursor-pointer" onclick="clearMemoHistorySearch()">✕</button>
|
||||
</div>
|
||||
|
||||
<!-- Dual Filter Bar (Status tabs + Period pills) -->
|
||||
<div class="flex flex-wrap items-center justify-between gap-2 text-xs">
|
||||
<!-- Status Filter -->
|
||||
<div class="flex items-center bg-white p-0.5 rounded-xl border border-slate-200/80 font-bold">
|
||||
<button type="button" class="memo-status-filter active px-2.5 py-1 rounded-lg bg-indigo-600 text-white transition cursor-pointer text-xs" data-status="all" onclick="setMemoStatusFilter('all')">
|
||||
全部 (<span id="memoCountAll">0</span>)
|
||||
</button>
|
||||
<button type="button" class="memo-status-filter px-2.5 py-1 rounded-lg text-slate-600 hover:text-slate-900 transition cursor-pointer text-xs" data-status="pending" onclick="setMemoStatusFilter('pending')">
|
||||
待办中 (<span id="memoCountPending">0</span>)
|
||||
</button>
|
||||
<button type="button" class="memo-status-filter px-2.5 py-1 rounded-lg text-slate-600 hover:text-slate-900 transition cursor-pointer text-xs" data-status="completed" onclick="setMemoStatusFilter('completed')">
|
||||
已完成 (<span id="memoCountCompleted">0</span>)
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Due Period Filter -->
|
||||
<div class="flex items-center space-x-1 overflow-x-auto no-scrollbar font-medium">
|
||||
<button type="button" class="memo-period-filter active px-2 py-0.5 rounded-lg bg-slate-200 text-slate-800 text-[11px] font-bold cursor-pointer" data-period="all" onclick="setMemoPeriodFilter('all')">全部时段</button>
|
||||
<button type="button" class="memo-period-filter px-2 py-0.5 rounded-lg bg-white border border-slate-200 text-slate-600 text-[11px] hover:bg-slate-100 cursor-pointer" data-period="today" onclick="setMemoPeriodFilter('today')">📅 全天</button>
|
||||
<button type="button" class="memo-period-filter px-2 py-0.5 rounded-lg bg-white border border-slate-200 text-slate-600 text-[11px] hover:bg-slate-100 cursor-pointer" data-period="morning" onclick="setMemoPeriodFilter('morning')">☀️ 上午</button>
|
||||
<button type="button" class="memo-period-filter px-2 py-0.5 rounded-lg bg-white border border-slate-200 text-slate-600 text-[11px] hover:bg-slate-100 cursor-pointer" data-period="afternoon" onclick="setMemoPeriodFilter('afternoon')">🌤️ 下午</button>
|
||||
<button type="button" class="memo-period-filter px-2 py-0.5 rounded-lg bg-white border border-slate-200 text-slate-600 text-[11px] hover:bg-slate-100 cursor-pointer" data-period="evening" onclick="setMemoPeriodFilter('evening')">🌙 睡前</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Scrollable Memo List -->
|
||||
<div id="memoHistoryList" class="flex-1 overflow-y-auto p-4 space-y-2.5 text-xs">
|
||||
<!-- Dynamic Memos rendered via JS -->
|
||||
</div>
|
||||
|
||||
<!-- Bottom Quick Add Bar in History Modal -->
|
||||
<div class="p-3 border-t border-slate-100 bg-white">
|
||||
<form onsubmit="handleCreateMemoFromHistory(event)" class="flex items-center space-x-2">
|
||||
<input type="text" id="historyModalInputContent" placeholder="+ 在历史备忘中快速新建待办..." class="flex-1 bg-slate-50 border border-slate-200 rounded-xl px-3 py-2 text-xs outline-hidden focus:border-indigo-500 font-medium text-slate-800" required>
|
||||
<select id="historyModalDuePeriod" class="text-[11px] bg-slate-50 border border-slate-200 rounded-xl px-2.5 py-2 text-slate-700 font-bold">
|
||||
<option value="today">全天</option>
|
||||
<option value="morning">上午</option>
|
||||
<option value="afternoon">下午</option>
|
||||
<option value="evening">睡前</option>
|
||||
</select>
|
||||
<button type="submit" class="bg-indigo-600 hover:bg-indigo-700 active:scale-95 text-white text-xs font-bold px-4 py-2 rounded-xl transition shadow-2xs whitespace-nowrap cursor-pointer">
|
||||
添加待办
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ======================================================== -->
|
||||
<!-- EDIT MEMO MODAL (编辑修改备忘待办弹窗) -->
|
||||
<!-- ======================================================== -->
|
||||
<div id="editMemoModal" class="fixed inset-0 bg-black/60 z-50 hidden flex items-center justify-center p-4 backdrop-blur-xs">
|
||||
<div class="bg-white rounded-3xl max-w-sm w-full p-5 space-y-4 shadow-2xl mx-auto">
|
||||
<div class="flex items-center justify-between border-b border-slate-100 pb-2.5">
|
||||
<div class="flex items-center space-x-2">
|
||||
<span class="text-lg">✏️</span>
|
||||
<h3 class="font-extrabold text-sm text-slate-800">编辑备忘待办</h3>
|
||||
</div>
|
||||
<button type="button" class="text-slate-400 hover:text-slate-600 text-lg font-bold cursor-pointer" onclick="closeModal('editMemoModal')">✕</button>
|
||||
</div>
|
||||
|
||||
<input type="hidden" id="editMemoId">
|
||||
|
||||
<div class="space-y-1.5">
|
||||
<label class="text-xs font-bold text-slate-700">待办事项内容:</label>
|
||||
<textarea id="editMemoContentInput" rows="3" class="w-full bg-slate-50 border border-slate-200 rounded-xl p-2.5 text-xs text-slate-800 font-medium outline-hidden focus:border-indigo-500" placeholder="输入待办事项内容..." required></textarea>
|
||||
</div>
|
||||
|
||||
<div class="space-y-1.5">
|
||||
<label class="text-xs font-bold text-slate-700">执行建议时段:</label>
|
||||
<select id="editMemoPeriodSelect" class="w-full bg-slate-50 border border-slate-200 rounded-xl px-3 py-2 text-xs font-bold text-slate-800 outline-hidden focus:border-indigo-500">
|
||||
<option value="today">📅 全天</option>
|
||||
<option value="morning">☀️ 上午</option>
|
||||
<option value="afternoon">🌤️ 下午</option>
|
||||
<option value="evening">🌙 睡前</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="space-y-1.5">
|
||||
<label class="text-xs font-bold text-slate-700">完成状态:</label>
|
||||
<div class="grid grid-cols-2 gap-2 text-xs font-bold">
|
||||
<label class="flex items-center space-x-2 p-2 rounded-xl border border-slate-200 cursor-pointer hover:bg-slate-50 transition has-checked:border-indigo-600 has-checked:bg-indigo-50/50 has-checked:text-indigo-900">
|
||||
<input type="radio" name="editMemoStatus" value="0" class="accent-indigo-600" id="editMemoStatusPending">
|
||||
<span>⏳ 待办进行中</span>
|
||||
</label>
|
||||
<label class="flex items-center space-x-2 p-2 rounded-xl border border-slate-200 cursor-pointer hover:bg-slate-50 transition has-checked:border-emerald-600 has-checked:bg-emerald-50/50 has-checked:text-emerald-900">
|
||||
<input type="radio" name="editMemoStatus" value="1" class="accent-emerald-600" id="editMemoStatusDone">
|
||||
<span>✅ 已标记完成</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pt-2 flex items-center space-x-2">
|
||||
<button type="button" class="flex-1 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold text-xs py-2.5 rounded-2xl transition cursor-pointer" onclick="closeModal('editMemoModal')">
|
||||
取消
|
||||
</button>
|
||||
<button type="button" class="flex-1 bg-indigo-600 hover:bg-indigo-700 active:scale-98 text-white font-bold text-xs py-2.5 rounded-2xl shadow-xs transition cursor-pointer" onclick="submitEditMemo()">
|
||||
💾 保存修改
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ======================================================== -->
|
||||
<!-- PUBLIC COMMON TIMELINE DRAWER / MODAL (公共流水明细弹窗) -->
|
||||
<!-- ======================================================== -->
|
||||
@@ -1109,6 +1502,115 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- FLOATING DOCKED TIMER WIDGET (当有计时进行中且最小化时浮现) -->
|
||||
<div id="floatingTimerWidget" class="hidden fixed bottom-24 right-4 z-40 bg-stone-900/95 hover:bg-stone-900 text-white backdrop-blur-md border border-white/20 px-3.5 py-2.5 rounded-2xl shadow-xl flex items-center space-x-3 cursor-pointer transition active:scale-95" onclick="openFocusModal()">
|
||||
<span class="relative flex h-3 w-3">
|
||||
<span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-amber-400 opacity-75"></span>
|
||||
<span class="relative inline-flex rounded-full h-3 w-3 bg-amber-500"></span>
|
||||
</span>
|
||||
<div>
|
||||
<div id="floatingTimerTitle" class="text-[10px] text-amber-300 font-bold">亲喂计时中 (左侧)</div>
|
||||
<div id="floatingTimerDigits" class="text-sm font-mono font-black">15:00</div>
|
||||
</div>
|
||||
<button onclick="event.stopPropagation(); completeFocusTimerAndRecord();" class="text-xs bg-amber-500 hover:bg-amber-600 text-white font-bold px-2 py-1 rounded-xl shadow-xs" title="快速完成">
|
||||
打卡
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- FULLSCREEN FOCUS MODAL (超大号沉浸专注模式) -->
|
||||
<div id="focusModal" class="fixed inset-0 z-50 hidden flex flex-col justify-between bg-stone-950/95 text-white backdrop-blur-2xl p-6 sm:p-10 select-none transition-all duration-300">
|
||||
|
||||
<!-- 顶部控制栏 -->
|
||||
<div class="flex items-center justify-between max-w-xl w-full mx-auto">
|
||||
<div class="flex items-center space-x-2.5">
|
||||
<span id="focusActivityIcon" class="text-2xl p-2 bg-white/10 rounded-2xl">🤱</span>
|
||||
<div>
|
||||
<div class="flex items-center space-x-2">
|
||||
<h2 id="focusActivityTitle" class="font-black text-base sm:text-lg text-white">亲喂倒计时专注</h2>
|
||||
<span id="focusBabyBadge" class="text-[10px] font-bold bg-amber-400/20 text-amber-300 border border-amber-400/40 px-2 py-0.5 rounded-full">嘟嘟</span>
|
||||
</div>
|
||||
<p id="focusOperatorTip" class="text-[11px] text-stone-400 mt-0.5">当前记录人: 宝妈 · 保持静心专注</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center space-x-2">
|
||||
<button onclick="minimizeFocusModal()" class="text-xs bg-white/10 hover:bg-white/20 active:scale-95 text-stone-300 hover:text-white px-3 py-1.5 rounded-xl font-bold transition flex items-center space-x-1" title="最小化浮窗运行">
|
||||
<span>▾</span>
|
||||
<span>最小化</span>
|
||||
</button>
|
||||
<button onclick="closeFocusModal()" class="text-stone-400 hover:text-white p-1 text-xl font-bold transition" title="关闭专注窗口">
|
||||
✕
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 中心聚焦核心:大号圆形进度环与倒计时巨幅字体 -->
|
||||
<div class="flex-1 flex flex-col items-center justify-center py-4 my-auto">
|
||||
|
||||
<div class="relative flex items-center justify-center">
|
||||
<!-- SVG Circular Progress Ring (r=120, circumference=754) -->
|
||||
<svg class="w-64 h-64 sm:w-80 sm:h-80 -rotate-90 transform" viewBox="0 0 280 280">
|
||||
<circle cx="140" cy="140" r="120" stroke="#334155" stroke-width="10" fill="transparent" class="opacity-40" />
|
||||
<circle id="focusRingCircle" cx="140" cy="140" r="120" stroke="#F59E0B" stroke-width="12" fill="transparent" stroke-dasharray="754" stroke-dashoffset="0" stroke-linecap="round" class="focus-glow-ring transition-all duration-700" />
|
||||
</svg>
|
||||
|
||||
<!-- 环内信息聚焦 -->
|
||||
<div class="absolute inset-0 flex flex-col items-center justify-center text-center p-4">
|
||||
<div id="focusCurrentPhaseText" class="text-xs sm:text-sm font-bold tracking-widest text-amber-300 uppercase mb-1">
|
||||
左侧哺乳进行中
|
||||
</div>
|
||||
<div id="focusDigitsDisplay" class="font-mono font-black text-6xl sm:text-7xl md:text-8xl tracking-tight text-white drop-shadow-md">
|
||||
15:00
|
||||
</div>
|
||||
<div id="focusSubInfo" class="text-xs text-stone-400 mt-2 font-medium">
|
||||
目标: 15分钟 · 已进行: 00:00
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 亲喂专属:分侧时长实时统计与一键换侧 -->
|
||||
<div id="focusBfSideStats" class="flex items-center space-x-3 mt-6">
|
||||
<button id="btnFocusLeftBreast" onclick="switchBreastSide('left')" class="px-4 py-2 rounded-2xl bg-amber-500/25 border-2 border-amber-400 text-amber-200 font-bold text-xs flex items-center space-x-2 transition shadow-sm">
|
||||
<span>🤱 左侧</span>
|
||||
<span id="focusLeftTime" class="font-mono font-black text-sm">00:00</span>
|
||||
</button>
|
||||
|
||||
<button onclick="toggleBreastSide()" class="p-2.5 rounded-2xl bg-white/10 hover:bg-white/20 active:scale-95 text-white font-bold text-sm transition" title="左右换侧">
|
||||
⇄ 换侧
|
||||
</button>
|
||||
|
||||
<button id="btnFocusRightBreast" onclick="switchBreastSide('right')" class="px-4 py-2 rounded-2xl bg-white/5 border border-white/20 text-stone-400 font-bold text-xs flex items-center space-x-2 transition">
|
||||
<span>🤱 右侧</span>
|
||||
<span id="focusRightTime" class="font-mono font-black text-sm">00:00</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 底部控制面板 -->
|
||||
<div class="max-w-md w-full mx-auto space-y-3 pb-2">
|
||||
<div class="flex items-center space-x-2">
|
||||
<button onclick="addFocusMinutes(5)" class="flex-1 bg-white/10 hover:bg-white/20 active:scale-95 text-white font-bold text-xs py-3 rounded-2xl transition flex items-center justify-center space-x-1">
|
||||
<span>+5m</span>
|
||||
<span>加时</span>
|
||||
</button>
|
||||
<button id="btnFocusPauseResume" onclick="togglePauseFocusTimer()" class="flex-1 bg-white/15 hover:bg-white/25 active:scale-95 text-white font-bold text-xs py-3 rounded-2xl transition flex items-center justify-center space-x-1">
|
||||
<span id="focusPauseIcon">⏸</span>
|
||||
<span id="focusPauseText">暂停</span>
|
||||
</button>
|
||||
<button onclick="cancelFocusTimer()" class="px-4 bg-white/5 hover:bg-rose-500/20 text-stone-400 hover:text-rose-300 font-bold text-xs py-3 rounded-2xl transition">
|
||||
取消
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<button id="btnFocusComplete" onclick="completeFocusTimerAndRecord()" class="w-full bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-600 hover:to-orange-600 active:scale-98 text-white font-black text-sm py-3.5 rounded-2xl shadow-focus transition flex items-center justify-center space-x-2">
|
||||
<span>✓</span>
|
||||
<span>完成并自动打卡入库</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="app.js"></script>
|
||||
|
||||
@@ -86,3 +86,67 @@ img, video {
|
||||
filter: brightness(0.95);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
/* Warm & Soft Theme Tokens (方案 1 温暖治愈系) */
|
||||
:root {
|
||||
--color-warm-bg: #FAF7F2;
|
||||
--color-card-bg: #FFFFFF;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #F8F5EE;
|
||||
background-image:
|
||||
radial-gradient(at 0% 0%, rgba(254, 243, 199, 0.35) 0px, transparent 50%),
|
||||
radial-gradient(at 100% 100%, rgba(243, 232, 255, 0.35) 0px, transparent 50%),
|
||||
radial-gradient(at 50% 50%, rgba(240, 249, 255, 0.25) 0px, transparent 50%);
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
/* Soft Ambient Diffuse Shadows */
|
||||
.shadow-soft {
|
||||
box-shadow: 0 10px 30px -4px rgba(160, 140, 120, 0.08), 0 4px 12px -2px rgba(160, 140, 120, 0.04);
|
||||
}
|
||||
.shadow-soft-lg {
|
||||
box-shadow: 0 20px 40px -6px rgba(160, 140, 120, 0.12), 0 8px 16px -4px rgba(160, 140, 120, 0.06);
|
||||
}
|
||||
.shadow-focus {
|
||||
box-shadow: 0 0 50px rgba(245, 158, 11, 0.25);
|
||||
}
|
||||
|
||||
/* Floating Dock for Mobile */
|
||||
.floating-dock {
|
||||
box-shadow: 0 12px 36px rgba(100, 90, 80, 0.14), 0 2px 8px rgba(100, 90, 80, 0.06);
|
||||
}
|
||||
|
||||
/* Checkbox strikethrough animation */
|
||||
.memo-done-text {
|
||||
text-decoration: line-through;
|
||||
color: #94A3B8;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
/* Fullscreen Focus Overlay Animations */
|
||||
.focus-glow-ring {
|
||||
filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.4));
|
||||
transition: stroke-dashoffset 0.8s ease;
|
||||
}
|
||||
.focus-sleep-glow {
|
||||
filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.5));
|
||||
}
|
||||
.focus-tummy-glow {
|
||||
filter: drop-shadow(0 0 18px rgba(16, 185, 129, 0.45));
|
||||
}
|
||||
|
||||
@keyframes pulseGlow {
|
||||
0%, 100% {
|
||||
transform: scale(1);
|
||||
opacity: 0.95;
|
||||
}
|
||||
50% {
|
||||
transform: scale(1.02);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
.animate-focus-pulse {
|
||||
animation: pulseGlow 3s infinite ease-in-out;
|
||||
}
|
||||
Reference in new issue
Block a user