Skip to content

Commit 6396ce9

Browse files
committed
feat(arc-lib): standalone components with intro part
standalone components with docs of introduction part GH-26
1 parent f67abed commit 6396ce9

File tree

3 files changed

+50
-10
lines changed

3 files changed

+50
-10
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<div class="nav-container">
2+
<div class="header-container">
3+
<div class="logo-container">
4+
<nb-icon
5+
icon="menu-outline"
6+
class="cursor-pointer menu-icon"
7+
(click)="toggle()"
8+
></nb-icon>
9+
<a
10+
class="logo"
11+
href="javascript:void(0)"
12+
(click)="navigateHome('/main/home')"
13+
>
14+
<img src="../../assets/images/home/ARC_logo.png" alt="logo" />
15+
</a>
16+
</div>
17+
</div>
18+
</div>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
@use 'sass:map';
2+
@use '../../theme/styles/variables' as *;
3+
@use '../.././../../../arc/src/styles.scss' as *;
4+
@use '../../theme/styles/mixins' as *;
5+
6+
.nav-container {
7+
display: flex;
8+
justify-content: space-between;
9+
width: 100% !important;
10+
}
11+
12+
.logo-container {
13+
display: flex;
14+
align-items: center;
15+
width: calc(#{nb-theme(sidebar-width)} - #{nb-theme(header-padding)});
16+
user-select: none;
17+
}
18+
19+
nb-action {
20+
height: auto;
21+
display: flex;
22+
align-content: center;
23+
}
24+
25+
nb-user {
26+
cursor: pointer;
27+
}
28+
29+
.hi {
30+
text-align: center;
31+
}

projects/arc-lib/src/lib/components/header/header.component.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {Location} from '@angular/common';
1919
export class HeaderComponent extends RouteComponentBaseDirective {
2020
toggleFooter = false;
2121
loggedInUserDM: LoggedInUserDM = new LoggedInUserDM();
22-
userMenu: NbMenuItem[] = [{title: 'Log out', data: 'logout'}];
22+
2323
constructor(
2424
override readonly route: ActivatedRoute,
2525
override readonly location: Location,
@@ -41,13 +41,4 @@ export class HeaderComponent extends RouteComponentBaseDirective {
4141
this.sidebarService.toggle(true, 'right');
4242
this.toggleFooter = !this.toggleFooter;
4343
}
44-
45-
ngOnInit(): void {
46-
this.authService
47-
.currentUser()
48-
.pipe(takeUntil(this._destroy$))
49-
.subscribe(usr => {
50-
this.loggedInUserDM = usr;
51-
});
52-
}
5344
}

0 commit comments

Comments
 (0)