lookin goooooood mayne
This commit is contained in:
parent
7c0e1bd008
commit
41787b6f93
6 changed files with 7 additions and 7 deletions
|
@ -53,6 +53,6 @@ for pitch to group, have a side by side example of blog written in markdown, mic
|
||||||
|
|
||||||
## How to try it out
|
## How to try it out
|
||||||
|
|
||||||
Visit https://miguelalmodo.com/dist2 to try installing to your
|
Visit https://miguelalmodo.com/dist to try installing to your
|
||||||
smartphone home screen.
|
smartphone home screen.
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 9.8 KiB |
Binary file not shown.
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 53 KiB |
|
@ -64,7 +64,7 @@
|
||||||
],
|
],
|
||||||
"widgets": [
|
"widgets": [
|
||||||
{
|
{
|
||||||
"name": "Starter Widget",
|
"name": "A miggymofongo project",
|
||||||
"tag": "starterWidget",
|
"tag": "starterWidget",
|
||||||
"ms_ac_template": "widget/ac.json",
|
"ms_ac_template": "widget/ac.json",
|
||||||
"data": "widget/data.json",
|
"data": "widget/data.json",
|
||||||
|
|
|
@ -89,7 +89,7 @@ export class AppHeader extends LitElement {
|
||||||
// this method displays a guest view when the user is signed out
|
// this method displays a guest view when the user is signed out
|
||||||
this.nostrAddy = '';
|
this.nostrAddy = '';
|
||||||
this.bio = 'Welcome, guest! Please sign in with a browser extension to view your profile.';
|
this.bio = 'Welcome, guest! Please sign in with a browser extension to view your profile.';
|
||||||
this.profilePic = '/public/assets/img/default_pfp.png'; // a placeholder profile picture
|
this.profilePic = '/assets/img/default_pfp.png'; // a placeholder profile picture
|
||||||
this.isSignedIn = false;
|
this.isSignedIn = false;
|
||||||
|
|
||||||
this.dispatchUserStateChanged();
|
this.dispatchUserStateChanged();
|
||||||
|
@ -103,7 +103,7 @@ export class AppHeader extends LitElement {
|
||||||
{
|
{
|
||||||
onevent: (event) => {
|
onevent: (event) => {
|
||||||
const profileData = JSON.parse(event.content);
|
const profileData = JSON.parse(event.content);
|
||||||
this.profilePic = profileData.picture || '/assets/img/default_pfp.png';
|
this.profilePic = profileData.picture;
|
||||||
this.nostrAddy = profileData.nip05 || 'no addy available';
|
this.nostrAddy = profileData.nip05 || 'no addy available';
|
||||||
this.bio = profileData.about || 'bio not available';
|
this.bio = profileData.about || 'bio not available';
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ export class AppHome extends LitElement {
|
||||||
@property() message = 'Welcome to my demo!';
|
@property() message = 'Welcome to my demo!';
|
||||||
@property({ type: String }) nostrAddy = '';
|
@property({ type: String }) nostrAddy = '';
|
||||||
@property({ type: String }) bio = '';
|
@property({ type: String }) bio = '';
|
||||||
@property({ type: String }) profilePic = '';
|
@property({ type: String }) profilePic = '/assets/img/default_pfp.png';
|
||||||
@property({ type: Boolean }) isSignedIn = false;
|
@property({ type: Boolean }) isSignedIn = false;
|
||||||
@property({ type: String }) publicKey = '';
|
@property({ type: String }) publicKey = '';
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ Profile Picture Container
|
||||||
align-itens: center;
|
align-itens: center;
|
||||||
grid-template-columns: 350px 150px;
|
grid-template-columns: 350px 150px;
|
||||||
grid-template-rows: 250px;
|
grid-template-rows: 250px;
|
||||||
grid-column-gap: 15px;
|
grid-column-gap: 10px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -183,7 +183,7 @@ Profile Picture Container
|
||||||
|
|
||||||
|
|
||||||
<div class="profile-picture-container">
|
<div class="profile-picture-container">
|
||||||
<img class="profile-pic" src="${this.profilePic || '/dist/assets/img/default_pfp.png'}" alt="Profile Picture" width="200px" height="200px">
|
<img class="profile-pic" src="${this.profilePic}" alt="Profile Picture" width="200px" height="200px">
|
||||||
|
|
||||||
<p class="personal-msg"><b>${this.bio || 'Welcome, guest! Please sign in to view your profile.'}</b></p>
|
<p class="personal-msg"><b>${this.bio || 'Welcome, guest! Please sign in to view your profile.'}</b></p>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue