File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed
Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1111 @if (post()!.coverImage) {
1212 < div
1313 class ="mb-8 h-64 rounded-(--radius) bg-cover bg-center "
14- [style.background-image] ="'url(' + post()!.coverImage + ')' "
14+ [style.background-image] ="'url(' + baseUrl + post()!.coverImage + ')' "
1515 role ="img "
1616 [attr.aria-label] ="activeLang() === 'en' ? post()!.titleEn : post()!.title "
1717 > </ div >
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export class BlogDetailComponent {
2828 private readonly http = inject ( HttpClient ) ;
2929 private readonly route = inject ( ActivatedRoute ) ;
3030 private readonly translocoService = inject ( TranslocoService ) ;
31- private readonly baseUrl = inject ( BASE_URL ) ;
31+ protected readonly baseUrl = inject ( BASE_URL ) ;
3232
3333 protected readonly post = signal < BlogPost | null > ( null ) ;
3434 protected readonly activeLang = toSignal ( this . translocoService . langChanges$ , {
Original file line number Diff line number Diff line change 1111 @if (event()!.image) {
1212 < div
1313 class ="mb-8 h-64 rounded-(--radius) bg-cover bg-center "
14- [style.background-image] ="'url(' + event()!.image + ')' "
14+ [style.background-image] ="'url(' + baseUrl + event()!.image + ')' "
1515 role ="img "
1616 [attr.aria-label] ="event()!.title "
1717 > </ div >
@@ -64,7 +64,7 @@ <h2 class="mb-4 text-xl font-semibold">{{ 'events.gallery' | transloco }}</h2>
6464 < li >
6565 < div
6666 class ="h-40 rounded-(--radius) bg-cover bg-center "
67- [style.background-image] ="'url(' + image + ')' "
67+ [style.background-image] ="'url(' + baseUrl + image + ')' "
6868 role ="img "
6969 [attr.aria-label] ="event()!.title "
7070 > </ div >
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export class EventDetailComponent {
3636 private readonly http = inject ( HttpClient ) ;
3737 private readonly route = inject ( ActivatedRoute ) ;
3838 private readonly translocoService = inject ( TranslocoService ) ;
39- private readonly baseUrl = inject ( BASE_URL ) ;
39+ protected readonly baseUrl = inject ( BASE_URL ) ;
4040
4141 protected readonly event = signal < MeetupEvent | null > ( null ) ;
4242 protected readonly activeLang = toSignal ( this . translocoService . langChanges$ , {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ <h1 class="mb-8 text-center text-3xl font-bold">{{ 'events.title' | transloco }}
1212 @if (event.image) {
1313 < div
1414 class ="h-48 bg-cover bg-center "
15- [style.background-image] ="'url(' + event.image + ')' "
15+ [style.background-image] ="'url(' + baseUrl + event.image + ')' "
1616 role ="img "
1717 [attr.aria-label] ="event.title "
1818 >
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ interface MeetupEvent {
2525export class EventsComponent {
2626 private readonly http = inject ( HttpClient ) ;
2727 private readonly translocoService = inject ( TranslocoService ) ;
28- private readonly baseUrl = inject ( BASE_URL ) ;
28+ protected readonly baseUrl = inject ( BASE_URL ) ;
2929 protected readonly events = signal < MeetupEvent [ ] > ( [ ] ) ;
3030 protected readonly activeLang = toSignal ( this . translocoService . langChanges$ , {
3131 initialValue : this . translocoService . getActiveLang ( ) ,
You can’t perform that action at this time.
0 commit comments