2023-07-25 10:40:26 -04:00
|
|
|
import { faArrowRight, faXmark } from '@fortawesome/free-solid-svg-icons'
|
|
|
|
import { ActionButton } from '../../components/ActionButton'
|
|
|
|
import { useDismiss, useNextClick } from '.'
|
|
|
|
import { useBackdropHighlight } from '../../hooks/useBackdropHighlight'
|
|
|
|
|
|
|
|
const Units = () => {
|
|
|
|
const dismiss = useDismiss()
|
|
|
|
const next = useNextClick('sketching')
|
|
|
|
const clipPath = useBackdropHighlight('stream')
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div
|
2023-07-31 06:33:10 -04:00
|
|
|
className="fixed grid justify-center items-end inset-0 bg-chalkboard-110/50 dark:bg-chalkboard-110/80 z-50"
|
2023-07-25 10:40:26 -04:00
|
|
|
style={{ clipPath }}
|
|
|
|
>
|
2023-07-31 06:33:10 -04:00
|
|
|
<div className="max-w-2xl flex flex-col justify-center bg-chalkboard-10 dark:bg-chalkboard-90 p-8 rounded">
|
2023-07-25 10:40:26 -04:00
|
|
|
<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
|
|
|
|
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 onClick={next} icon={{ icon: faArrowRight }}>
|
|
|
|
Next: Sketching
|
|
|
|
</ActionButton>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Units
|