diff --git a/workspace/apps/pidp/src/app/features/auth/pages/login/banner-find.response.model.ts b/workspace/apps/pidp/src/app/features/auth/pages/login/banner-find.response.model.ts new file mode 100644 index 000000000..caff46adf --- /dev/null +++ b/workspace/apps/pidp/src/app/features/auth/pages/login/banner-find.response.model.ts @@ -0,0 +1,6 @@ +export interface BannerFindResponse { + component: string; + status: string; + header: string; + body: string; +} diff --git a/workspace/apps/pidp/src/app/features/auth/pages/login/login-resource.service.spec.ts b/workspace/apps/pidp/src/app/features/auth/pages/login/login-resource.service.spec.ts new file mode 100644 index 000000000..f76ae5c3d --- /dev/null +++ b/workspace/apps/pidp/src/app/features/auth/pages/login/login-resource.service.spec.ts @@ -0,0 +1,23 @@ +import { TestBed } from '@angular/core/testing'; + +import { provideAutoSpy } from 'jest-auto-spies'; + +import { ApiHttpClient } from '@app/core/resources/api-http-client.service'; + +import { LoginResource } from './login-resource.service'; + +describe('LoginResource', () => { + let service: LoginResource; + + beforeEach(() => { + TestBed.configureTestingModule({ + providers: [provideAutoSpy(ApiHttpClient)], + }); + + service = TestBed.inject(LoginResource); + }); + + it('should be created', () => { + expect(service).toBeTruthy(); + }); +}); diff --git a/workspace/apps/pidp/src/app/features/auth/pages/login/login-resource.service.ts b/workspace/apps/pidp/src/app/features/auth/pages/login/login-resource.service.ts new file mode 100644 index 000000000..abf6d53e6 --- /dev/null +++ b/workspace/apps/pidp/src/app/features/auth/pages/login/login-resource.service.ts @@ -0,0 +1,20 @@ +import { Injectable } from '@angular/core'; + +import { Observable } from 'rxjs'; + +import { ApiHttpClient } from '@app/core/resources/api-http-client.service'; + +import { BannerFindResponse } from './banner-find.response.model'; + +@Injectable({ + providedIn: 'root', +}) +export class LoginResource { + public constructor(private apiResource: ApiHttpClient) {} + + public findBanners(component: string): Observable { + return this.apiResource.get( + `banners?component=${component}`, + ); + } +} diff --git a/workspace/apps/pidp/src/app/features/auth/pages/login/login.constants.ts b/workspace/apps/pidp/src/app/features/auth/pages/login/login.constants.ts new file mode 100644 index 000000000..db83331f6 --- /dev/null +++ b/workspace/apps/pidp/src/app/features/auth/pages/login/login.constants.ts @@ -0,0 +1 @@ +export const component = 'login'; diff --git a/workspace/apps/pidp/src/app/features/auth/pages/login/login.page.html b/workspace/apps/pidp/src/app/features/auth/pages/login/login.page.html index 60af524eb..8eb42d633 100644 --- a/workspace/apps/pidp/src/app/features/auth/pages/login/login.page.html +++ b/workspace/apps/pidp/src/app/features/auth/pages/login/login.page.html @@ -12,34 +12,8 @@
-
-
-

- - OneHealthID Service - -

-
-

- A suite of identity-related products and services for - healthcare providers in BC. -

-
-
- -
-
@@ -47,6 +21,38 @@

+ +
+
+

+ + OneHealthID Service + +

+
+

+ A suite of identity-related products and services for healthcare + providers in BC. +

+
+
+ +
+ +
+