mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-07-09 00:20:46 +00:00
93 lines
3.4 KiB
HTML
93 lines
3.4 KiB
HTML
<!-- Loading bar -->
|
|
<fuse-loading-bar></fuse-loading-bar>
|
|
|
|
<!-- Navigation -->
|
|
<ng-container *ngIf="isScreenSmall">
|
|
<fuse-vertical-navigation
|
|
class="dark bg-gray-900 print:hidden"
|
|
[mode]="'over'"
|
|
[name]="'mainNavigation'"
|
|
[navigation]="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="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="images/logo/logo-text.svg">
|
|
<img
|
|
class="hidden dark:flex w-24"
|
|
src="images/logo/logo-text-on-dark.svg">
|
|
</div>
|
|
<img
|
|
class="flex lg:hidden w-8"
|
|
src="images/logo/logo.svg">
|
|
</div>
|
|
<!-- Horizontal navigation -->
|
|
<fuse-horizontal-navigation
|
|
class="mr-2"
|
|
[name]="'mainNavigation'"
|
|
[navigation]="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:bars-3'"></mat-icon>
|
|
</button>
|
|
</ng-container>
|
|
<!-- Components -->
|
|
<div class="flex items-center pl-2 ml-auto space-x-0.5 sm:space-x-2">
|
|
<languages></languages>
|
|
<fuse-fullscreen class="hidden md:block"></fuse-fullscreen>
|
|
<search [appearance]="'bar'"></search>
|
|
<shortcuts></shortcuts>
|
|
<messages></messages>
|
|
<notifications></notifications>
|
|
<button
|
|
class="lg:hidden"
|
|
mat-icon-button
|
|
(click)="quickChat.toggle()">
|
|
<mat-icon [svgIcon]="'heroicons_outline:chat-bubble-left-right'"></mat-icon>
|
|
</button>
|
|
<user></user>
|
|
</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 © {{currentYear}}</span>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Quick chat -->
|
|
<quick-chat #quickChat="quickChat"></quick-chat>
|