Skip to content

Commit 34e8857

Browse files
committed
feat(demo): add logo
1 parent 22314a1 commit 34e8857

File tree

5 files changed

+38
-1
lines changed

5 files changed

+38
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
![](https://raw.githubusercontent.com/angular-extensions/elements/master/projects/elements-demo/src/assets/logo/github.svg)
2+
13
# Angular Elements - @angular-extensions/elements
24

35
by [@tomastrajan](https://twitter.com/tomastrajan)

projects/elements-demo/src/app/core/layout/toolbar/toolbar.component.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,16 @@
99
navOpened ? 'close' : 'menu'
1010
}}</mat-icon>
1111
</button>
12-
<span>@angular-extensions/elements</span>
12+
13+
<a mat-icon-button routerLink="home">
14+
<mat-icon
15+
inline
16+
svgIcon="logo"
17+
aria-hidden="false"
18+
aria-label="@angular-extensions/elements"
19+
></mat-icon>
20+
</a>
21+
<span class="project-name">@angular-extensions/elements</span>
1322

1423
<span class="spacer"></span>
1524
<ng-container *ngIf="(isSmallScreen | async) === false">

projects/elements-demo/src/app/core/layout/toolbar/toolbar.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.project-name {
2+
padding: 0 0 0 10px;
3+
}
4+
15
.spacer {
26
flex: 1 0 auto;
37
}

projects/elements-demo/src/app/shared/shared.module.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,9 @@ export class SharedModule {
4040
'assets/logo/twitter.svg'
4141
)
4242
);
43+
this.matIconRegistry.addSvgIcon(
44+
'logo',
45+
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/logo/logo.svg')
46+
);
4347
}
4448
}
Lines changed: 18 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)