Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

added options to promotion #81

Merged
merged 3 commits into from
Jul 28, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions lib/components/base/Promotion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<a
href="https://exaroton.com/?utm_source=modrinth&utm_medium=text&utm_campaign=host&utm_content=top"
rel="noopener nofollow sponsored"
target="_blank"
:target="target"
>
<ExarotonIcon class="MYYLVTXBPUVWMLVBPVSDLHADDRYFBF-3" />
<span>
Expand All @@ -18,13 +18,23 @@
</div>
</div>
<div class="MYYLVTXBPUVWMLVBPVSDLHADDRYFBF-4">
<a rel="noopener sponsored" target="_blank" href="https://adrinth.com"> Ads via Adrinth </a>
<a rel="noopener sponsored" :target="target" href="https://adrinth.com">
Ads via Adrinth
</a>
</div>
</div>
</div>
</template>
<script setup>
import { computed } from 'vue'
import ExarotonIcon from '@/assets/external/exaroton.svg'
const props = defineProps({
external: {
type: Boolean,
default: true,
},
})
const target = computed(() => (props.external ? '_blank' : '_self'))
</script>

<style lang="scss">
Expand Down