From the course: Next.js Ecommerce: Build a Shopping Platform from Scratch

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Sign-up page and form

Sign-up page and form

So now we want to create our sign-up page and form. And they're going to be very similar to the sign-in. So we can just copy and just change some stuff up from those. So for the page, let's go into App, Auth. And then we're going to create a folder in Auth called sign-up. And then we can copy the page.tsx from sign-in and paste it into sign-up. And then just change up a few things. So for one, we're going to change sign-in page here and here to sign-up page. And then let's get rid of the credential sign-in form. We don't need that. We're going to have a different form. And then let's see. All this stuff, I'm pretty sure we're going to use this. For the title, let's say sign-up. And then we're still going to use the callback and stuff Because again, not only are we signing up, but it also signs the user in. So this callback stuff, we can keep that. And then down in the return, we're going to have the logo. Let's change this to sign in. We'll say create account or sign up, whatever you…

Contents