From the course: Master Next.js by Building Scalable Apps with Routing, Databases, and Performance

Unlock this course with a free trial

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

Creating interface for authentication routes

Creating interface for authentication routes

In this lecture, we are going to create login and the signup routes for the client application. We will use the same interface for the login page, which we have used in the admin section. So I will navigate to the admin apps, login component and copy the JSX code. Now going back to the login component of the client application and pasting it here. Now I will import the button and input components by selecting them from the drop down. In the client section, we have not created the label component. So let's go ahead and create the label component. I will create the label JSX file in the UI directory of the components folder. Now the component is going to be the same as it is in the admin app. So I will navigate to the admin app's label component and I will copy the entire code and paste it in the client app's label component. Now I will navigate to the Login component and import the Label component from the UI directory. Next, I will replace the form title with Login text and remove the…

Contents