2021-04-15 17:13:46 +03:00

79 lines
3.1 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 w-full min-w-0">
<!-- Header -->
<div class="relative flex flex-0 items-center w-full h-16 sm:h-20 px-4 md:px-6 z-49 shadow dark:shadow-none dark:border-b bg-card dark:bg-transparent print:hidden">
<ng-container *ngIf="!isScreenSmall">
<!-- Logo -->
<div class="flex items-center mx-2 lg:mr-8">
<div class="hidden lg:flex">
<img
class="dark:hidden w-24"
src="assets/images/logo/logo-text.svg">
<img
class="hidden dark:flex w-24"
src="assets/images/logo/logo-text-on-dark.svg">
</div>
<img
class="flex lg:hidden w-8"
src="assets/images/logo/logo.svg">
</div>
<!-- Horizontal navigation -->
<fuse-horizontal-navigation
class="mr-2"
[name]="'mainNavigation'"
[navigation]="data.navigation.horizontal"></fuse-horizontal-navigation>
</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">
<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>
<!-- Content -->
<div class="flex flex-col flex-auto w-full">
<!-- *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>
<!-- Footer -->
<div class="relative flex flex-0 items-center w-full h-14 sm:h-20 px-4 md:px-6 z-49 border-t bg-card dark:bg-transparent print:hidden">
<span class="font-medium text-secondary">Fuse &copy; {{currentYear}}</span>
</div>
</div>