Skip to content

Commit

Permalink
feat: add logo to toolbar; remove github logo
Browse files Browse the repository at this point in the history
  • Loading branch information
grantwforsythe committed Mar 11, 2024
1 parent 015a5e9 commit f30f735
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 14 deletions.
9 changes: 2 additions & 7 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,12 @@
<button mat-icon-button (click)="sidenav.open('mouse')">
<mat-icon>menu</mat-icon>
</button>
<a
mat-button
id="header__link"
href="https://github.com/grantwforsythe/ynab-custom-reports"
aria-label="GitHub Repository"
>
<a mat-button [routerLink]="['budgets']" aria-label="YNAB Custom Reports">
<img
matButtonIcon
aria-hidden="true"
alt="ynab-custom-reports"
src="../assets/images/github.svg"
src="../assets/images/charts.svg"
/>
</a>
</div>
Expand Down
9 changes: 2 additions & 7 deletions src/app/app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,13 @@
padding-right: 25px;
}

#header__link > img {
img {
height: 45px;
width: 45px;
}

.container {
width: 100%;
display: flex;
justify-content: center;
}

.container > a {
margin-left: auto;
align-self: flex-end;
justify-content: left;
}
4 changes: 4 additions & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,9 @@ export class AppComponent {
'github',
sanitizer.bypassSecurityTrustResourceUrl('assets/images/github.svg'),
);
iconRegistry.addSvgIcon(
'charts',
sanitizer.bypassSecurityTrustResourceUrl('assets/images/charts.svg'),
);
}
}
25 changes: 25 additions & 0 deletions src/assets/images/charts.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f30f735

Please sign in to comment.