feat: GitHub buttons

This commit is contained in:
Liyas Thomas
2021-01-16 18:40:18 +05:30
parent ed20b009a5
commit c8185050f6
9 changed files with 28 additions and 107 deletions

View File

@@ -81,7 +81,7 @@
<style scoped lang="scss">
.virtual-list {
max-height: calc(100vh - 232px);
max-height: calc(100vh - 270px);
}
</style>

View File

@@ -60,7 +60,7 @@
<style scoped lang="scss">
.virtual-list {
max-height: calc(100vh - 232px);
max-height: calc(100vh - 270px);
}
</style>

View File

@@ -30,7 +30,7 @@
<style scoped lang="scss">
.virtual-list {
max-height: calc(100vh - 296px);
max-height: calc(100vh - 270px);
}
.clamb-3 {

View File

@@ -217,7 +217,7 @@
<style scoped lang="scss">
.virtual-list {
max-height: calc(100vh - 290px);
max-height: calc(100vh - 270px);
[readonly] {
cursor: default;

View File

@@ -1,20 +1,7 @@
<template>
<footer class="flex-col flex-no-wrap">
<footer class="footer">
<div class="row-wrapper">
<span
v-if="version.name"
class="flex flex-col flex-wrap justify-start font-mono md:flex-row"
style="align-items: start"
>
<a
class="footer-link"
:href="'https://github.com/hoppscotch/hoppscotch/releases/tag/' + version.name"
target="_blank"
rel="noopener"
v-tooltip="'GitHub'"
>
{{ version.name }}
</a>
<span class="flex flex-col font-mono md:flex-row" style="align-items: start">
<a class="footer-link" href="https://www.netlify.com" target="_blank" rel="noopener">
Powered by Netlify
</a>
@@ -38,23 +25,18 @@
Paw
</a>
</span>
<!-- <span v-if="version.hash">
-
<a
:href="'https://github.com/hoppscotch/hoppscotch/commit/' + version.hash"
target="_blank"
rel="noopener"
>{{version.hash}}</a>
</span> -->
<!-- <span v-if="version.variant">({{version.variant}})</span> -->
<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>
</span>
<span
class="flex flex-col flex-wrap justify-start font-mono md:flex-row"
style="align-items: start"
>
<a href="https://liyasthomas.web.app" target="_blank" rel="noopener">
<button class="icon" v-tooltip="'Liyas Thomas'">🦄</button>
</a>
<span class="flex flex-col font-mono md:flex-row" style="align-items: start">
<a href="mailto:liyascthomas@gmail.com" target="_blank" rel="noopener">
<button class="icon" v-tooltip="$t('contact_us')">
<i class="material-icons">email</i>
@@ -94,20 +76,7 @@
</style>
<script>
import * as version from "../../.hoppscotch/version.json"
export default {
data() {
return {
version: {},
}
},
beforeMount() {
// Set version data
this.version = version.default
},
computed: {
availableLocales() {
return this.$i18n.locales.filter(({ code }) => code !== this.$i18n.locale)

View File

@@ -6,6 +6,16 @@
<h1 class="hide-on-small-screen logo">Hoppscotch</h1>
<h1 class="show-on-small-screen logo">Hs</h1>
</nuxt-link>
<iframe
src="https://ghbtns.com/github-btn.html?user=hoppscotch&repo=hoppscotch&type=star&count=true"
frameborder="0"
scrolling="0"
width="150"
height="20"
title="GitHub"
class="ml-8"
loading="lazy"
></iframe>
</span>
<span>
<a

View File

@@ -36,6 +36,7 @@
@apply flex;
@apply whitespace-no-wrap;
@apply overflow-auto;
@apply mt-4;
ul {
@apply flex;