mirror of
https://github.com/block-core/blockcore-notes.git
synced 2024-09-28 22:10:42 +00:00
Compare commits
3 Commits
bbf0e47f80
...
067b0038ef
Author | SHA1 | Date | |
---|---|---|---|
|
067b0038ef | ||
|
4373fe0346 | ||
|
44416a7491 |
@ -2,8 +2,9 @@
|
||||
<!-- <div [style.background-image]="utilities.getBannerBackgroundStyle(profile.banner)" class="profile-banner"></div> -->
|
||||
|
||||
<div class="profile-banner">
|
||||
<img class="profile-banner-image" [src]="profile.banner" />
|
||||
</div>
|
||||
<img class="profile-banner-image" [src]="profile.banner || 'https://i.pinimg.com/564x/0b/a3/d6/0ba3d60362c7e6d256cfc1f37156bad9.jpg'" />
|
||||
</div>
|
||||
|
||||
|
||||
<div class="profile-page-header">
|
||||
<div class="profile-page-header-left">
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div class="profile-widget">
|
||||
<app-event-header [pubkey]="pubkey"></app-event-header>
|
||||
<app-profile-actions [pubkey]="pubkey"></app-profile-actions>
|
||||
<app-profile-actions [pubkey]="pubkey" [profile]="profile"></app-profile-actions>
|
||||
</div>
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { Component, Input } from '@angular/core';
|
||||
import { ProfileService } from 'src/app/services/profile';
|
||||
import { Utilities } from 'src/app/services/utilities';
|
||||
import { NostrProfile } from '../../services/interfaces';
|
||||
import { NostrProfile, NostrProfileDocument } from '../../services/interfaces';
|
||||
|
||||
@Component({
|
||||
selector: 'app-profile-widget',
|
||||
@ -13,8 +13,13 @@ export class ProfileWidgetComponent {
|
||||
|
||||
profileName = '';
|
||||
tooltip = '';
|
||||
profile!: NostrProfileDocument;
|
||||
|
||||
constructor(private profiles: ProfileService, private utilities: Utilities) {}
|
||||
|
||||
ngOnInit() {}
|
||||
async ngOnInit() {
|
||||
if(this.pubkey){
|
||||
this.profile = await this.profiles.getProfile(this.pubkey)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user