From c3be527b120ee0ca1d72870650333524d67c89c8 Mon Sep 17 00:00:00 2001 From: kusowl Date: Thu, 19 Feb 2026 18:20:43 +0530 Subject: [PATCH] feature - add register page --- src/app/app.routes.ts | 2 +- src/app/features/auth/auth.routes.ts | 17 +++---- .../auth/components/register/register.html | 47 ++++++++++++++++++- .../auth/components/register/register.spec.ts | 13 +++-- .../auth/components/register/register.ts | 12 ++--- src/styles.css | 2 +- 6 files changed, 68 insertions(+), 25 deletions(-) diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index 8f19dcc..0f47205 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -8,6 +8,6 @@ export const routes: Routes = [ }, { path: "", - loadChildren: () => import('./features/auth/auth.routes').then(routes => routes.AuthRoutes) + loadChildren: () => import("./features/auth/auth.routes").then((routes) => routes.AuthRoutes), }, ]; diff --git a/src/app/features/auth/auth.routes.ts b/src/app/features/auth/auth.routes.ts index 878332d..f292c1d 100644 --- a/src/app/features/auth/auth.routes.ts +++ b/src/app/features/auth/auth.routes.ts @@ -4,15 +4,16 @@ import { Register } from "./components/register/register"; export const AuthRoutes: Routes = [ { - path: '', + path: "", children: [ { - path: 'login', component: Login, - } - , + path: "login", + component: Login, + }, { - path: "register", component: Register - } - ] - } + path: "register", + component: Register, + }, + ], + }, ]; diff --git a/src/app/features/auth/components/register/register.html b/src/app/features/auth/components/register/register.html index 6b0ba2e..3a0e6dd 100644 --- a/src/app/features/auth/components/register/register.html +++ b/src/app/features/auth/components/register/register.html @@ -1 +1,46 @@ -

register works!

+
+
+

Register

+

Sign up with your
email address to get started

+
+ +
+
+
+ Name + +
+
+ Mobile Number + +
+
+ Email + +

your-email-address@email.com

+
+
+
+
+ Password + +
+ +
+ Confirm Password + +
+ +
+ City + +
+
+ +
+
diff --git a/src/app/features/auth/components/register/register.spec.ts b/src/app/features/auth/components/register/register.spec.ts index d5c2d6e..e210d0b 100644 --- a/src/app/features/auth/components/register/register.spec.ts +++ b/src/app/features/auth/components/register/register.spec.ts @@ -1,23 +1,22 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed } from "@angular/core/testing"; -import { Register } from './register'; +import { Register } from "./register"; -describe('Register', () => { +describe("Register", () => { let component: Register; let fixture: ComponentFixture; beforeEach(async () => { await TestBed.configureTestingModule({ - imports: [Register] - }) - .compileComponents(); + imports: [Register], + }).compileComponents(); fixture = TestBed.createComponent(Register); component = fixture.componentInstance; await fixture.whenStable(); }); - it('should create', () => { + it("should create", () => { expect(component).toBeTruthy(); }); }); diff --git a/src/app/features/auth/components/register/register.ts b/src/app/features/auth/components/register/register.ts index af6d32b..630e501 100644 --- a/src/app/features/auth/components/register/register.ts +++ b/src/app/features/auth/components/register/register.ts @@ -1,11 +1,9 @@ -import { Component } from '@angular/core'; +import { Component } from "@angular/core"; @Component({ - selector: 'app-register', + selector: "app-register", imports: [], - templateUrl: './register.html', - styleUrl: './register.css', + templateUrl: "./register.html", + styleUrl: "./register.css", }) -export class Register { - -} +export class Register {} diff --git a/src/styles.css b/src/styles.css index b41a67b..bef2447 100644 --- a/src/styles.css +++ b/src/styles.css @@ -21,7 +21,7 @@ body { } .btn { - @apply rounded-full transition-all duration-200 ease-out flex justify-center active:translate-y-[1px]; + @apply rounded-full transition-all duration-200 font-medium ease-out flex justify-center active:translate-y-[1px]; } .btn-ghost {