ar-test/app/components/auth/showcase/place-screen.tsx

33 lines
1.6 KiB
TypeScript

import { ClientLogo } from '~/components/ui/client-logo';
import { LogoMark } from '~/components/ui/logo-mark';
import { Text } from '~/components/ui/text';
import { DEMO_CLIENT, DEMO_MODEL_IMAGE } from '~/data/auth/constants';
const room = 'linear-gradient(180deg, var(--color-room-wall) 50%, var(--color-room-floor) 50%, var(--color-room-floor-near))';
// Step 3: the model placed on the floor of the customer's room
export function PlaceScreen() {
return (
<>
<div className='absolute inset-0' style={{ backgroundImage: room }} />
<div className='relative flex items-start justify-between px-4 pt-4'>
<ClientLogo brand={DEMO_CLIENT} variant='chip' size='sm' />
<LogoMark size='sm' surface='viewer' />
</div>
<Text as='span' variant='stamp' tone='secondary' className='absolute top-24 left-4'>
Live camera · your room
</Text>
{/* Standing on the floor, just below the horizon */}
<img src={DEMO_MODEL_IMAGE} alt='' className='absolute top-[60%] left-1/2 w-[200px] max-w-none -translate-x-1/2 -translate-y-[90%]' />
<Text as='span' variant='meta' tone='emphasis' className='absolute top-[72%] left-1/2 -translate-x-1/2 whitespace-nowrap rounded-full bg-shadow/60 px-2.5 py-1.5'>
Placed · 1:1 scale
</Text>
<span className='absolute bottom-7 left-1/2 flex size-14.5 -translate-x-1/2 items-center justify-center rounded-full border-3 border-text-primary'>
<span className='size-11 rounded-full bg-text-primary' />
</span>
</>
);
}