Skip to content

Commit

Permalink
Integrate Moneytizer ads
Browse files Browse the repository at this point in the history
  • Loading branch information
khang-nd committed Sep 3, 2024
1 parent 4fe2614 commit 9502dea
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 4 deletions.
32 changes: 32 additions & 0 deletions src/.vuepress/components/ASponsorAd.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<template>
<div :id="'127550-' + adUnitId">
<component
:is="'script'"
:src="`//ads.themoneytizer.com/s/gen.js?type=${adUnitId}`"
/>
<component
:is="'script'"
:src="`//ads.themoneytizer.com/s/requestform.js?siteId=127550&formatId=${adUnitId}`"
/>
</div>
</template>

<script>
const AdUnitId = {
banner: 1,
square: 2,
};
export default {
props: {
format: { type: String, default: "square" },
},
computed: {
adUnitId() {
return AdUnitId[this.format];
},
},
};
</script>

<style lang="stylus" scoped></style>
2 changes: 1 addition & 1 deletion src/.vuepress/theme/layouts/BlogList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="theme-default-content content__default">
<h1>📝 Blog</h1>
<m-blog-tag-nav :tags="tags" />
<a-google-ad format="horizontal" />
<a-sponsor-ad format="banner" />
<m-blog-links :blogs="blogs" />
<a-google-ad />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/.vuepress/theme/layouts/FeatureList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<template #page-top>
<div class="theme-default-content content__default">
<h1>Win7 Simu simulated apps</h1>
<a-google-ad format="horizontal" />
<a-sponsor-ad format="banner" />
<ul class="feature-links">
<li v-for="feature in features" :key="feature.path">
<router-link :to="feature.path">
Expand Down
2 changes: 1 addition & 1 deletion src/.vuepress/theme/layouts/Visnalize.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<parent-layout>
<template v-if="!noSideAds" #sidebar-bottom>
<div class="googleads"><a-google-ad /></div>
<a-sponsor-ad />
</template>
<template v-if="!noComments" #page-bottom>
<div class="ad-wrapper">
Expand Down
2 changes: 1 addition & 1 deletion src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ image: https://image.social/get?url=visnalize.com
</article>
</Home-Section>

<a-google-ad format="horizontal" />
<a-sponsor-ad format="banner" />

<Home-Section class="center dark">
<article>
Expand Down

0 comments on commit 9502dea

Please sign in to comment.