Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kachourihassen committed Sep 29, 2023
1 parent f543765 commit 18c8635
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export class CampaignDetailsContainerComponent implements OnInit {
campaign: any;
campaignId: any;
private isDestroyed = new Subject();


constructor(

private campaignsStoreService: CampaignsStoreService,
private route: ActivatedRoute,
private meta: Meta,
Expand Down Expand Up @@ -143,10 +143,15 @@ export class CampaignDetailsContainerComponent implements OnInit {

this.campaign$.pipe(takeUntil(this.isDestroyed)).subscribe((campaign) => {
this.campaign = campaign;

setTimeout(() => {
this.showmoonboy = campaign.id === this.campaignId;
}, 1000);
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.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 });
Expand Down
11 changes: 2 additions & 9 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<meta name="apple-mobile-web-app-status-bar-style" content="#1f2337" />
<meta name="twitter:card" content="summary">

<!-- <title>SaTT - Smart advertising Transaction Token</title> -->
<title>SaTT - Smart advertising Transaction Token</title>

<base href="/" />
<meta
Expand All @@ -42,14 +42,7 @@
<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 property="og:title" content="{{ 'campaign?.title' }}" />
<meta property="og:description" content="{{ 'campaign?.summary' }}" />
<meta property="og:image" content="{{ 'ogImageUrl' }}" />
<!-- <meta property="og:title" [attr.content]="campaign?.title" />
<meta property="og:description" [attr.content]="limitDescription(campaign?.summary)" />
<meta property="og:image" [attr.content]="ogImageUrl" /> -->
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />


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

Expand Down

0 comments on commit 18c8635

Please sign in to comment.