UI: User Login, Mitarbeiterübersichts Page
This commit is contained in:
		
					parent
					
						
							
								621599e138
							
						
					
				
			
			
				commit
				
					
						88d3bb8cc4
					
				
			
		
					 13 changed files with 300 additions and 3 deletions
				
			
		|  | @ -0,0 +1,93 @@ | |||
| body { | ||||
|   font-family: sans-serif; | ||||
|   margin: 0; | ||||
|   padding: 20px; | ||||
|   background-color: #f0f0f0; | ||||
| } | ||||
| 
 | ||||
| .container { | ||||
|   width: 80%; | ||||
|   max-width: 960px; | ||||
|   margin: 0 auto; | ||||
|   background-color: #fff; | ||||
|   border-radius: 5px; | ||||
|   padding: 20px; | ||||
|   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); | ||||
| } | ||||
| 
 | ||||
| h1 { | ||||
|   font-size: 2rem; | ||||
|   margin-bottom: 20px; | ||||
| } | ||||
| 
 | ||||
| .search-bar { | ||||
|   display: flex; | ||||
|   margin-bottom: 20px; | ||||
|   align-items: center; | ||||
| } | ||||
| 
 | ||||
| .search-bar input[type="text"] { | ||||
|   padding: 8px; | ||||
|   border: 1px solid #ccc; | ||||
|   border-radius: 3px; | ||||
|   flex-grow: 1; | ||||
|   margin-right: 10px; | ||||
| } | ||||
| 
 | ||||
| .search-bar button { | ||||
|   padding: 10px 15px; | ||||
|   background-color: #007bff; | ||||
|   color: #fff; | ||||
|   border: none; | ||||
|   border-radius: 3px; | ||||
|   cursor: pointer; | ||||
| } | ||||
| 
 | ||||
| .add-button { | ||||
|   background-color: #07af16; | ||||
|   color: #fff; | ||||
|   padding: 10px 15px; | ||||
|   border: none; | ||||
|   border-radius: 3px; | ||||
|   cursor: pointer; | ||||
|   float: left; | ||||
|   margin-bottom: 10px; | ||||
| } | ||||
| 
 | ||||
| .employee-table { | ||||
|   width: 100%; | ||||
|   border-collapse: collapse; | ||||
|   margin-top: 20px; | ||||
| } | ||||
| 
 | ||||
| .employee-table th, | ||||
| .employee-table td { | ||||
|   padding: 12px 15px; | ||||
|   border: 1px solid #ddd; | ||||
|   text-align: left; | ||||
| } | ||||
| 
 | ||||
| .employee-table th { | ||||
|   background-color: #f0f0f0; | ||||
|   font-weight: bold; | ||||
| } | ||||
| 
 | ||||
| .sortable { | ||||
|   cursor: pointer; | ||||
| } | ||||
| 
 | ||||
| .logout-button { | ||||
|   background-color: transparent; | ||||
|   border: none; | ||||
|   cursor: pointer; | ||||
|   border-radius: 50%; | ||||
|   width: 30px; | ||||
|   height: 30px; | ||||
|   display: flex; | ||||
|   float: right; | ||||
| } | ||||
| 
 | ||||
| .logout-button img { | ||||
|   width: 20px; | ||||
|   height: 20px; | ||||
| } | ||||
|  | @ -0,0 +1,43 @@ | |||
| <!DOCTYPE html> | ||||
| <html lang="en"> | ||||
| <head> | ||||
|   <meta charset="UTF-8"> | ||||
|   <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||
|   <title></title> | ||||
|   <link rel="stylesheet" href="mitarbeiterverwaltung-view.component.css"> | ||||
| </head> | ||||
| <body> | ||||
| <div class="container"> | ||||
|   <div class="header"> | ||||
|     <button class="logout-button"> | ||||
|       <img src="user.svg" alt="User Icon"> | ||||
|     </button> | ||||
|     <h1>Employees</h1> | ||||
|   </div> | ||||
|   <div class="header-actions"> | ||||
|     <div class="search-bar"> | ||||
|       <input type="text" placeholder="Search employee"> | ||||
|       <button>Search</button> | ||||
|     </div> | ||||
|     <button class="add-button">Add employee</button> | ||||
|   </div> | ||||
| 
 | ||||
|   <table class="employee-table"> | ||||
|     <thead> | ||||
|     <tr> | ||||
|       <th><span class="sortable">First Name</span></th> | ||||
|       <th><span class="sortable">Last Name</span></th> | ||||
|       <th>Street</th> | ||||
|       <th>Postcode</th> | ||||
|       <th>City</th> | ||||
|       <th>Phone</th> | ||||
|       <th>Actions</th> | ||||
|     </tr> | ||||
|     </thead> | ||||
|     <tbody> | ||||
|     </tbody> | ||||
|   </table> | ||||
| </div> | ||||
| 
 | ||||
| </body> | ||||
| </html> | ||||
|  | @ -0,0 +1,23 @@ | |||
| import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||||
| 
 | ||||
| import { MitarbeiterverwaltungViewComponent } from './mitarbeiterverwaltung-view.component'; | ||||
| 
 | ||||
| describe('MitarbeiterverwaltungViewComponent', () => { | ||||
|   let component: MitarbeiterverwaltungViewComponent; | ||||
|   let fixture: ComponentFixture<MitarbeiterverwaltungViewComponent>; | ||||
| 
 | ||||
|   beforeEach(async () => { | ||||
|     await TestBed.configureTestingModule({ | ||||
|       imports: [MitarbeiterverwaltungViewComponent] | ||||
|     }) | ||||
|     .compileComponents(); | ||||
| 
 | ||||
|     fixture = TestBed.createComponent(MitarbeiterverwaltungViewComponent); | ||||
|     component = fixture.componentInstance; | ||||
|     fixture.detectChanges(); | ||||
|   }); | ||||
| 
 | ||||
|   it('should create', () => { | ||||
|     expect(component).toBeTruthy(); | ||||
|   }); | ||||
| }); | ||||
|  | @ -0,0 +1,12 @@ | |||
| import { Component } from '@angular/core'; | ||||
| 
 | ||||
| @Component({ | ||||
|   selector: 'app-mitarbeiterverwaltung-view', | ||||
|   standalone: true, | ||||
|   imports: [], | ||||
|   templateUrl: './mitarbeiterverwaltung-view.component.html', | ||||
|   styleUrl: './mitarbeiterverwaltung-view.component.css' | ||||
| }) | ||||
| export class MitarbeiterverwaltungViewComponent { | ||||
| 
 | ||||
| } | ||||
		Reference in a new issue