Skip to content

Commit

Permalink
wip (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
hichri-louay authored Sep 26, 2023
1 parent b6c41cc commit a2a312d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<head>
<meta property="og:title" content="{{ campaign.title || 'SaTT - Smart advertising Transaction Token'}}" />
<meta property="og:description" content="{{ campaign.summary || 'SaTT is an advertising token that leverages blockchain to facilitate seamless transactions between clients and creators.' }}" />
<meta property="og:image" content="{{ getCampaignCover() || 'https://satt-token.com/assets/img/share_img_200px.png'}}" />
</head>
<div *ngIf="!isLoading">
<span id="span-top" class="span-top"></span>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ export class CampaignDetailComponent implements OnInit {
this.CampaignService.stat.next(true);
}


getCampaignCover() {
return this.campaign.coverSrcMobile.includes('ipfs') ? ipfsURL + this.campaign.coverSrcMobile.substring(27, this.campaign.coverSrcMobile.length) : undefined;
}

getRefunds(id:string) {
this.passwordForm = this._formBuilder.group({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ export class CampaignDetailsContainerComponent implements OnInit {
setTimeout(() => {
this.showmoonboy = campaign.id === this.campaignId;
}, 1000);
this.ogImageUrl = campaign.coverSrcMobile.includes('ipfs') ? ipfsURL + campaign.coverSrcMobile.substring(27, campaign.coverSrcMobile.length) : campaign.coverSrcMobile;
/*this.ogImageUrl = campaign.coverSrcMobile.includes('ipfs') ? ipfsURL + campaign.coverSrcMobile.substring(27, campaign.coverSrcMobile.length) : campaign.coverSrcMobile;
this.meta.updateTag({ property: 'og:title', content: campaign.title });
this.meta.updateTag({ property: 'og:description', content: campaign.description });
this.meta.updateTag({ property: 'og:image', content: this.ogImageUrl });
this.meta.updateTag({ property: 'og:image', content: this.ogImageUrl });*/

/*this.meta.updateTag(
{
Expand Down
5 changes: 4 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,15 @@
name="viewport"
content="width=device-width,initial-scale=1,maximum-scale=6,user-scalable=0"
/>
<meta
<!--
<meta
name="description"
content="SaTT is an advertising token that leverages blockchain to facilitate seamless transactions between clients and creators."
/>
<meta property="og:image" content="https://satt-token.com/assets/img/share_img_200px.png" />
<meta property="og:title" content="SaTT - Smart advertising Transaction Token" />
-->

<meta name="keyword" content="crypto, blockchain, social media, farming, earning crypto, profitable, marketing, influencers, brand, SaTT, token, Trust, wallet">

</meta>
Expand Down

0 comments on commit a2a312d

Please sign in to comment.