Repository files navigation
Run npx vercel dev and go localhost:3000
If you need to test in your phone, use npm run start-secure
This is because the camera can only be accessed through HTTPS and vercel doesn't support it. So a mock implementation needs to be used instead
Source: Shutterstock
PNG: https://cloudconvert.com/eps-to-png
Background: https://pixlr.com/remove-background/
Blob Maker: https://www.blobmaker.app/
SVG Editor: https://boxy-svg.com/
SVG: https://cloudconvert.com/eps-to-svg
WebP: https://squoosh.app/editor
Compress: https://compresspng.com/
Observer error -
Display modals (enable, block)
Take enable ref and store
If no error, and ref, then dismiss
[CS]Check if camera is available - Start a timer for 3 seconds
If 3 seconds pass, then throw error
If the camera is allowed, then dispatch an action that clears the error, and puts camera onReady
If the camera is blocked, then dispatch an action
If camera onReady
checkWebGl, and dispatch action for webGl (either error, success)
If webGl fired,
If not supported, display modal
If supported, check if it's mobile
If it's mobile then display modal, and wait for ref to change loading to false
If not, then change loading to false
You can’t perform that action at this time.