diff --git a/src/app/general/home/home.component.html b/src/app/general/home/home.component.html index 5f2c53f..f31f709 100644 --- a/src/app/general/home/home.component.html +++ b/src/app/general/home/home.component.html @@ -1 +1,3 @@ -

home works!

+
+ +
\ No newline at end of file diff --git a/src/app/general/home/home.component.scss b/src/app/general/home/home.component.scss index e69de29..48d3342 100644 --- a/src/app/general/home/home.component.scss +++ b/src/app/general/home/home.component.scss @@ -0,0 +1,4 @@ +.dashboard-container { + padding-top: 35px; + height: 100%; +} \ No newline at end of file diff --git a/src/app/general/home/home.component.ts b/src/app/general/home/home.component.ts index 519165d..59748de 100644 --- a/src/app/general/home/home.component.ts +++ b/src/app/general/home/home.component.ts @@ -1,5 +1,6 @@ -import { ChangeDetectionStrategy, Component } from '@angular/core'; +import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'; import { HomeAnimations } from './home.animations'; +import { NavbarComponent } from 'src/app/shared/components/navbar/navbar.component'; @Component({ selector: 'app-home', @@ -8,8 +9,26 @@ import { HomeAnimations } from './home.animations'; changeDetection: ChangeDetectionStrategy.OnPush, animations: HomeAnimations, standalone: true, - imports: [], + imports: [ + NavbarComponent + ], }) -export class HomeComponent { +export class HomeComponent implements OnInit { + // --------------- INPUTS AND OUTPUTS ------------------ + + // --------------- LOCAL UI STATE ---------------------- + + // --------------- COMPUTED DATA ----------------------- + + // --------------- EVENT HANDLING ---------------------- + + // --------------- OTHER ------------------------------- + + constructor( + ) { } + + // --------------- LOAD AND CLEANUP -------------------- + ngOnInit(): void { + } } \ No newline at end of file diff --git a/src/app/shared/components/navbar/navbar.component.html b/src/app/shared/components/navbar/navbar.component.html index 6bbf8ee..1dc4f26 100644 --- a/src/app/shared/components/navbar/navbar.component.html +++ b/src/app/shared/components/navbar/navbar.component.html @@ -1 +1,18 @@ -

navbar works!

+ \ No newline at end of file diff --git a/src/app/shared/components/navbar/navbar.component.scss b/src/app/shared/components/navbar/navbar.component.scss index e69de29..3ac5f8a 100644 --- a/src/app/shared/components/navbar/navbar.component.scss +++ b/src/app/shared/components/navbar/navbar.component.scss @@ -0,0 +1,42 @@ +.navbar-container { + height: 70px; + width: 100%; + background: #FFFFFF; + box-shadow: -4px 0px 4px rgba(200, 224, 212, 0.25); + display: flex; + flex-direction: row; + align-items: center; // Center items vertically + padding: 8px 16px; // Add padding to the container + + .logo { + width: 46px; + height: 46px; + cursor: pointer; + margin-right: 16px; // Add margin between logo and user section + } + + .user-setting-section { + margin-left: auto; // Push to the right + display: flex; + align-items: center; // Center items vertically + color: #2DBDB1; + .profile-pic{ + height: 46px; + width: 46px; + border-radius: 50%; + cursor: pointer; + } + } +} + +/** material target, can't be nested */ +.logout { + display: flex; + align-items: center; + justify-content: center; + gap: 20px; + font-size: 20px; + font-weight: 300; + cursor: pointer; + padding: 10px; +} diff --git a/src/app/shared/components/navbar/navbar.component.ts b/src/app/shared/components/navbar/navbar.component.ts index 61730ec..673387e 100644 --- a/src/app/shared/components/navbar/navbar.component.ts +++ b/src/app/shared/components/navbar/navbar.component.ts @@ -1,10 +1,11 @@ import { Component, OnInit } from '@angular/core'; +import { MatMenu, MatMenuTrigger } from '@angular/material/menu'; @Component({ selector: 'app-navbar', standalone: true, - imports: [], + imports: [ MatMenuTrigger, MatMenu], templateUrl: './navbar.component.html', styleUrl: './navbar.component.scss' }) diff --git a/src/assets/images/logo.svg b/src/assets/images/logo.svg new file mode 100644 index 0000000..ea02672 --- /dev/null +++ b/src/assets/images/logo.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file