feat(navigation-bar): add theme- and language-buttons to mobile-menu
This commit is contained in:
@@ -51,8 +51,24 @@
|
||||
<a routerLink="/projects" routerLinkActive="active" (click)="showMobileMenu.set(false)">
|
||||
{{ 'common.projects' | translate }}
|
||||
</a>
|
||||
<hr class="h-[1px] w-[80%] bg-(--content-color) mx-auto"/>
|
||||
<div class="options flex flex-row gap-[10px] items-center justify-center">
|
||||
@if (themeSwitchService.darkMode()) {
|
||||
<div class="dark-mode size-[50px]" (click)="themeSwitchService.switchToLight()">
|
||||
<fa-icon [icon]="faMoon"/>
|
||||
</div>
|
||||
} @else {
|
||||
<div class="dark-mode size-[50px]" (click)="themeSwitchService.switchToDark()">
|
||||
<fa-icon [icon]="faSun"/>
|
||||
</div>
|
||||
}
|
||||
<div class="language size-[50px]" (click)="toggleLanguage()">
|
||||
{{ translateService.getCurrentLang().toUpperCase() }}
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<div class="block md:hidden w-full h-full fixed top-0 left-0 z-40 backdrop-blur-md"></div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user