Skip to content
Snippets Groups Projects
Commit 6409c62e authored by Victor Ekholt Gunrell Kaste's avatar Victor Ekholt Gunrell Kaste
Browse files

feat: added ads on savingGoal

parent ffc68853
No related branches found
No related tags found
1 merge request!88Feat/redesign roadmap2
......@@ -5,6 +5,7 @@ import SavingGoalCreate from "@/components/SavingGoal/SavingGoalCreate.vue";
import SavingGoalDefault from "@/components/SavingGoal/SavingGoalDefault.vue";
import type {GoalDTO} from "@/api";
import {GoalService} from "@/api";
import {useUserInfoStore} from "@/stores/UserStore";
export default {
components: {SavingGoalDefault, SavingGoalCreate, SavingGoalRoadmap, SavingGoalList},
......@@ -23,6 +24,7 @@ export default {
this.calculateBluePanelMaxHeight();
},
methods: {
useUserInfoStore,
calculateBluePanelMaxHeight() {
// Query the timeline element
const timelineElement = document.querySelector('.timeline');
......@@ -73,7 +75,12 @@ export default {
</div>
<saving-goal-list :key="keyForList" @goToSavingGoal="goToSavingGoal"></saving-goal-list>
</div>
<div class="spacer"/>
<div class="spacer">
<div v-if="!useUserInfoStore().isPremium && !useUserInfoStore().isNoAds" v-for="(challenge, index) in 5" :key="index">
<img v-if="index % 2 === 0" src="https://www.codefuel.com/wp-content/uploads/2022/10/image1-1.png">
<img v-else src="https://www.vaultnetworks.com/wp-content/uploads/2012/11/PROMO-BLOG-AD-YELLOW-VERTICAL.png">
</div>
</div>
<saving-goal-create @createGoalClicked="handleCreateGoalClicked" v-if="createClicked"></saving-goal-create>
<saving-goal-roadmap :key="key" :selected-goal="selectedGoal" v-else-if="savingGoalClicked"></saving-goal-roadmap>
<saving-goal-default v-else></saving-goal-default>
......@@ -99,8 +106,14 @@ export default {
}
.spacer {
padding-top: 16px;
width: 10%;
background-color: transparent;
margin-bottom: 12px;
}
.spacer img {
width: 100%;
}
h2 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment