Skip to content

Commit 6c3f71c

Browse files
committed
rota padrão
1 parent 7001f3d commit 6c3f71c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/app/app-routing.module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { CatalogComponent } from './characters/catalog/catalog.component';
44
import { PuzzleComponent } from './puzzle/puzzle/puzzle.component'
55
const routes: Routes = [
66
{path:'catalog', component: CatalogComponent},
7-
{path:'puzzle', component: PuzzleComponent}
7+
{path:'puzzle', component: PuzzleComponent},
8+
{ path: '', redirectTo: '/puzzle', pathMatch: 'full' },
89
];
910

1011
@NgModule({

src/app/navbar/navbar/navbar.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<mat-toolbar class="nav d-none d-lg-block">
2-
<fa-icon routerLink='/puzzle' (click)="turnOn('1')" id="1" [icon]="faGamepad" class="neon_img"></fa-icon>
2+
<fa-icon routerLink='/puzzle' (click)="turnOn('1')" id="1" [icon]="faGamepad" class="neon_img on"></fa-icon>
33
<fa-icon routerLink='/catalog' (click)="turnOn('2')" id="2" [icon]="faChartPie" class="neon_img"></fa-icon>
44
<fa-icon routerLink='/' (click)="turnOn('3')" id="3" [icon]="faSearch" class="neon_img"></fa-icon>
55
<fa-icon routerLink='/' (click)="turnOn('4')" id="4" [icon]="faUser" class="neon_img"></fa-icon>
66
</mat-toolbar>
77
<mat-toolbar class="mobnav d-block d-lg-none">
88
<mat-toolbar-row class="area_neon">
9-
<fa-icon routerLink='/puzzle' (click)="turnOn('5')" id="5" [icon]="faGamepad" class="neon_img"></fa-icon>
9+
<fa-icon routerLink='/puzzle' (click)="turnOn('5')" id="5" [icon]="faGamepad" class="neon_img on"></fa-icon>
1010
<fa-icon routerLink='/catalog' (click)="turnOn('6')" id="6" [icon]="faChartPie" class="mb-4 neon_img"></fa-icon>
1111
<fa-icon routerLink='/' (click)="turnOn('7')" id="7" [icon]="faSearch" class="mb-4 neon_img"></fa-icon>
1212
<fa-icon routerLink='/' (click)="turnOn('8')" id="8" [icon]="faUser" class="neon_img"></fa-icon>

src/app/navbar/navbar/navbar.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ export class NavbarComponent implements OnInit {
2020
faSearch = faSearch;
2121
faUser = faUser;
2222
env = environment.assets;
23-
ngOnInit(): void {}
23+
ngOnInit(): void {
24+
25+
}
2426

2527
turnOff() {
2628
let img;

0 commit comments

Comments
 (0)