mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-27 04:16:32 -08:00
Autobone edits (#12)
* Update Recording.tsx * Update Preparation.tsx * Update Preparation.tsx * Update Recording.tsx * Update Recording.tsx * Update Recording.tsx * Update StartRecording.tsx * Update Done.tsx * Update Done.tsx * Update Recording.tsx * Update Preparation.tsx * Update StartRecording.tsx * Update StartRecording.tsx * Update Preparation.tsx * Update StartRecording.tsx * Update Preparation.tsx * Update Recording.tsx * Update StartRecording.tsx
This commit is contained in:
1 parent
b475099b58
commit
378cc12401
4 files changed
+52
-16
No files matched your search
@@ -5,10 +5,10 @@ export function DoneStep() {
|
||||
<div className="flex flex-col items-center w-full justify-center gap-5">
|
||||
<div className="flex gap-1 flex-col justify-center items-center">
|
||||
<Typography variant="section-title">
|
||||
Body measured and saved!
|
||||
Body measured and saved.
|
||||
</Typography>
|
||||
<Typography color="secondary">
|
||||
Your body proportions calibtation is complete
|
||||
Your body proportions calibration is complete!
|
||||
</Typography>
|
||||
</div>
|
||||
{/* <Button variant="primary">Continue to next step</Button> */}
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Button } from '../../../../commons/Button';
|
||||
import { FromtOfChairIcon } from '../../../../commons/icon/FrontOfChair';
|
||||
import { Typography } from '../../../../commons/Typography';
|
||||
|
||||
export function PreparationStep({ nextStep }: { nextStep: () => void }) {
|
||||
export function PreparationStep({ nextStep, prevStep, variant}: { nextStep: () => void; prevStep: () => void; variant: 'onboarding' | 'alone';}) {
|
||||
return (
|
||||
<>
|
||||
<div className="flex flex-col flex-grow">
|
||||
@@ -12,15 +12,22 @@ export function PreparationStep({ nextStep }: { nextStep: () => void }) {
|
||||
</Typography>
|
||||
<div>
|
||||
<Typography color="secondary">
|
||||
Grab a chair and stand in front of it. such that you can
|
||||
Place a chair directly behind you inside your play space.
|
||||
</Typography>
|
||||
<Typography color="secondary">Be prepared to sit down during the autobone setup.
|
||||
</Typography>
|
||||
<Typography color="secondary">sit down at any moment.</Typography>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex">
|
||||
<div className="flex gap-3">
|
||||
<Button
|
||||
variant={variant === 'onboarding' ? 'secondary' : 'tierciary'}
|
||||
onClick={prevStep}
|
||||
>
|
||||
Previous step
|
||||
</Button>
|
||||
<Button variant="primary" onClick={nextStep}>
|
||||
I’m in front of a chair
|
||||
I am in front of a chair
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { useEffect } from 'react';
|
||||
import { useAutobone } from '../../../../../hooks/autobone';
|
||||
import { ProgressBar } from '../../../../commons/ProgressBar';
|
||||
import { TipBox } from '../../../../commons/TipBox';
|
||||
import { Typography } from '../../../../commons/Typography';
|
||||
|
||||
export function Recording({ nextStep }: { nextStep: () => void }) {
|
||||
@@ -19,12 +20,31 @@ export function Recording({ nextStep }: { nextStep: () => void }) {
|
||||
<div className="w-2 h-2 rounded-lg bg-status-critical"></div>
|
||||
<Typography color="text-status-critical">REC</Typography>
|
||||
</div>
|
||||
<Typography variant="section-title">We're recording...</Typography>
|
||||
<Typography color="secondary">Make the moves shown below</Typography>
|
||||
<Typography variant="section-title">Recording in progress...</Typography>
|
||||
<Typography color="secondary">Make the moves shown below:</Typography>
|
||||
</div>
|
||||
<div>
|
||||
<Typography color="secondary">
|
||||
Bend knees a few times.
|
||||
</Typography>
|
||||
<Typography color="secondary">
|
||||
Sit on a chair then stand up.
|
||||
</Typography>
|
||||
<Typography color="secondary">
|
||||
Twist upper body left, then bend right.
|
||||
</Typography>
|
||||
<Typography color="secondary">
|
||||
Twist upper body right, then bend left.
|
||||
</Typography>
|
||||
<Typography color="secondary">
|
||||
Wiggle around until timer ends.
|
||||
</Typography>
|
||||
</div>
|
||||
<div className="flex">
|
||||
<TipBox>
|
||||
Ensure your heels do not move during recording!
|
||||
</TipBox>
|
||||
</div>
|
||||
<Typography color="secondary">
|
||||
Do squads (we probably want illustrations here)
|
||||
</Typography>
|
||||
<div className="flex flex-col gap-2 items-center w-full max-w-[150px]">
|
||||
<ProgressBar progress={progress} height={2}></ProgressBar>
|
||||
<Typography color="secondary">
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Button } from '../../../../commons/Button';
|
||||
import { TipBox } from '../../../../commons/TipBox';
|
||||
import { Typography } from '../../../../commons/Typography';
|
||||
|
||||
export function StartRecording({ nextStep }: { nextStep: () => void }) {
|
||||
export function StartRecording({ nextStep, prevStep, variant }: { nextStep: () => void; prevStep: () => void; variant: 'onboarding' | 'alone'; }) {
|
||||
const { startRecording } = useAutobone();
|
||||
|
||||
const start = () => {
|
||||
@@ -16,14 +16,17 @@ export function StartRecording({ nextStep }: { nextStep: () => void }) {
|
||||
<div className="flex flex-col flex-grow">
|
||||
<div className="flex flex-grow flex-col gap-4 max-w-sm">
|
||||
<Typography variant="main-title" bold>
|
||||
Make some moves
|
||||
Get ready to move
|
||||
</Typography>
|
||||
<div>
|
||||
<Typography color="secondary">
|
||||
We're now going to record some specific poses and
|
||||
</Typography>
|
||||
<Typography color="secondary">
|
||||
moves. these will be prompted in the next screen.
|
||||
moves. These will be prompted in the next screen.
|
||||
</Typography>
|
||||
<Typography color="secondary">
|
||||
Be ready to start when the button is pressed!
|
||||
</Typography>
|
||||
</div>
|
||||
<div className="flex">
|
||||
@@ -34,7 +37,13 @@ export function StartRecording({ nextStep }: { nextStep: () => void }) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex">
|
||||
<div className="flex gap-3">
|
||||
<Button
|
||||
variant={variant === 'onboarding' ? 'secondary' : 'tierciary'}
|
||||
onClick={prevStep}
|
||||
>
|
||||
Previous step
|
||||
</Button>
|
||||
<Button variant="primary" onClick={start}>
|
||||
Start Recording
|
||||
</Button>
|
||||
|
||||
Reference in new issue
Block a user