Revert back to no page context

This commit is contained in:
Sam Carlton 2022-07-27 13:13:57 -05:00
parent 9e817f0f6c
commit d06d26223d

View file

@ -1,6 +1,6 @@
<template> <template>
<div <div
v-if="adName !== 'default'" v-if="name !== 'default'"
class="w-full" class="w-full"
> >
<a <a
@ -11,7 +11,7 @@
> >
<div class="flex flex-col text-center"> <div class="flex flex-col text-center">
<img <img
:src="imageSrc" :src="ad.imageSrc"
:alt="ad.imageAlt" :alt="ad.imageAlt"
class="w-32 h-full aspect-video object-cover" class="w-32 h-full aspect-video object-cover"
> >
@ -91,35 +91,11 @@ export default {
type: String, type: String,
default: 'default' default: 'default'
}, },
page: {
type: Object,
default: () => ({})
}
}, },
computed: { computed: {
adName () {
console.log( 'kindName', this.page?.kindName )
if ( this.name === 'placeholder' ) {
return 'placeholder'
}
if ( this.page?.kindName === 'developer-tools' ) return 'jotform-for-developers-1'
// Video and Motion Tools
if ( this.page?.kindName === 'video-and-motion-tools' ) return 'wondershare-arm-1'
return this.name
},
ad () { ad () {
return ads[ this.adName ] return ads[ this.name ]
},
imageSrc () {
return this.ad.imageSrc
} }
}, },
mounted () {
console.log( 'mounted', this.adName )
}
} }
</script> </script>