Commit 19cb3fd9 authored by Dennis Willers's avatar Dennis Willers 🏀

Add Angular Material Design Modules and design startpage

parent 7dd3285e
Pipeline #266 passed with stages
in 7 minutes and 17 seconds
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
"build": "ng build", "build": "ng build",
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e" "e2e": "ng e2e",
"postinstall": "ngcc"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
......
<div style="background-color: azure" fxLayout="column" fxFlexFill> <div fxLayout="column" fxFlexFill style="background-color: #e7e7e7">
<app-header> <app-header>
</app-header> </app-header>
<div fxFlex> <div fxFlex>
......
...@@ -9,6 +9,10 @@ import { HeaderComponent } from './header/header.component'; ...@@ -9,6 +9,10 @@ import { HeaderComponent } from './header/header.component';
import { FooterComponent } from './footer/footer.component'; import { FooterComponent } from './footer/footer.component';
import { FlexLayoutModule } from '@angular/flex-layout'; import { FlexLayoutModule } from '@angular/flex-layout';
import { SelectGameComponent } from './select-game/select-game.component'; import { SelectGameComponent } from './select-game/select-game.component';
import {MatButtonModule} from '@angular/material/button';
import {MatFormFieldModule} from '@angular/material/form-field';
import {MatInputModule} from '@angular/material/input';
import {MatCardModule} from '@angular/material/card';
@NgModule({ @NgModule({
declarations: [ declarations: [
...@@ -22,7 +26,11 @@ import { SelectGameComponent } from './select-game/select-game.component'; ...@@ -22,7 +26,11 @@ import { SelectGameComponent } from './select-game/select-game.component';
AppRoutingModule, AppRoutingModule,
BrowserAnimationsModule, BrowserAnimationsModule,
MatToolbarModule, MatToolbarModule,
FlexLayoutModule FlexLayoutModule,
MatButtonModule,
MatFormFieldModule,
MatInputModule,
MatCardModule
], ],
providers: [], providers: [],
bootstrap: [AppComponent] bootstrap: [AppComponent]
......
<p>select-game works!</p> <div style="text-align: center; margin-left: 15em; margin-right: 15em; margin-top: 5em;">
<h1>Willkommen bei Tabu im Online-Multiplayer-Modus</h1>
<h2>Ideal im Lockdown!</h2>
<br>
<br>
<br>
<mat-card>
<mat-card-title>Spielsuche</mat-card-title>
<mat-card-subtitle>Finde oder erstelle ein Spiel über den Spielnamen</mat-card-subtitle>
<mat-card-content>
<form>
<mat-form-field>
<mat-label>Spielname</mat-label>
<input type="text" matInput>
</mat-form-field>
</form>
</mat-card-content>
<mat-card-actions>
<button mat-raised-button color="primary">Spiel erstellen</button>
<button mat-raised-button color="primary">Spiel beitreten</button>
</mat-card-actions>
</mat-card>
</div>
.example-form {
min-width: 150px;
max-width: 500px;
width: 100%;
}
.example-full-width {
width: 100%;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment