homepage skeleton
This commit is contained in:
parent
2cd1c6d8fd
commit
bbbf0a9473
0
backend/SampleRequests.http
Normal file
0
backend/SampleRequests.http
Normal file
@ -1,6 +1,13 @@
|
|||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import {LandingPageComponent} from "./landing-page/landing-page.component";
|
import {LandingPageComponent} from "./landing-page/landing-page.component";
|
||||||
|
import {HomepageComponent} from "./homepage/homepage/homepage.component";
|
||||||
|
|
||||||
export const routes: Routes = [
|
export const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: 'home',
|
||||||
|
component: HomepageComponent
|
||||||
|
},
|
||||||
|
|
||||||
{ path: '', component: LandingPageComponent }
|
{ path: '', component: LandingPageComponent }
|
||||||
];
|
];
|
||||||
|
|
||||||
|
35
frontend/src/app/homepage/homepage/homepage.component.html
Normal file
35
frontend/src/app/homepage/homepage/homepage.component.html
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
|
||||||
|
<nav class="bg-black border-b border-amber-600/30 sticky top-0 z-50">
|
||||||
|
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
|
||||||
|
<!-- logo goes here -->
|
||||||
|
<div class="flex gap-4">
|
||||||
|
<button (click)="onLogout()" class="px-6 py-2 text-black bg-amber-500 hover:bg-amber-400 rounded-full font-bold transition-all duration-300 hover:shadow-lg hover:shadow-amber-500/20">
|
||||||
|
Ausloggen
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<button (click)="openUserInfo()" class="px-6 py-2 text-black bg-amber-500 hover:bg-amber-400 rounded-full font-bold transition-all duration-300 hover:shadow-lg hover:shadow-amber-500/20">
|
||||||
|
Benutzer
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Todo Dropdown für Benutzermenu (Dailytracker) -->
|
||||||
|
</nav>
|
||||||
|
<!-- Spiele mit Vorschau, Name und "Jetzt spielen" Button -->
|
||||||
|
<div class="gird grid-col-3">
|
||||||
|
<div class="w-full h-full">
|
||||||
|
<p>Spiel Vorschau</p>
|
||||||
|
<p>Spiel Name</p>
|
||||||
|
<button type="button" >Jetzt spielen</button>
|
||||||
|
</div>
|
||||||
|
<div class="w-full h-full">
|
||||||
|
<p>Spiel Vorschau</p>
|
||||||
|
<p>Spiel Name</p>
|
||||||
|
<button type="button" >Jetzt spielen</button>
|
||||||
|
</div>
|
||||||
|
<div class="w-full h-full">
|
||||||
|
<p>Spiel Vorschau</p>
|
||||||
|
<p>Spiel Name</p>
|
||||||
|
<button type="button" >Jetzt spielen</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -0,0 +1,23 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { HomepageComponent } from './homepage.component';
|
||||||
|
|
||||||
|
describe('HomepageComponent', () => {
|
||||||
|
let component: HomepageComponent;
|
||||||
|
let fixture: ComponentFixture<HomepageComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [HomepageComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(HomepageComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
20
frontend/src/app/homepage/homepage/homepage.component.ts
Normal file
20
frontend/src/app/homepage/homepage/homepage.component.ts
Normal file
@ -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
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user