Use Humble Bundle links for games

This commit is contained in:
Sam Carlton 2020-12-03 13:31:19 -06:00
parent 821d61d0e5
commit ec352ad14c

View file

@ -10,21 +10,11 @@
<ThomasCredit /> <ThomasCredit />
<div class="links space-y-6 sm:space-x-6 mb-8">
<LinkButton
v-for="(link, i) in app.relatedLinks"
:key="i"
:href="link.href"
target="_blank"
class=""
>{{ (i === 0) ? 'View' : link.label }}</LinkButton>
</div>
<h2 class="subtitle text-xl md:text-2xl font-bold py-6"> <h2 class="subtitle text-xl md:text-2xl font-bold py-6">
Reports Reports
</h2> </h2>
<ul class="flex flex-col md:flex-row space-x-0 space-y-4 md:space-y-0 md:space-x-4"> <ul class="flex flex-col md:flex-row space-x-0 space-y-4 md:space-y-0 md:space-x-4 mb-4">
<li <li
v-for="(report, i) in app.reports" v-for="(report, i) in app.reports"
@ -52,6 +42,7 @@
</p> </p>
</div> </div>
</div> </div>
<div <div
v-if="report['Source'].length !== 0" v-if="report['Source'].length !== 0"
class="border-t border-gray-200" class="border-t border-gray-200"
@ -81,6 +72,25 @@
</ul> </ul>
<h2 class="subtitle text-xl md:text-2xl font-bold py-6">
Affiliate Links
</h2>
<div class="links space-y-6 sm:space-x-6 mb-8">
<div
v-for="(link, i) in affiliateLinks"
:key="i"
class="affiliate-link space-y-2"
>
<LinkButton
:href="link.href"
target="_blank"
>
<div>{{ link.label }}</div>
</LinkButton>
<small class="block test-xs">{{ link.subLabel }}</small>
</div>
</div>
<div class="report-links py-24 shadow-none"> <div class="report-links py-24 shadow-none">
<!-- https://eric.blog/2016/01/08/prefilling-github-issues/ --> <!-- https://eric.blog/2016/01/08/prefilling-github-issues/ -->
<a <a
@ -114,6 +124,22 @@ export default {
app: gameList.find(app => (app.slug === slug)) app: gameList.find(app => (app.slug === slug))
} }
}, },
computed: {
affiliateLinks () {
return [
{
label: 'View on Humble Bundle',
subLabel: 'Supports Charity',
href: `https://www.humblebundle.com/store/search?sort=bestselling&partner=doesitarm&charity=1693256&platform=mac&search=${this.app.name}`
},
// {
// label: 'View on Humble Bundle',
// subLabel: 'Supports Charity',
// href: `https://www.humblebundle.com/store/search?sort=bestselling&partner=doesitarm&charity=1693256&platform=mac&search=${this.app.name}`
// }
]
}
},
head() { head() {
return { return {
title: `Does ${this.app.name} work on Apple Silicon?`, title: `Does ${this.app.name} work on Apple Silicon?`,