[frontend] Add mobile navbar
This commit is contained in:
parent
d35fc500d0
commit
c19aa91ec8
|
@ -2,21 +2,63 @@
|
||||||
<a mat-button [routerLink]="['/']" routerLinkActive="router-link-active"
|
<a mat-button [routerLink]="['/']" routerLinkActive="router-link-active"
|
||||||
>Kibicara</a
|
>Kibicara</a
|
||||||
>
|
>
|
||||||
<a mat-button [routerLink]="['/hoods']" routerLinkActive="router-link-active"
|
<a
|
||||||
|
mat-button
|
||||||
|
[routerLink]="['/hoods']"
|
||||||
|
routerLinkActive="router-link-active"
|
||||||
|
class="hide-button"
|
||||||
>All hoods</a
|
>All hoods</a
|
||||||
>
|
>
|
||||||
|
<a
|
||||||
|
mat-icon-button
|
||||||
|
[routerLink]="['/hoods']"
|
||||||
|
routerLinkActive="router-link-active"
|
||||||
|
class="show-button"
|
||||||
|
><mat-icon>search</mat-icon></a
|
||||||
|
>
|
||||||
<a
|
<a
|
||||||
mat-button
|
mat-button
|
||||||
[routerLink]="['/organizers']"
|
[routerLink]="['/organizers']"
|
||||||
routerLinkActive="router-link-active"
|
routerLinkActive="router-link-active"
|
||||||
|
class="hide-button"
|
||||||
>Become a hood admin!</a
|
>Become a hood admin!</a
|
||||||
>
|
>
|
||||||
|
<a
|
||||||
|
mat-icon-button
|
||||||
|
[routerLink]="['/organizers']"
|
||||||
|
routerLinkActive="router-link-active"
|
||||||
|
class="show-button"
|
||||||
|
><mat-icon>add_box</mat-icon></a
|
||||||
|
>
|
||||||
<span class="example-spacer"></span>
|
<span class="example-spacer"></span>
|
||||||
<div *ngIf="authenticated; else unauthenticated">
|
<div *ngIf="authenticated; else unauthenticated">
|
||||||
<a mat-raised-button [routerLink]="['/dashboard']" routerLinkActive="router-link-active">Dashboard</a>
|
<a
|
||||||
<a mat-button (click)="onLogout()" routerLinkActive="router-link-active">Logout</a>
|
mat-raised-button
|
||||||
|
[routerLink]="['/dashboard']"
|
||||||
|
routerLinkActive="router-link-active"
|
||||||
|
>Dashboard</a
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
mat-button
|
||||||
|
(click)="onLogout()"
|
||||||
|
routerLinkActive="router-link-active"
|
||||||
|
class="hide-button"
|
||||||
|
>Logout</a
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
mat-button
|
||||||
|
(click)="onLogout()"
|
||||||
|
routerLinkActive="router-link-active"
|
||||||
|
class="show-button"
|
||||||
|
><mat-icon>exit_to_app</mat-icon></a
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
<ng-template #unauthenticated>
|
<ng-template #unauthenticated>
|
||||||
<a mat-button [routerLink]="['/login']" routerLinkActive="router-link-active">Login</a>
|
<a
|
||||||
|
mat-button
|
||||||
|
[routerLink]="['/login']"
|
||||||
|
routerLinkActive="router-link-active"
|
||||||
|
>Login</a
|
||||||
|
>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</mat-toolbar>
|
</mat-toolbar>
|
||||||
|
|
|
@ -1,3 +1,16 @@
|
||||||
.example-spacer {
|
.example-spacer {
|
||||||
flex: 1 auto;
|
flex: 1 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hide-button {
|
||||||
|
@media screen and (max-width: 600px) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.show-button {
|
||||||
|
display: none;
|
||||||
|
@media screen and (max-width: 600px) {
|
||||||
|
display: initial;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue