import { For, Show, createSignal } from "solid-js"; import { IslandPill, ModuleCard, CALM, WARM } from "./IslandMock"; import { Glyph, type GlyphName } from "./ModuleMocks"; import { useDemoLoop } from "./useDemoLoop"; const PAPER = "#f1ead9"; const BATTERY = "#8dc9b3"; const CALENDAR = "#ff9e42"; /** SettingsSlider: paper fill, dark knob, and a unity notch on app sliders. */ function MixerSlider(props: { level: number; tint?: string; muted?: boolean }) { const fraction = () => props.level / (props.tint ? 125 : 100); const position = () => `calc(9px + (100% - 18px) * ${fraction()})`; return (
{ [ "Adjust each app separately", "Browser muted", "Music playing through headphones", "Music volume lowered to 38%" ][step()] }
{props.label}
{props.watts.toFixed(1)} W
System draw
{control.label}
{control.note}
{held() ? "Charging paused at the 80% limit" : topUp() ? "Top-up mode allows a full charge" : "Charging with an 80% limit"}
Calendar
Thu, Nov 12
{event.start}
{event.end}
{event.title}
{event.calendar}
{event.location}
{step() === 0 ? "Today's date and calendar events" : onAir() ? "Meeting in progress" : "Countdown to your next meeting"}