From fc4209eb40f65d858af6fd248d9df428088b3ca5 Mon Sep 17 00:00:00 2001 From: TekH Date: Fri, 8 Aug 2025 11:12:00 +0200 Subject: [PATCH] feat(footer): add the component with css --- .../src/app/app.component.html | 3 ++- .../user_manager_ui/src/app/app.component.ts | 3 ++- .../components/footer/footer.component.html | 9 ++++++++ .../components/footer/footer.component.scss | 23 +++++++++++++++++++ .../footer/footer.component.spec.ts | 23 +++++++++++++++++++ .../app/components/footer/footer.component.ts | 16 +++++++++++++ .../forms/group-form/group-form.component.ts | 2 +- 7 files changed, 76 insertions(+), 3 deletions(-) create mode 100644 src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/footer/footer.component.html create mode 100644 src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/footer/footer.component.scss create mode 100644 src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/footer/footer.component.spec.ts create mode 100644 src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/footer/footer.component.ts diff --git a/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/app.component.html b/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/app.component.html index 345616e..ed7b2e1 100644 --- a/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/app.component.html +++ b/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/app.component.html @@ -1,4 +1,5 @@
-
\ No newline at end of file + + \ No newline at end of file diff --git a/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/app.component.ts b/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/app.component.ts index 94233b7..8e95033 100644 --- a/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/app.component.ts +++ b/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/app.component.ts @@ -5,11 +5,12 @@ import { TransferService } from './services/button/transfer.service'; import { UpdateService } from './services/button/update.service'; import { RefreshService } from './services/button/refresh.service'; import { DeletionService } from './services/button/deletion.service'; +import { FooterComponent } from './components/footer/footer.component'; @Component({ selector: 'app-root', standalone: true, - imports: [RouterOutlet, NavMenuComponent], + imports: [RouterOutlet, NavMenuComponent, FooterComponent], templateUrl: './app.component.html', styleUrl: './app.component.scss', changeDetection: ChangeDetectionStrategy.Default diff --git a/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/footer/footer.component.html b/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/footer/footer.component.html new file mode 100644 index 0000000..62759ba --- /dev/null +++ b/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/footer/footer.component.html @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/footer/footer.component.scss b/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/footer/footer.component.scss new file mode 100644 index 0000000..e5707ad --- /dev/null +++ b/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/footer/footer.component.scss @@ -0,0 +1,23 @@ +.footer-toolbar { + position: fixed; + bottom: 0; + width: 100%; + height: 3rem; + z-index: 1000; + align-items: center; +} + +.footer-links{ + display: flex; + padding: 0; + margin: 0; + justify-content: space-around; + width: 100%; +} + +footer a { + padding: 0; + margin: 0; + text-decoration: none; + color: rgb(255, 255, 255); +} \ No newline at end of file diff --git a/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/footer/footer.component.spec.ts b/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/footer/footer.component.spec.ts new file mode 100644 index 0000000..4647de8 --- /dev/null +++ b/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/footer/footer.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { FooterComponent } from './footer.component'; + +describe('FooterComponent', () => { + let component: FooterComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [FooterComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(FooterComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/footer/footer.component.ts b/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/footer/footer.component.ts new file mode 100644 index 0000000..3983769 --- /dev/null +++ b/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/footer/footer.component.ts @@ -0,0 +1,16 @@ +import { Component } from '@angular/core'; +import { MatToolbarModule } from '@angular/material/toolbar'; +import { RouterModule } from '@angular/router'; + +@Component({ + selector: 'app-footer', + standalone: true, + imports: [ + MatToolbarModule, RouterModule + ], + templateUrl: './footer.component.html', + styleUrl: './footer.component.scss' +}) +export class FooterComponent { + +} diff --git a/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/group-form/group-form.component.ts b/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/group-form/group-form.component.ts index aef08f5..07cd5fa 100644 --- a/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/group-form/group-form.component.ts +++ b/src/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/group-form/group-form.component.ts @@ -42,7 +42,7 @@ export class GroupFormComponent { .subscribe(() => this.updateErrorMessage()); } - updateErrorMessage() { + public updateErrorMessage() { if (this.groupname.hasError('required')) { this.errorMessage.set('Wert eingeben'); } else {