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)">
|
<a routerLink="/projects" routerLinkActive="active" (click)="showMobileMenu.set(false)">
|
||||||
{{ 'common.projects' | translate }}
|
{{ 'common.projects' | translate }}
|
||||||
</a>
|
</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>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="block md:hidden w-full h-full fixed top-0 left-0 z-40 backdrop-blur-md"></div>
|
<div class="block md:hidden w-full h-full fixed top-0 left-0 z-40 backdrop-blur-md"></div>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
nav {
|
|
||||||
.options > div {
|
.options > div {
|
||||||
display: grid;
|
display: grid;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
@@ -8,12 +7,11 @@ nav {
|
|||||||
transition: border .5s ease;
|
transition: border .5s ease;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
border-color: var(--content-hover-background);
|
border-color: rgb(from var(--content-color) r g b / 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
border-color: var(--content-border-color);
|
border-color: var(--content-color);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user