ar-test/app/data/auth/constants.ts

27 lines
1.5 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { BrandIdentity } from '~/types/project';
// The three-step story on the login page; each step has a matching phone screen
export const LOGIN_STORY = [
{ number: '01', title: 'Scan the tag', description: 'A customer points their camera at the QR code printed on the product.' },
{ number: '02', title: 'Open the AR page', description: 'It opens in the browser with your client’s logo next to thob’s.' },
{ number: '03', title: 'Place it in the room', description: 'One tap on View in your space, and the model sits on their floor at true scale.' },
] as const;
export type LoginStoryStep = (typeof LOGIN_STORY)[number];
export const LOGIN_STORY_STEP_MS = 3600;
// A made-up client for the login illustration
export const DEMO_CLIENT: BrandIdentity = { name: 'Oakline Interiors', logoUrl: '/images/demo/oakline-logo.svg', logoBg: 'light' };
export const DEMO_CLIENT_MARK: BrandIdentity = { ...DEMO_CLIENT, logoUrl: '/images/demo/oakline-mark.svg' };
export const DEMO_MODEL_NAME = 'Lounge sofa';
// The sofa with its background removed and a soft shadow kept; its legs end at 97% of the height
export const DEMO_MODEL_IMAGE = '/images/demo/sofa.png';
// A fixed image (it opens https://thob.studio), so the scan step shows it at once instead of rendering it each time
export const DEMO_QR_CODE = '/images/demo/qr-code.svg';
export const LOGIN_ERRORS = {
mismatch: 'That email and password don’t match. Check them and try again.',
offline: 'We couldn’t reach the server. Check your connection and try again.',
} as const;