This commit is contained in:
Zakary Timson 2019-08-24 23:59:34 -04:00
parent 0e79227002
commit 954201c9ee
2 changed files with 8 additions and 6 deletions

View File

@ -6,10 +6,12 @@
<button mat-flat-button class="w-100 text-white" style="background-color: #dd0330" (click)="new()">
<mat-icon>add</mat-icon> New Map
</button>
<div class="input-group w-100 mt-3">
<input type="text" #code class="form-control" placeholder="Code">
<div class="w-100 mt-3">
<form class="input-group">
<input type="text" class="form-control" [(ngModel)]="code" name="code" placeholder="Code">
<div class="input-group-append">
<button class="btn btn-danger" [routerLink]="[code.value]" style="background-color: #dd0330">Open</button>
<button class="btn btn-danger" [routerLink]="['/', code]" style="background-color: #dd0330">Open</button>
</div>
</form>
</div>
</div>

View File

@ -10,7 +10,7 @@ const chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
styleUrls: ['home.component.scss']
})
export class HomeComponent {
splash = true;
code: string;
constructor(private syncService: SyncService, private router: Router) { }