* Light mode style fixes * Fix dismissing onboarding for nested routes * Refactor: move export button to user side panel * Refactor: add project data to modeling page loader * Add new ProjectSidebarMenu * Convert AppHeader to use ProjectSidebarMenu * Move ExportButton to ProjectSidebarMenu * Fix: hide default dir setting in Web * Add DownloadAppBanner when in Prod * Add unit tests to ProjectSidebarMenu * Tiny CSS rounding tweak to sidebars * Fix formatting in unit tests * Update icons and logos to use full-color Kitt * Fix: dim UI on camera drag, not click
53 lines
1.7 KiB
TypeScript
53 lines
1.7 KiB
TypeScript
import { faArrowRight, faXmark } from '@fortawesome/free-solid-svg-icons'
|
|
import { ActionButton } from '../../components/ActionButton'
|
|
import { onboardingPaths, useDismiss, useNextClick } from '.'
|
|
import { useStore } from '../../useStore'
|
|
|
|
export default function Units() {
|
|
const { isMouseDownInStream } = useStore((s) => ({
|
|
isMouseDownInStream: s.isMouseDownInStream,
|
|
}))
|
|
const dismiss = useDismiss()
|
|
const next = useNextClick(onboardingPaths.SKETCHING)
|
|
|
|
return (
|
|
<div className="fixed grid justify-center items-end inset-0 z-50 pointer-events-none">
|
|
<div
|
|
className={
|
|
'max-w-2xl flex flex-col justify-center bg-chalkboard-10 dark:bg-chalkboard-90 p-8 rounded' +
|
|
(isMouseDownInStream ? '' : ' pointer-events-auto')
|
|
}
|
|
>
|
|
<h1 className="text-2xl font-bold">Camera</h1>
|
|
<p className="mt-6">
|
|
Moving the camera is easy. Just click and drag anywhere in the scene
|
|
to rotate the camera, or hold down the <kbd>Ctrl</kbd> key and drag to
|
|
pan the camera.
|
|
</p>
|
|
<div className="flex justify-between mt-6">
|
|
<ActionButton
|
|
Element="button"
|
|
onClick={() => dismiss('../../')}
|
|
icon={{
|
|
icon: faXmark,
|
|
bgClassName: 'bg-destroy-80',
|
|
iconClassName:
|
|
'text-destroy-20 group-hover:text-destroy-10 hover:text-destroy-10',
|
|
}}
|
|
className="hover:border-destroy-40"
|
|
>
|
|
Dismiss
|
|
</ActionButton>
|
|
<ActionButton
|
|
Element="button"
|
|
onClick={next}
|
|
icon={{ icon: faArrowRight }}
|
|
>
|
|
Next: Sketching
|
|
</ActionButton>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|