Skip to content

hazzelnut/surfever

Repository files navigation

surfever

A sign up page for a surf trip app that never existed. 😢

Also, you don't receive any 2FA code. The backend is mocked. When you get to the 2FA page, type in 'AAAAAA'.

Click here for: [Demo]

Screen.Recording.2023-04-06.at.3.14.59.PM.mov

Made with React / Next.js, Typescript, Tailwind CSS, and ❤️

Getting started

npm install

# Build the next.js files
# Start local server at http://localhost:3000
npm run dev 

Side-notes

This project is loosely based on a take-home interview exercise I did. I was tasked to build a sign up flow with a 2FA screen. New features were added to make the user experience better than the existing one - these features are listed below.

Non-happy day scenarios

I hard-coded the backend to trigger some of the non-happy day scenarios.

Non happy day scenario triggers:

  • Number already input -> enter ‘123-123-1234’
  • Invalid 2FA code -> enter any 6 letter code but 'AAAAAA'

Features (Mostly for Accessbility)

General form submission

  • All inputs use form and support keyboard 'Enter' and 'Tab' keys

Mobile number screen

  • Reset input button
  • Disabled submit button until input is full
  • Input opens up the numpad on the phone (Try it on your phone by accessing the local network. Mine is 10.0.0.1:3000 once your run the dev server)

2FA screen

  • 2FA input auto-submits
  • Extra links for resending a new code and entering a new number

About

A sign up page for a surf trip app that never existed. 😢

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published