diff --git a/src/app/features/auth/components/auth-layout/auth-layout.component.html b/src/app/features/auth/components/auth-layout/auth-layout.component.html index a5ef680..2e5b65f 100644 --- a/src/app/features/auth/components/auth-layout/auth-layout.component.html +++ b/src/app/features/auth/components/auth-layout/auth-layout.component.html @@ -1,3 +1,5 @@ + +
diff --git a/src/app/features/auth/components/auth-layout/auth-layout.component.ts b/src/app/features/auth/components/auth-layout/auth-layout.component.ts index 58a46cf..4cd54aa 100644 --- a/src/app/features/auth/components/auth-layout/auth-layout.component.ts +++ b/src/app/features/auth/components/auth-layout/auth-layout.component.ts @@ -1,15 +1,14 @@ import { Component } from '@angular/core'; import { RouterOutlet } from '@angular/router'; +import { CardComponent } from '../../../../shared/components/ui/card/card.component'; @Component({ selector: 'app-auth-layout', - imports: [ - RouterOutlet - ], + imports: [RouterOutlet, CardComponent], templateUrl: './auth-layout.component.html', - styleUrl: './auth-layout.component.css' + styleUrl: './auth-layout.component.css', }) export class AuthLayoutComponent { // Diese Komponente benötigt in der Regel keine eigene Logik. // Sie dient nur als Hülle für die untergeordneten Routen. -} \ No newline at end of file +} diff --git a/src/app/features/auth/components/login/login.component.css b/src/app/features/auth/components/login/login.component.css index bb50aa7..e69de29 100644 --- a/src/app/features/auth/components/login/login.component.css +++ b/src/app/features/auth/components/login/login.component.css @@ -1,11 +0,0 @@ -/* src\app\features\auth\components\login\login.component.css */ -@import '../../_auth-common.css'; - -/* Stile NUR für die Login-Seite */ -:host { display: block; width: 100%; } - -.form-actions { - text-align: right; - margin-top: -0.75rem; - margin-bottom: 0.5rem; -} \ No newline at end of file diff --git a/src/app/features/auth/components/login/login.component.ts b/src/app/features/auth/components/login/login.component.ts index a7b4fbc..ab8f6cb 100644 --- a/src/app/features/auth/components/login/login.component.ts +++ b/src/app/features/auth/components/login/login.component.ts @@ -1,16 +1,26 @@ import { Component } from '@angular/core'; import { CommonModule } from '@angular/common'; -// WICHTIG: ReactiveFormsModule HIER importieren -import { ReactiveFormsModule, FormBuilder, Validators, FormGroup } from '@angular/forms'; +import { + ReactiveFormsModule, + FormBuilder, + Validators, + FormGroup, +} from '@angular/forms'; import { RouterLink } from '@angular/router'; +// Importieren der wiederverwendbaren Komponenten +import { ButtonComponent } from '../../../../shared/components/ui/button/button.component'; +import { FormFieldComponent } from '../../../../shared/components/form/form-field/form-field.component'; + @Component({ selector: 'app-login', - + standalone: true, imports: [ - CommonModule, + CommonModule, + ReactiveFormsModule, RouterLink, - ReactiveFormsModule // <-- HIER IST DIE KORREKTUR. Jetzt kennt die Komponente [formGroup]. + ButtonComponent, + FormFieldComponent, ], templateUrl: './login.component.html', styleUrl: './login.component.css', @@ -33,4 +43,4 @@ export class LoginComponent { this.loginForm.markAllAsTouched(); } } -} \ No newline at end of file +} diff --git a/src/app/features/demo/components/demo2/demo2.component.html b/src/app/features/demo/components/demo2/demo2.component.html index 944e553..69518f9 100644 --- a/src/app/features/demo/components/demo2/demo2.component.html +++ b/src/app/features/demo/components/demo2/demo2.component.html @@ -1,24 +1,19 @@
- - -
- - +
+
+ + +
- +
+ +
+ + + Dieser Inhalt wird jetzt von einer wiederverwendbaren Komponente + gesteuert. Lorem ipsum dolor sit amet, consectetur adipiscing elit. + + +
+ +
+ + +
+ Primary + Secondary + Stroked + Flat +
+ + +
+ Bearbeiten + Zum Warenkorb +
+ + +
+ + + + + +
+ + +
+ + +
+ + +
+ Deaktiviert + +
+ +
+ + +
+
+
diff --git a/src/app/features/demo/components/demo2/demo2.component.ts b/src/app/features/demo/components/demo2/demo2.component.ts index 9d92457..07e50a5 100644 --- a/src/app/features/demo/components/demo2/demo2.component.ts +++ b/src/app/features/demo/components/demo2/demo2.component.ts @@ -32,6 +32,14 @@ import { SlideToggleComponent } from '../../../../shared/components/form/slide-t import { isPlatformBrowser } from '@angular/common'; +import { ExpansionPanelComponent } from '../../../../shared/components/layout/expansion-panel/expansion-panel.component'; + +import { PageHeaderComponent } from '../../../../shared/components/layout/page-header/page-header.component'; + +import { ButtonComponent } from '../../../../shared/components/ui/button/button.component'; + +import { ChipComponent } from '../../../../shared/components/ui/chip/chip.component'; + // Wir definieren ein Interface für unsere KPI-Daten für Typsicherheit interface Kpi { value: string; @@ -54,6 +62,10 @@ interface Kpi { FormsModule, FormTextareaComponent, SlideToggleComponent, + ExpansionPanelComponent, + PageHeaderComponent, + ButtonComponent, + ChipComponent ], templateUrl: './demo2.component.html', }) @@ -257,6 +269,7 @@ export class Demo2Component { this.renderer.removeClass(this.document.body, 'dark-theme'); } } + handleDeleteOrder(orderId: string): void { console.log('Lösche Bestellung mit ID:', orderId); // Hier könnten Sie z.B. einen Bestätigungs-Dialog öffnen diff --git a/src/app/shared/components/data-display/orders-table/orders-table.component.css b/src/app/shared/components/data-display/orders-table/orders-table.component.css index bcc7205..d850394 100644 --- a/src/app/shared/components/data-display/orders-table/orders-table.component.css +++ b/src/app/shared/components/data-display/orders-table/orders-table.component.css @@ -93,7 +93,7 @@ .actions-cell { display: flex; - justify-content: center; + justify-content: right; gap: 0.5rem; } diff --git a/src/app/shared/components/data-display/orders-table/orders-table.component.html b/src/app/shared/components/data-display/orders-table/orders-table.component.html index 0a21740..00c83b4 100644 --- a/src/app/shared/components/data-display/orders-table/orders-table.component.html +++ b/src/app/shared/components/data-display/orders-table/orders-table.component.html @@ -6,7 +6,7 @@ Bestell-ID Status Betrag - Aktionen + Aktionen @@ -33,7 +33,7 @@ }} {{ order.amount }} - + ,