mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
52 lines
1.8 KiB
Vue
52 lines
1.8 KiB
Vue
<template lang="pug">
|
|
div
|
|
static-header
|
|
.container-fluid
|
|
.row
|
|
.col-md-6.offset-3
|
|
h1 {{ $t('merch') }}
|
|
// @TODO: how do we use static images here?
|
|
.col-lg-6.col-md-6.col-sm-12(v-for="(merchant, index) in merchants")
|
|
.merch-block
|
|
img(v-if='merchant.logo' :src="`~assets/images/merch/${merchant.key}-logo.png`")
|
|
h2(v-else) {{ merchant.name }}
|
|
div
|
|
a(:href="merchant.link" target='_blank')
|
|
img.img-rendering-auto(:src="`~assets/images/merch/${merchant.key}.png`")
|
|
p {{ $t('merch-' + merchant.key + '-summary') }}
|
|
a.btn.btn-primary(:href="merchant.link" target='_blank') {{$t('merch-' + merchant.key + '-goto')}}
|
|
app-footer
|
|
</template>
|
|
|
|
<style lang='scss' scoped>
|
|
@import '~client/assets/scss/static.scss';
|
|
|
|
.container-fluid {
|
|
margin-top: 56px;
|
|
margin-bottom: 56px;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
import AppFooter from 'client/components/appFooter';
|
|
import StaticHeader from './header.vue';
|
|
|
|
export default {
|
|
components: {
|
|
AppFooter,
|
|
StaticHeader,
|
|
},
|
|
data () {
|
|
return {
|
|
merchants: [
|
|
{key: 'teespring', logo: true, name: 'Teespring', link: 'https://teespring.com/habitica-gryphon-t-shirt'},
|
|
{key: 'teespring-eu', logo: true, name: 'Teespring (EU)', link: 'https://teespring.com/habitica-gryphon-t-shirt_eu'},
|
|
{key: 'teespring-mug', logo: true, name: 'Teespring', link: 'https://teespring.com/shop/habitica-gryphon-mug'},
|
|
{key: 'teespring-mug-eu', logo: true, name: 'Teespring (EU)', link: 'https://teespring.com/shop/habitica-hydration-mug-eu'},
|
|
{key: 'stickermule', logo: true, name: 'Stickermule', link: 'https://www.stickermule.com/uk/marketplace/9317-habitica-gryphon-sticker'},
|
|
],
|
|
};
|
|
},
|
|
};
|
|
</script>
|