header.component.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <header fxLayout="row wrap" fxLayoutAlign="space-between center">
  2. <h1 fxFlex.lt-md="100" fxFlex.gt-sm="20">Good morning, Mohamed!</h1>
  3. <div
  4. fxFlex.lt-md="100"
  5. fxFlex.gt-sm="30"
  6. fxLayout="row"
  7. fxLayoutAlign="center center"
  8. class="gap-20 white"
  9. >
  10. <mat-slide-toggle> <span class="white"> Check In</span></mat-slide-toggle>
  11. <mat-slide-toggle><span class="white"> Check Out</span></mat-slide-toggle>
  12. </div>
  13. <div
  14. class="gap-20"
  15. fxLayout="row wrap"
  16. fxLayoutAlign="end center"
  17. fxFlex.lt-md="100"
  18. fxFlex.gt-sm="50"
  19. >
  20. <div class="search" fxHide.lt-sm>
  21. <input type="search" matInput placeholder="Search..." />
  22. </div>
  23. <div
  24. fxLayout="row"
  25. fxLayoutAlign="start center"
  26. class="gap-10"
  27. fxHide.lt-sm
  28. >
  29. <img class="ptr" src="/assets/images/calendar-days.svg" alt="" title="" />
  30. <img class="ptr" src="/assets/images/notification.svg" alt="" title="" />
  31. <img
  32. class="ptr"
  33. src="/assets/images/chat.svg"
  34. alt=""
  35. title=""
  36. (click)="onOpenChat()"
  37. />
  38. </div>
  39. <img
  40. class="profile"
  41. src="../../../../assets/images/fox-hub-2.jpg"
  42. alt=""
  43. title=""
  44. [matMenuTriggerFor]="menu"
  45. aria-label="Example icon-button with a menu"
  46. />
  47. <mat-menu #menu="matMenu">
  48. <button mat-menu-item>
  49. <mat-icon>dialpad</mat-icon>
  50. <span [routerLink]="['./profile']">Profile</span>
  51. </button>
  52. <button mat-menu-item>
  53. <mat-icon>notifications_off</mat-icon>
  54. <span>Disable alerts</span>
  55. </button>
  56. </mat-menu>
  57. </div>
  58. </header>