-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #982 from InjectiveLabs/dev
#PR982
- Loading branch information
Showing
6 changed files
with
81 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<script lang="ts" setup> | ||
import { getMarketRoute } from '@/app/utils/market' | ||
import { Modal } from 'types' | ||
const spotStore = useSpotStore() | ||
const TWITTER_URL = 'https://twitter.com/search?q=%24TIA&src=cashtag_click' | ||
const BLOG_POST_URL = | ||
'https://helixapp.zendesk.com/hc/en-us/articles/8258846181647-Share-30-000-TIA-in-TIA-Spot-Trading-Challenge-' | ||
const market = computed(() => { | ||
const MARKET_SLUG = 'tia-usdt' | ||
return spotStore.markets.find(({ slug }) => slug === MARKET_SLUG) | ||
}) | ||
const route = computed(() => { | ||
if (!market.value) { | ||
return { | ||
name: 'index' | ||
} | ||
} | ||
return getMarketRoute(market.value) | ||
}) | ||
</script> | ||
|
||
<template> | ||
<ModalsNewFeatureWrapper v-bind="{ to: route }" :modal="Modal.NewFeature"> | ||
<template #image> | ||
<img src="/newFeatures/tia-campaign.webp" alt="Tia Spot Campaign" /> | ||
</template> | ||
|
||
<template #title> | ||
<i18n-t tag="div" keypath="banners.newFeature.title"> | ||
<template #link> | ||
<NuxtLink | ||
:to="TWITTER_URL" | ||
target="_blank" | ||
class="text-blue-500 hover:text-blue-400" | ||
> | ||
{{ $t('banners.newFeature.tia') }} | ||
</NuxtLink> | ||
</template> | ||
</i18n-t> | ||
</template> | ||
|
||
<template #description> | ||
<i18n-t tag="div" keypath="banners.newFeature.description1"> | ||
<template #link> | ||
<NuxtLink | ||
:to="BLOG_POST_URL" | ||
target="_blank" | ||
class="text-blue-500 hover:text-blue-400" | ||
> | ||
{{ $t('banners.newFeature.here') }} | ||
</NuxtLink> | ||
</template> | ||
</i18n-t> | ||
</template> | ||
|
||
<template #cta> | ||
<span>{{ $t('banners.newFeature.cta') }}</span> | ||
</template> | ||
</ModalsNewFeatureWrapper> | ||
</template> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters