sercan 59960af7a5 (MultiLang) Added multi language support using @ngneat/transloco
(docs) Added docs about multi language
2021-05-18 15:11:57 +03:00

92 lines
4.0 KiB
HTML

<!-- Navigation -->
<ng-container *ngIf="isScreenSmall">
<fuse-vertical-navigation
class="dark bg-gray-900 print:hidden"
[mode]="'over'"
[name]="'mainNavigation'"
[navigation]="data.navigation.default"
[opened]="false">
<!-- Navigation header hook -->
<ng-container fuseVerticalNavigationContentHeader>
<!-- Logo -->
<div class="flex items-center h-20 pt-6 px-8">
<img
class="w-24"
src="assets/images/logo/logo-text-on-dark.svg"
alt="Logo image">
</div>
</ng-container>
</fuse-vertical-navigation>
</ng-container>
<!-- Wrapper -->
<div class="flex flex-col flex-auto items-center w-full min-w-0 bg-gray-200 dark:bg-card">
<!-- Header -->
<div class="relative flex justify-center w-full overflow-hidden z-49 bg-primary-700 print:hidden">
<div class="max-w-360 w-full sm:py-3 sm:m-8 sm:mb-0 md:mt-12 md:mx-8 md:pt-4 md:pb-3 sm:rounded-t-xl border-b sm:shadow-2xl overflow-hidden bg-card">
<!-- Top bar -->
<div class="relative flex flex-auto flex-0 items-center h-16 px-4 md:px-6">
<!-- Logo -->
<ng-container *ngIf="!isScreenSmall">
<div class="flex items-center mx-2">
<!-- Light version -->
<img
class="w-24 dark:hidden"
src="assets/images/logo/logo-text.svg"
alt="Logo image">
<!-- Dark version -->
<img
class="hidden dark:flex w-24"
src="assets/images/logo/logo-text-on-dark.svg"
alt="Logo image">
</div>
</ng-container>
<!-- Navigation toggle button -->
<ng-container *ngIf="isScreenSmall">
<button
mat-icon-button
(click)="toggleNavigation('mainNavigation')">
<mat-icon [svgIcon]="'heroicons_outline:menu'"></mat-icon>
</button>
</ng-container>
<!-- Components -->
<div class="flex items-center pl-2 ml-auto space-x-2">
<language></language>
<fuse-fullscreen></fuse-fullscreen>
<search [appearance]="'bar'"></search>
<shortcuts [shortcuts]="data.shortcuts"></shortcuts>
<messages [messages]="data.messages"></messages>
<notifications [notifications]="data.notifications"></notifications>
<user-menu></user-menu>
</div>
</div>
<!-- Bottom bar -->
<ng-container *ngIf="!isScreenSmall">
<div class="relative flex flex-auto flex-0 items-center h-16 px-4">
<fuse-horizontal-navigation
[name]="'mainNavigation'"
[navigation]="data.navigation.horizontal"></fuse-horizontal-navigation>
</div>
</ng-container>
</div>
</div>
<!-- Content -->
<div class="flex flex-auto justify-center w-full sm:px-8">
<div class="flex flex-col flex-auto w-full sm:max-w-360 sm:shadow-xl sm:overflow-hidden bg-default">
<!-- *ngIf="true" hack is required here for router-outlet to work correctly.
Otherwise, layout changes won't be registered and the view won't be updated! -->
<router-outlet *ngIf="true"></router-outlet>
</div>
</div>
<!-- Footer -->
<div class="relative flex justify-center w-full z-49 print:hidden">
<div class="flex items-center max-w-360 w-full h-14 sm:h-20 px-6 md:px-8 sm:shadow-xl border-t bg-card dark:bg-default">
<span class="font-medium text-secondary">Fuse &copy; {{currentYear}}</span>
</div>
</div>
</div>