-
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.
feat(menu): highlight active page (#25)
- Loading branch information
Showing
3 changed files
with
39 additions
and
31 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -7,25 +7,25 @@ | |
</ion-header> | ||
<ion-content> | ||
<ion-list lines="none"> | ||
<ion-item button="true" (click)="openPage('/login')"> | ||
<ion-item button="true" [routerLink]="['/login']" [routerLinkActive]="['active']" (click)="closeMenu()"> | ||
<ion-avatar> | ||
<ion-icon name="log-in"></ion-icon> | ||
</ion-avatar> | ||
<ion-label>Login</ion-label> | ||
</ion-item> | ||
<ion-item button="true" (click)="openPage('/canteen')"> | ||
<ion-item button="true" [routerLink]="['/canteen']" [routerLinkActive]="['active']" (click)="closeMenu()"> | ||
<ion-avatar> | ||
<ion-icon name="restaurant"></ion-icon> | ||
</ion-avatar> | ||
<ion-label>Mensa</ion-label> | ||
</ion-item> | ||
<ion-item button="true" (click)="openPage('/parking')"> | ||
<ion-item button="true" [routerLink]="['/parking']" [routerLinkActive]="['active']" (click)="closeMenu()"> | ||
<ion-avatar> | ||
<ion-icon name="car"></ion-icon> | ||
</ion-avatar> | ||
<ion-label>Parkplätze</ion-label> | ||
</ion-item> | ||
<ion-item button="true" (click)="openPage('/apartments')"> | ||
<ion-item button="true" [routerLink]="['/apartments']" [routerLinkActive]="['active']" (click)="closeMenu()"> | ||
<ion-avatar> | ||
<ion-icon name="home"></ion-icon> | ||
</ion-avatar> | ||
|
@@ -34,7 +34,13 @@ | |
<ion-item button="true" (click)="openWindow('mailto:[email protected]')" class="sub-item"> | ||
<ion-label>Problem melden</ion-label> | ||
</ion-item> | ||
<ion-item button="true" (click)="openPage('/imprint')" class="sub-item"> | ||
<ion-item | ||
button="true" | ||
[routerLink]="['/imprint']" | ||
[routerLinkActive]="['active']" | ||
(click)="closeMenu()" | ||
class="sub-item" | ||
> | ||
<ion-label>Impressum</ion-label> | ||
</ion-item> | ||
</ion-list> | ||
|
@@ -46,57 +52,57 @@ | |
<ion-toolbar> | ||
<ion-title>DHBW VS</ion-title> | ||
<ion-buttons slot="end"> | ||
<ion-button (click)="openPage('/settings')"> | ||
<ion-button [routerLink]="['/settings']" (click)="closeMenu()"> | ||
<ion-icon slot="icon-only" name="settings"></ion-icon> | ||
</ion-button> | ||
</ion-buttons> | ||
</ion-toolbar> | ||
</ion-header> | ||
<ion-content> | ||
<ion-list lines="none"> | ||
<ion-item button="true" (click)="openPage('/dashboard')"> | ||
<ion-item button="true" [routerLink]="['/dashboard']" [routerLinkActive]="['active']" (click)="closeMenu()"> | ||
<ion-avatar> | ||
<ion-icon name="apps"></ion-icon> | ||
</ion-avatar> | ||
<ion-label>Dashboard</ion-label> | ||
</ion-item> | ||
<ion-item button="true" (click)="openPage('/plan')"> | ||
<ion-item button="true" [routerLink]="['/plan']" [routerLinkActive]="['active']" (click)="closeMenu()"> | ||
<ion-avatar> | ||
<ion-icon name="document"></ion-icon> | ||
</ion-avatar> | ||
<ion-label>Pläne</ion-label> | ||
</ion-item> | ||
<ion-item button="true" (click)="openPage('/canteen')"> | ||
<ion-item button="true" [routerLink]="['/canteen']" [routerLinkActive]="['active']" (click)="closeMenu()"> | ||
<ion-avatar> | ||
<ion-icon name="restaurant"></ion-icon> | ||
</ion-avatar> | ||
<ion-label>Mensa</ion-label> | ||
</ion-item> | ||
<ion-item button="true" (click)="openPage('/parking')"> | ||
<ion-item button="true" [routerLink]="['/parking']" [routerLinkActive]="['active']" (click)="closeMenu()"> | ||
<ion-avatar> | ||
<ion-icon name="car"></ion-icon> | ||
</ion-avatar> | ||
<ion-label>Parkplätze</ion-label> | ||
</ion-item> | ||
<ion-item button="true" (click)="openPage('/apartments')"> | ||
<ion-item button="true" [routerLink]="['/apartments']" [routerLinkActive]="['active']" (click)="closeMenu()"> | ||
<ion-avatar> | ||
<ion-icon name="home"></ion-icon> | ||
</ion-avatar> | ||
<ion-label>Wohnungsmarkt</ion-label> | ||
</ion-item> | ||
<ion-item button="true" (click)="openPage('/dualis')"> | ||
<ion-item button="true" [routerLink]="['/dualis']" [routerLinkActive]="['active']" (click)="closeMenu()"> | ||
<ion-avatar> | ||
<ion-icon name="school"></ion-icon> | ||
</ion-avatar> | ||
<ion-label>Dualis</ion-label> | ||
</ion-item> | ||
<ion-item button="true" (click)="openPage('/contact')"> | ||
<ion-item button="true" [routerLink]="['/contact']" [routerLinkActive]="['active']" (click)="closeMenu()"> | ||
<ion-avatar> | ||
<ion-icon name="person-circle"></ion-icon> | ||
</ion-avatar> | ||
<ion-label>Kontakte</ion-label> | ||
</ion-item> | ||
<ion-item button="true" (click)="openPage('/sos')"> | ||
<ion-item button="true" [routerLink]="['/sos']" [routerLinkActive]="['active']" (click)="closeMenu()"> | ||
<ion-avatar> | ||
<ion-icon name="call"></ion-icon> | ||
</ion-avatar> | ||
|
@@ -105,7 +111,13 @@ | |
<ion-item button="true" (click)="openWindow('mailto:[email protected]')" class="sub-item"> | ||
<ion-label>Problem melden</ion-label> | ||
</ion-item> | ||
<ion-item button="true" (click)="openPage('/imprint')" class="sub-item"> | ||
<ion-item | ||
button="true" | ||
[routerLink]="['/imprint']" | ||
[routerLinkActive]="['active']" | ||
(click)="closeMenu()" | ||
class="sub-item" | ||
> | ||
<ion-label>Impressum</ion-label> | ||
</ion-item> | ||
</ion-list> | ||
|
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,3 @@ | ||
ion-item.active { | ||
--color: var(--ion-color-primary); | ||
} |
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