Skip to content

Commit

Permalink
Added to the header an icon for downloading the resume as PDF file.
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermeborgesbastos committed Jun 14, 2020
1 parent 4b1754d commit 326d4b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/header/header.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<li><a (click)="resetMenu()" href="#experience" i18n="nav@@experiences" itemprop="url"><span itemprop="name">Experiences</span></a></li>
<li><a (click)="resetMenu()" href="#posts" i18n="nav@@posts" itemprop="url"><span itemprop="name">Posts</span></a></li>
<li><a (click)="resetMenu()" href="#contact" i18n="nav@@contact" itemprop="url"><span itemprop="name">Contact</span></a></li>
<li><a (click)="resetMenu()" href="https://assets.guilhermeborgesbastos.com/live-resume/template/experience/cv-english-guilherme-bastos-v1.3.pdf" title="Download resume as PDF" target="_blank"><fa-icon [icon]="faCloudDownloadAlt" class="bar-icon"></fa-icon></a></li>
</ul>
</div>

Expand Down
4 changes: 3 additions & 1 deletion src/app/header/header.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, OnInit, Input, ViewChild, ElementRef, Renderer2, Inject, LOCALE_ID, AfterViewInit } from '@angular/core';
import { faBars, faShareAlt, IconDefinition } from '@fortawesome/free-solid-svg-icons';
import { faBars, faShareAlt, faCloudDownloadAlt, IconDefinition } from '@fortawesome/free-solid-svg-icons';
import { NgNavigatorShareService } from 'ng-navigator-share';

@Component({
Expand All @@ -17,6 +17,7 @@ export class HeaderComponent implements OnInit, AfterViewInit {
hasMenuToggled: boolean;
faBars: IconDefinition;
faShareAlt: IconDefinition;
faCloudDownloadAlt: IconDefinition;

@ViewChild('nav') nav: ElementRef;
@ViewChild('shareBtn') shareBtn: ElementRef;
Expand Down Expand Up @@ -60,6 +61,7 @@ export class HeaderComponent implements OnInit, AfterViewInit {
ngOnInit(): void {
this.faBars = faBars;
this.faShareAlt = faShareAlt;
this.faCloudDownloadAlt = faCloudDownloadAlt;
}

private updateNavigation() {
Expand Down

0 comments on commit 326d4b5

Please sign in to comment.