Skip to content

Commit 1597514

Browse files
committed
refactor: upgrade fontawesome
1 parent dfa54da commit 1597514

21 files changed

+180
-189
lines changed

package-lock.json

Lines changed: 30 additions & 94 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,19 @@
4242
"@angular/service-worker": "^19.0.3",
4343
"@angular/youtube-player": "^19.0.2",
4444
"@fortawesome/angular-fontawesome": "^1.0.0",
45-
"@fortawesome/fontawesome-free": "^5.15.4",
46-
"@fortawesome/fontawesome-svg-core": "~1.3.0",
47-
"@fortawesome/free-brands-svg-icons": "^5.15.4",
48-
"@fortawesome/free-regular-svg-icons": "^5.15.4",
49-
"@fortawesome/free-solid-svg-icons": "^5.15.4",
45+
"@fortawesome/free-brands-svg-icons": "^6.7.1",
46+
"@fortawesome/free-regular-svg-icons": "^6.7.1",
47+
"@fortawesome/free-solid-svg-icons": "^6.7.1",
5048
"@nx/angular": "^19.8.14",
5149
"animate.css": "^4.1.1",
5250
"clipboard": "^2.0.11",
5351
"feed": "^4.2.2",
5452
"front-matter": "^4.0.2",
55-
"marked": "^7.0.0",
56-
"marked-gfm-heading-id": "^3.1.0",
57-
"marked-highlight": "^2.0.1",
58-
"marked-mangle": "^1.1.7",
59-
"marked-shiki": "^1.1.0",
53+
"marked": "^13.0.0",
54+
"marked-gfm-heading-id": "4.1.1",
55+
"marked-highlight": "^2.2.1",
56+
"marked-mangle": "^1.1.10",
57+
"marked-shiki": "^1.1.1",
6058
"mermaid": "^10.9.3",
6159
"ngx-sharebuttons": "^13.0.0",
6260
"rxjs": "~7.8.1",

src/app/components/about/about.component.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,22 @@ <h4>
5252
class="button small"
5353
href="https://open.spotify.com/episode/4n6qXpYtCZ9UQACbUPNMpG?si=fIldVBQhR_e8Vw4iStiBSw"
5454
>
55-
<i class="icon brands fa-spotify"></i> Spotify
55+
<fa-icon [icon]="['fab', 'spotify']"></fa-icon>
56+
Spotify
5657
</a>
5758
<a
5859
class="button small"
5960
href="https://podcasts.apple.com/de/podcast/digitale-barrierefreiheit-danny-koppenhagen-und-maximilian/id1462447493?i=1000642092259"
6061
>
61-
<i class="icon brands fa-apple"></i>Apple Podcasts
62+
<fa-icon [icon]="['fab', 'apple']"></fa-icon>
63+
Apple Podcasts
6264
</a>
6365
<a
6466
class="button small"
6567
href="https://deezer.page.link/MZaQ2c5YqQ28vcdn6"
6668
>
67-
<i class="icon brands fa-deezer"></i>Deezer
69+
<fa-icon [icon]="['fab', 'deezer']"></fa-icon>
70+
Deezer
6871
</a>
6972
</div>
7073
</div>
@@ -86,7 +89,7 @@ <h4>#000000 c0ffee Tech-Talk der DB Systel</h4>
8689
Anwendungszwecke eignet. Außerdem erläutere ich, wie der aktuelle
8790
Stand der Technik für Progressive Webapps (PWA) ist. Im letzten Teil
8891
sprechen wir über die Anbindung von APIs und über das
89-
Architekturmuster \"Backend For Frontends\" (BFF).
92+
Architekturmuster "Backend For Frontends" (BFF).
9093
</p>
9194
</article>
9295
<article class="grid-description-2">

