diff --git a/backend/SampleRequests.http b/backend/SampleRequests.http new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/app/app.routes.ts b/frontend/src/app/app.routes.ts index 3a96b8f..ce6d45a 100644 --- a/frontend/src/app/app.routes.ts +++ b/frontend/src/app/app.routes.ts @@ -1,6 +1,13 @@ import { Routes } from '@angular/router'; import {LandingPageComponent} from "./landing-page/landing-page.component"; +import {HomepageComponent} from "./homepage/homepage/homepage.component"; export const routes: Routes = [ + { + path: 'home', + component: HomepageComponent + }, + { path: '', component: LandingPageComponent } ]; + diff --git a/frontend/src/app/homepage/homepage/homepage.component.css b/frontend/src/app/homepage/homepage/homepage.component.css new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/app/homepage/homepage/homepage.component.html b/frontend/src/app/homepage/homepage/homepage.component.html new file mode 100644 index 0000000..c0b2cc7 --- /dev/null +++ b/frontend/src/app/homepage/homepage/homepage.component.html @@ -0,0 +1,35 @@ + + + +
+
+

Spiel Vorschau

+

Spiel Name

+ +
+
+

Spiel Vorschau

+

Spiel Name

+ +
+
+

Spiel Vorschau

+

Spiel Name

+ +
+
diff --git a/frontend/src/app/homepage/homepage/homepage.component.spec.ts b/frontend/src/app/homepage/homepage/homepage.component.spec.ts new file mode 100644 index 0000000..8d5e4db --- /dev/null +++ b/frontend/src/app/homepage/homepage/homepage.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { HomepageComponent } from './homepage.component'; + +describe('HomepageComponent', () => { + let component: HomepageComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [HomepageComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(HomepageComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/frontend/src/app/homepage/homepage/homepage.component.ts b/frontend/src/app/homepage/homepage/homepage.component.ts new file mode 100644 index 0000000..0b720e5 --- /dev/null +++ b/frontend/src/app/homepage/homepage/homepage.component.ts @@ -0,0 +1,20 @@ +import {ChangeDetectionStrategy, Component} from '@angular/core'; + +@Component({ + selector: 'app-homepage', + standalone: true, + imports: [], + templateUrl: './homepage.component.html', + styleUrl: './homepage.component.css', + changeDetection: ChangeDetectionStrategy.OnPush +}) +export class HomepageComponent { + + onLogout() { + //TODO implement + } + + openUserInfo() { + //TODO implement + } +}