mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add Codeable data
This commit is contained in:
parent
cf848c443f
commit
9062ee8d61
1 changed files with 35 additions and 8 deletions
|
|
@ -1,24 +1,29 @@
|
||||||
<template>
|
<template>
|
||||||
<div v-if="name !== 'default'">
|
<div
|
||||||
<a href="https://amzn.to/3bllXrC">
|
v-if="name !== 'default'"
|
||||||
|
class="w-full"
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
:href="ad.url"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
class="relative border border-gray-700 rounded-lg shadow-lg flex overflow-hidden"
|
class="relative w-full border border-gray-700 rounded-lg shadow-lg flex overflow-hidden"
|
||||||
>
|
>
|
||||||
<div class="flex flex-col text-center">
|
<div class="flex flex-col text-center">
|
||||||
<img
|
<img
|
||||||
src="https://vumbnail.com/OKnUBs-Ko44.jpg"
|
:src="ad.imageSrc"
|
||||||
|
:alt="ad.imageAlt"
|
||||||
class="w-32 aspect-video object-cover"
|
class="w-32 aspect-video object-cover"
|
||||||
alt="Skull figure with menacing red eyes"
|
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col justify-center text-center opacity-50 p-4">
|
<div class="flex flex-col justify-center text-center opacity-50 p-4">
|
||||||
New World: Carve Your Destiny
|
{{ ad.copy }}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="absolute bottom-0 right-0 border-t border-l rounded-tl uppercase opacity-25 px-1"
|
class="absolute bottom-0 right-0 border-t border-l rounded-tl uppercase opacity-25 px-1"
|
||||||
style="font-size: 0.45rem;"
|
style="font-size: 0.45rem;"
|
||||||
>
|
>
|
||||||
Ads via Amazon
|
{{ ad.corner }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
@ -33,6 +38,23 @@
|
||||||
/* Carbon ads */
|
/* Carbon ads */
|
||||||
import CarbonInline from './carbon-inline.vue'
|
import CarbonInline from './carbon-inline.vue'
|
||||||
|
|
||||||
|
const ads = {
|
||||||
|
'new-world-1': {
|
||||||
|
url: 'https://amzn.to/3bllXrC',
|
||||||
|
imageSrc: 'https://vumbnail.com/OKnUBs-Ko44.jpg',
|
||||||
|
imageAlt: 'Skull figure with menacing red eyes',
|
||||||
|
copy: 'New World: Carve Your Destiny',
|
||||||
|
corner: 'Ads via Amazon'
|
||||||
|
},
|
||||||
|
'codeable-1': {
|
||||||
|
url: 'https://codeable.io/?ref=ZlTAB',
|
||||||
|
imageSrc: 'https://vumbnail.com/712179177.jpg',
|
||||||
|
imageAlt: 'Codeable logo',
|
||||||
|
copy: 'Keep Productivity High & Clients Happy',
|
||||||
|
corner: 'Ad'
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
CarbonInline
|
CarbonInline
|
||||||
|
|
@ -42,6 +64,11 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'default'
|
default: 'default'
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
computed: {
|
||||||
|
ad () {
|
||||||
|
return ads[ this.name ]
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue