diff --git a/client/src/app/screens/screen-profile/screen-profile.html b/client/src/app/screens/screen-profile/screen-profile.html new file mode 100644 index 0000000..32123e4 --- /dev/null +++ b/client/src/app/screens/screen-profile/screen-profile.html @@ -0,0 +1,46 @@ +
+ +
+
+
+ +
+

{{ username }}

+

{{ email }}

+ +
+
+ + +
+
+
Recent Transactions
+
+
+
+ + @for (transaction of transactions; track transaction.date) { +
+
+
+
+ +
+
+
{{ transaction.partner }}
+ {{ transaction.date | date:'medium' }} +
+
+
+
+ {{ transaction.amount | currency }} +
+ {{ transaction.type }} +
+
+
+ } +
+
+
+ diff --git a/client/src/app/screens/screen-profile/screen-profile.less b/client/src/app/screens/screen-profile/screen-profile.less new file mode 100644 index 0000000..e69de29 diff --git a/client/src/app/screens/screen-profile/screen-profile.spec.ts b/client/src/app/screens/screen-profile/screen-profile.spec.ts new file mode 100644 index 0000000..d34607b --- /dev/null +++ b/client/src/app/screens/screen-profile/screen-profile.spec.ts @@ -0,0 +1,22 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ScreenProfile } from './screen-profile'; + +describe('ScreenProfile', () => { + let component: ScreenProfile; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [ScreenProfile], + }).compileComponents(); + + fixture = TestBed.createComponent(ScreenProfile); + component = fixture.componentInstance; + await fixture.whenStable(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/client/src/app/screens/screen-profile/screen-profile.ts b/client/src/app/screens/screen-profile/screen-profile.ts new file mode 100644 index 0000000..f7b3d96 --- /dev/null +++ b/client/src/app/screens/screen-profile/screen-profile.ts @@ -0,0 +1,20 @@ +import { CommonModule, CurrencyPipe, DatePipe } from '@angular/common'; +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-screen-profile', + imports: [CurrencyPipe, DatePipe, CommonModule], + templateUrl: './screen-profile.html', + styleUrl: './screen-profile.less', +}) +export class ScreenProfile { + username = 'John Doe'; + email = 'john.doe@example.com'; + + transactions = [ + { partner: 'Alice Smith', amount: 50.00, date: new Date('2026-03-01'), type: 'Received' }, + { partner: 'Bob Johnson', amount: -25.50, date: new Date('2026-02-28'), type: 'Sent' }, + { partner: 'Charlie Brown', amount: 75.25, date: new Date('2026-02-27'), type: 'Received' }, + { partner: 'Diana Prince', amount: -100.00, date: new Date('2026-02-25'), type: 'Sent' }, + ]; +}