update miletruth page

This commit is contained in:
2026-07-27 19:59:25 +05:30
parent ca83f34b11
commit 136cc966c7
25 changed files with 5779 additions and 1195 deletions

View File

@@ -368,6 +368,7 @@ export default function EVSection({
}: EVSectionProps) {
const bannerRef = useRef<HTMLDivElement>(null);
const useDashboard = !!metrics && metrics.length > 0;
const bottomBarItems = useDashboard ? barStats : stats;
const isVideo = image.endsWith(".mp4");
/* In dashboard mode the workflow's accent theme is applied at the .evnd
@@ -1488,27 +1489,25 @@ export default function EVSection({
</div>
</div>
{/* BOTTOM BAR — full-width KPI summary strip below the workflow
content (Scene → Insight/Decision card → KPI bar). Required across
all breakpoints. In dashboard mode it summarises the same workflow
metrics; the homepage section uses its own stat set. */}
<div className="evnd__bar">
{(useDashboard ? (barStats ?? metrics!) : stats).map((s) => (
<div className="evnd__bar-item" key={s.label}>
<span className="evnd__bar-label">{s.label}</span>
{s.text ? (
<b className="evnd__bar-val evnd__bar-val--text">{s.text}</b>
) : (
<CountUp
value={s.value}
decimals={s.decimals}
suffix={s.suffix}
className="evnd__bar-val"
/>
)}
</div>
))}
</div>
{bottomBarItems && (
<div className="evnd__bar">
{bottomBarItems.map((s) => (
<div className="evnd__bar-item" key={s.label}>
<span className="evnd__bar-label">{s.label}</span>
{s.text ? (
<b className="evnd__bar-val evnd__bar-val--text">{s.text}</b>
) : (
<CountUp
value={s.value}
decimals={s.decimals}
suffix={s.suffix}
className="evnd__bar-val"
/>
)}
</div>
))}
</div>
)}
</div>
</section>
</div>