Skip to content

Commit

Permalink
Add paras campaign (#815)
Browse files Browse the repository at this point in the history
* add paras campaign

* update title

* update details
  • Loading branch information
sirius651 authored May 30, 2023
1 parent 700c617 commit 2cf5403
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 10 deletions.
10 changes: 10 additions & 0 deletions src/assets/img/paras_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 13 additions & 6 deletions src/components/dapp-staking/my-staking/DynamicAdsArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@
<div class="card-info">
<div class="txt--category">{{ t.category }}</div>
<div class="txt--title">
{{ t.title }}
</div>
<!-- MEMO: will be rollback later
<div class="txt--title">
{{
index === 0 ? $n(truncate(rewardsDeveloper, 0)) + ' ' + nativeTokenSymbol : t.title
}}
</div>
</div> -->
<div class="txt--subtitle">{{ t.subtitle }}</div>
</div>
</div>
Expand Down Expand Up @@ -84,12 +88,15 @@ export default defineComponent({
};
const sourceImg = (img: string, index: number) => {
// MEMO: will be rollback later
// if (index === 0) {
// if (isShiden.value) {
// return require('/src/assets/img/ic_sdn_farm.svg');
// } else {
// return require('/src/assets/img/ic_astar_farm.svg');
// }
if (index === 0) {
if (isShiden.value) {
return require('/src/assets/img/ic_sdn_farm.svg');
} else {
return require('/src/assets/img/ic_astar_farm.svg');
}
return require('/src/assets/img/paras_logo.svg');
} else if (index === 1) {
return require('/src/assets/img/ic_algem_staking.svg');
} else if (index === 2) {
Expand Down
9 changes: 5 additions & 4 deletions src/data/featured_dapp.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[
{
"img": "",
"category": "Developer Incentive",
"title": "",
"subtitle": "Join the community and know how it works",
"link": "https://docs.astar.network/docs/dapp-staking/"
"category": "Exclusive Free Mint NFT",
"title": "Paras",
"subtitle": "Join Paras dApp staking to mint your USAGII NFT!",
"link": "https://bit.ly/USAGII-NFT",
"gradient": ["#1706A2", "#070438"]
},
{
"img": "",
Expand Down

0 comments on commit 2cf5403

Please sign in to comment.