src/app/components/about/about.component.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,23 @@ import {
1212
AfterViewChecked,
1313
} from '@angular/core';
1414
import { YouTubePlayerModule } from '@angular/youtube-player';
15+
import {
16+
FaIconLibrary,
17+
FontAwesomeModule,
18+
} from '@fortawesome/angular-fontawesome';
19+
import {
20+
faSpotify,
21+
faDeezer,
22+
faApple,
23+
} from '@fortawesome/free-brands-svg-icons';
1524

1625
import { PersonalTimelineComponent } from '../personal-timeline/personal-timeline.component';
1726

1827
@Component({
1928
selector: 'dk-about',
2029
templateUrl: './about.component.html',
2130
styleUrl: './about.component.scss',
22-
imports: [YouTubePlayerModule, PersonalTimelineComponent],
31+
imports: [YouTubePlayerModule, PersonalTimelineComponent, FontAwesomeModule],
2332
changeDetection: ChangeDetectionStrategy.OnPush,
2433
})
2534
export class AboutComponent implements OnInit, AfterViewChecked {
@@ -29,9 +38,11 @@ export class AboutComponent implements OnInit, AfterViewChecked {
2938
readonly videoBox = viewChild<ElementRef>('videoBox');
3039
youtubePlayerWidth = 300;
3140
isBrowser = false;
41+
faLib = inject(FaIconLibrary);
3242

3343
constructor() {
3444
this.isBrowser = isPlatformBrowser(this.platformId);
45+
this.faLib.addIcons(faSpotify, faDeezer, faApple);
3546
}
3647

3748
@HostListener('window:resize', ['$event'])

src/app/components/card/card.component.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,17 @@ <h3 class="major">{{ post.attributes.title }}</h3>
2020
[href]="externalUrl"
2121
[lang]="post.attributes.language || 'de'"
2222
target="_blank"
23-
>Weiterlesen...</a
2423
>
24+
<fa-icon [icon]="['fas', 'chevron-right']"></fa-icon> Weiterlesen...
25+
</a>
2526
} @else {
2627
<a
2728
class="special read-on"
2829
[lang]="post.attributes.language || 'de'"
2930
[routerLink]="routeToPost"
30-
>Weiterlesen...</a
3131
>
32+
<fa-icon [icon]="['fas', 'chevron-right']"></fa-icon> Weiterlesen...
33+
</a>
3234
}
3335
@if (
3436
post.attributes.publishedAt &&

src/app/components/card/card.component.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ img.card-image {
3737
.read-on {
3838
white-space: nowrap;
3939
margin-right: 10px;
40+
display: flex;
41+
gap: 0.75rem;
4042
}
4143

4244
.published-at-link {
@@ -48,6 +50,7 @@ img.card-image {
4850
> img.published-at-logo {
4951
float: right;
5052
max-height: 50px;
53+
padding-bottom: 0.75rem;
5154
}
5255
}
5356
}

src/app/components/card/card.component.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
11
import { ContentFile } from '@analogjs/content';
2-
import { Component, input } from '@angular/core';
2+
import { Component, inject, input } from '@angular/core';
33
import { RouterLink } from '@angular/router';
4+
import {
5+
FaIconLibrary,
6+
FontAwesomeModule,
7+
} from '@fortawesome/angular-fontawesome';
8+
import { faChevronRight } from '@fortawesome/free-solid-svg-icons';
49

510
import { PostAttributes } from '../../types';
611

712
@Component({
813
selector: 'dk-card',
914
templateUrl: './card.component.html',
1015
styleUrl: './card.component.scss',
11-
imports: [RouterLink],
16+
imports: [RouterLink, FontAwesomeModule],
1217
})
1318
export class CardComponent {
1419
readonly post = input.required<ContentFile<PostAttributes>>();
20+
private faLib = inject(FaIconLibrary);
21+
22+
constructor() {
23+
this.faLib.addIcons(faChevronRight);
24+
}
1525

1626
get routeToPost() {
1727
// Extracting the last part between slashes and excluding the file extension

0 commit comments

Comments
 (0)