okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221apps/host: the owner's UI and the Node App Host0b3299a01

main
2.1 KiB26 linesraw
1import { tr } from '../lib/i18n';
2import type { CSSProperties } from 'react';
3import { Icon } from './ui';
4/** Illustrates the selected budget; these are preferences, not live utilisation readings. */
5export function OnboardingResources({ profile }: {
6    profile: 'work' | 'performance';
7}) {
8    const work = profile === 'work', share = work ? 80 : 100;
9    return <section className="onboard-sharing" data-profile={profile} aria-label={tr("Resource preference preview")} style={{ '--strata-share': `${share}%` } as CSSProperties}>
10  <div className="onboard-sharing-computer" aria-hidden="true">
11   <div className="onboard-sharing-screen">
12    <div className="onboard-sharing-toolbar"><span /><span /><span /><small>{tr("Your computer")}</small></div>
13    <div className="onboard-sharing-panes">
14     <div className="onboard-sharing-model"><span className="onboard-sharing-app-label"><Icon name="models" size={16}/>{tr("Strata")}<span className="onboard-sharing-dot"/></span><div className="onboard-sharing-document"><Icon name="file" size={21}/><div><i /><i /><i /></div></div><div className="onboard-sharing-tokens"><i /><i /><i /><i /><i /></div></div>
15     <div className="onboard-sharing-apps"><span>{tr("Other apps")}</span><div><Icon name="search" size={17}/></div><div><Icon name="file" size={17}/></div></div>
16    </div>
17   </div><div className="onboard-sharing-base"/>
18  </div>
19  <div className="onboard-sharing-budget">
20   <div className="onboard-sharing-caption"><Icon name={work ? 'computer' : 'bolt'} size={16}/>{tr(work ? 'Room for your everyday work' : 'Full priority for Strata')}</div>
21   <div className="onboard-sharing-numbers"><div><strong>{tr(share)}<small>%</small></strong><span>{tr("Strata\u2019s budget")}</span></div><div className="onboard-sharing-headroom"><strong>{tr(work ? '20' : '0')}<small>%</small></strong><span>{tr("Extra headroom")}</span></div></div>
22   <div className="onboard-sharing-bar" aria-hidden="true"><span /><i /></div>
23   <p>{tr(work ? 'Keep your browser and tools alongside your AI.' : 'Give your AI the available resources for focused work.')}</p>
24  </div>
25 </section>;
26}