api-client/components/app/Footer.vue

89 lines
2.4 KiB
Vue
Raw Normal View History

2020-03-04 01:17:02 +00:00
<template>
2021-01-16 13:10:18 +00:00
<footer class="footer">
2020-09-22 17:06:37 +00:00
<div class="row-wrapper">
2021-01-16 13:10:18 +00:00
<span class="flex flex-col font-mono md:flex-row" style="align-items: start">
2020-11-12 02:01:15 +00:00
<a class="footer-link" href="https://www.netlify.com" target="_blank" rel="noopener">
Powered by Netlify
</a>
2020-11-30 13:21:46 +00:00
<span class="footer-link"> Sponsored by </span>
<span>
<a
class="footer-link"
href="https://oss.capital/?ref=hoppscotch"
target="_blank"
rel="noopener"
>
OSS Capital
</a>
</span>
<span class="footer-link"> & </span>
2020-11-30 13:21:46 +00:00
<span>
<a
class="footer-link"
href="https://paw.cloud/?utm_source=hoppscotch&utm_medium=website&utm_campaign=hoppscotch-sponsorship"
target="_blank"
rel="noopener"
>
Paw
</a>
</span>
2021-01-16 13:10:18 +00:00
<iframe
src="https://ghbtns.com/github-btn.html?user=hoppscotch&type=sponsor"
frameborder="0"
scrolling="0"
width="150"
height="20"
title="GitHub"
class="footer-link"
loading="lazy"
></iframe>
2020-03-04 01:17:02 +00:00
</span>
2021-01-16 13:10:18 +00:00
<span class="flex flex-col font-mono md:flex-row" style="align-items: start">
2021-04-23 11:38:17 +00:00
<a href="mailto:support@hoppscotch.io" target="_blank" rel="noopener">
2020-03-04 01:17:02 +00:00
<button class="icon" v-tooltip="$t('contact_us')">
<i class="material-icons">email</i>
</button>
</a>
<v-popover>
<button class="icon" v-tooltip="$t('choose_language')">
<i class="material-icons">translate</i>
</button>
<template slot="popover">
<div v-for="locale in availableLocales" :key="locale.code">
<nuxt-link :to="switchLocalePath(locale.code)">
<button class="icon" v-close-popover>
{{ locale.name }}
</button>
</nuxt-link>
</div>
</template>
</v-popover>
</span>
</div>
</footer>
</template>
<style scoped lang="scss">
.footer-link {
2020-11-12 02:01:15 +00:00
@apply inline-flex;
@apply flex-shrink-0;
2020-09-22 17:06:37 +00:00
@apply my-2;
@apply mx-4;
@apply text-fgLightColor;
2020-03-13 04:14:43 +00:00
&:hover {
2020-09-22 17:06:37 +00:00
@apply text-fgColor;
2020-03-13 04:14:43 +00:00
}
2020-03-04 01:17:02 +00:00
}
</style>
<script>
export default {
computed: {
availableLocales() {
2020-06-11 14:25:40 +00:00
return this.$i18n.locales.filter(({ code }) => code !== this.$i18n.locale)
2020-03-04 01:17:02 +00:00
},
},
}
</script>