-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a969429
commit 4f3b98f
Showing
6 changed files
with
37 additions
and
21 deletions.
There are no files selected for viewing
38 changes: 24 additions & 14 deletions
38
src/app/features/settings/components/settings.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,31 @@ | ||
<div class="grid h-screen place-items-center"> | ||
<form [formGroup]="form"> | ||
<div> | ||
<label for="width">Width:</label> | ||
<input type="number" id="width" formControlName="width"> | ||
<form [formGroup]="form" class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4"> | ||
<div class="mb-4"> | ||
<label class="block text-gray-700 text-sm font-bold mb-2" for="width">Width:</label> | ||
<input | ||
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" | ||
type="number" id="width" formControlName="width"> | ||
</div> | ||
|
||
<div> | ||
<label for="height">Height:</label> | ||
<input type="number" id="height" formControlName="height"> | ||
<label class="block text-gray-700 text-sm font-bold mb-2" for="height">Height:</label> | ||
<input | ||
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" | ||
type="number" id="height" formControlName="height"> | ||
</div> | ||
|
||
<div> | ||
<label for="totalMines">Total Mines:</label> | ||
<input type="number" id="totalMines" formControlName="totalMines"> | ||
<label class="block text-gray-700 text-sm font-bold mb-2" for="totalMines">Total Mines:</label> | ||
<input | ||
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" | ||
type="number" id="totalMines" formControlName="totalMines"> | ||
</div> | ||
|
||
<div class="py-8"> | ||
<button | ||
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline float-right" | ||
type="button" (click)="saveForm()">Save Settings | ||
</button> | ||
</div> | ||
|
||
<button type="button" (click)="saveForm()">Save Settings</button> | ||
</form> | ||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
label | ||
@apply block text-gray-700 text-sm font-bold mb-2 | ||
input | ||
@apply shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<div class="flex"> | ||
<nav><a routerLink="/game">Game</a></nav> | ||
<nav><a routerLink="/save-load">Save and Load</a></nav> | ||
<nav><a routerLink="/settings">Settings</a></nav> | ||
</div> | ||
<div class="flex items-center flex-wrap bg-pink-400 p-6 text-sm lg:flex-grow" > | ||
<nav><a class="block mt-4 lg:inline-block lg:mt-0 text-white hover:text-white mr-4" routerLink="/game">Game</a> | ||
</nav> | ||
<nav><a class="block mt-4 lg:inline-block lg:mt-0 text-white hover:text-white mr-4" routerLink="/settings">Settings</a></nav> | ||
<nav><a class="block mt-4 lg:inline-block lg:mt-0 text-white hover:text-white mr-4" routerLink="/save-load">Save and Load</a></nav> | ||
</div> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from "@angular/core"; | ||
import { ChangeDetectionStrategy, Component } from "@angular/core"; | ||
|
||
@Component({ | ||
selector: "app-header", | ||
templateUrl: "./header.component.html", | ||
styleUrls: ["./header.component.sass"], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class HeaderComponent {} |