--- a/apps/web/src/styles/foundation.css +++ b/apps/web/src/styles/foundation.css @@ -1,21 +1,21 @@ :root { color-scheme: dark; - --bg: #0b1016; - --sidebar: #0e151d; - --surface: #141e28; - --raised: #1d2b38; - --paper: #18232e; - --line: #2b3b48; - --ink: #f1f6fa; - --muted: #a6b6c5; - --subtle: #8fa2b3; - --accent: #b9f56a; - --accent-bg: #24371e; - --on-accent: #17270e; + --bg: #10130f; + --sidebar: #131811; + --surface: #191f17; + --raised: #262e22; + --paper: #20271c; + --line: #343d2d; + --ink: #f0f2e9; + --muted: #adb7a5; + --subtle: #94a28b; + --accent: #cbe88b; + --accent-bg: #2c3a20; + --on-accent: #24301a; --accent-ink: var(--on-accent); - --accent-hover: #cef991; - --sleep: #b9b4ff; - --vital: #75dfcc; + --accent-hover: #ddf3ac; + --sleep: #b8b0ed; + --vital: #9ed5c2; --danger: #ffada3; --danger-bg: #332320; --warning: #ebc27a; @@ -25,8 +25,13 @@ --glass-bar: color-mix(in srgb, var(--sidebar) 76%, transparent); --ease-spring: cubic-bezier(0.22, 1, 0.36, 1); --ease-out: cubic-bezier(0.16, 1, 0.3, 1); + --sleep-awake:#d9d4b8; + --sleep-rem:#cfb8ed; + --sleep-light:#9a95d8; + --sleep-deep:#7566cf; + --sleep-unclassified:#a8a0bf; --radius: 1rem; - --sidebar-width: 13.75rem; + --sidebar-width: 12.5rem; --content-gutter: clamp(1rem, 2.5vw, 2rem); --content-max: 92rem; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang TC", "Noto Sans TC", Inter, ui-sans-serif, system-ui, "Microsoft JhengHei", sans-serif; --- a/apps/web/src/components/TodayOverview.tsx +++ b/apps/web/src/components/TodayOverview.tsx @@ -18,6 +18,7 @@ import {DailyTrend} from './WellnessCharts.tsx'; import {dayMove} from '../lib/api.ts'; import {OverviewStrength} from './OverviewStrength.tsx'; +import {SleepRibbon} from './SleepRibbon.tsx'; import {FirstDaySetup} from './FirstDaySetup.tsx'; import {latestDailyJournal} from '../../../../packages/domain/daily-journal.ts'; import {RecoveryQuality} from './RecoveryQuality.tsx'; @@ -95,23 +96,25 @@ const heading=(action:React.ReactNode)=>{action}}/>; return
{firstDay&&} +
{active?c('進行中','In progress','実行中'):c('今日課表','Today’s plan','今日のプラン')}
+

{sessionDisplayName(active?.data)||plan?.sourcePlan?.data.name||plan?.plan.data.name||c('開始今天的訓練','Start today’s workout','今日のトレーニング')}

+ {(!active||active.data.date===date)&&} + {active&&
{loggedSets} / {activeSets.length} {c('組','sets','セット')}{activeSets.length>0&&<>}
} + {workoutPreview.length>0&&
    {workoutPreview.map(item=>
  • {item.name}{item.weight&&item.reps!=null?<>{number(item.weight.value)} {item.weight.unit}{item.weightContext?' · '+item.weightContext:''} × {item.reps}:<>{item.sets} {c('組','sets','セット')}}
  • )}
} + + {remainingPlans.length>0&&} +
{core.map(m=>{ const note=readingStamp(m.date,date); return
; })} -
{active?c('進行中','In progress','実行中'):c('今日課表','Today’s plan','今日のプラン')}
-

{sessionDisplayName(active?.data)||plan?.sourcePlan?.data.name||plan?.plan.data.name||c('開始今天的訓練','Start today’s workout','今日のトレーニング')}

- {(!active||active.data.date===date)&&} - {active&&
{loggedSets} / {activeSets.length} {c('組','sets','セット')}{activeSets.length>0&&}
} - {workoutPreview.length>0&&
    {workoutPreview.map(item=>
  • {item.name}{item.weight&&item.reps!=null?<>{number(item.weight.value)} {item.weight.unit}{item.weightContext?' · '+item.weightContext:''} × {item.reps}:<>{item.sets} {c('組','sets','セット')}}
  • )}
} - - {remainingPlans.length>0&&} -