diff --git a/src/routes/casova-osa.svelte b/src/routes/casova-osa.svelte index 71da410..8d22a1c 100644 --- a/src/routes/casova-osa.svelte +++ b/src/routes/casova-osa.svelte @@ -134,6 +134,14 @@ return "border border-blue-web/50"; } + function activeStages (bundle, stages, day, pl) { + return stages.filter(stage => { + const dt = format(new Date(day), 'yyyy-MM-dd') + return Boolean(pl.schedule.filter(i => i.stage === stage.id).find(i => i.date === dt) + ) + }) + } + function findEvent(bundle, eventId) { const ev = bundle.spec.events.find((ev) => ev.id === eventId); if (!ev) { @@ -157,7 +165,7 @@ ev.color = "bg-yellow-400/20 hover:bg-yellow-400/40"; break; default: - ev.color = "bg-utxo-gradient text-white"; + ev.color = "bg-rose-400/20 hover:bg-rose-400/40"; } return ev; } @@ -180,7 +188,7 @@ > {#each $bundle.spec["schedule-candidates"] as p, i}