add star count
This commit is contained in:
@@ -1,9 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="navigation">
|
<div class="navigation">
|
||||||
|
|
||||||
<h1 class="navigation__logo">
|
<div>
|
||||||
tiptap
|
<h1 class="navigation__logo">
|
||||||
</h1>
|
tiptap
|
||||||
|
</h1>
|
||||||
|
<github-button
|
||||||
|
class="navigation__count"
|
||||||
|
href="https://github.com/scrumpy/tiptap"
|
||||||
|
data-show-count="true"
|
||||||
|
aria-label="Star scrumpy/tiptap on GitHub"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<a class="navigation__link" href="https://tiptap.scrumpy.io/docs" target="_blank">
|
<a class="navigation__link" href="https://tiptap.scrumpy.io/docs" target="_blank">
|
||||||
@@ -22,10 +30,12 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Icon from 'Components/Icon'
|
import Icon from 'Components/Icon'
|
||||||
|
import GithubButton from 'vue-github-button'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Icon,
|
Icon,
|
||||||
|
GithubButton,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -8,11 +8,15 @@
|
|||||||
padding: 0.75rem;
|
padding: 0.75rem;
|
||||||
background-color: $color-black;
|
background-color: $color-black;
|
||||||
color: $color-white;
|
color: $color-white;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
&__logo {
|
&__logo {
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
margin-right: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__icon {
|
&__icon {
|
||||||
@@ -20,6 +24,12 @@
|
|||||||
height: 1.5rem;
|
height: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__count {
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
margin-top: 0.3rem;
|
||||||
|
}
|
||||||
|
|
||||||
&__link {
|
&__link {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: rgba($color-white, 0.5);
|
color: rgba($color-white, 0.5);
|
||||||
|
|||||||
@@ -90,6 +90,7 @@
|
|||||||
"zlib": "^1.0.5"
|
"zlib": "^1.0.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"socket.io-client": "^2.2.0"
|
"socket.io-client": "^2.2.0",
|
||||||
|
"vue-github-button": "^1.0.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
12
yarn.lock
12
yarn.lock
@@ -5855,6 +5855,11 @@ gitconfiglocal@^1.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
ini "^1.3.2"
|
ini "^1.3.2"
|
||||||
|
|
||||||
|
github-buttons@^2.2.9:
|
||||||
|
version "2.2.10"
|
||||||
|
resolved "https://registry.yarnpkg.com/github-buttons/-/github-buttons-2.2.10.tgz#7ddf66679b4c23e4c4558fedbba6d8aa48241cd6"
|
||||||
|
integrity sha512-hkcYkzru6yq33FZleeiryFxR62uDdqHJMQeNiUeh03uHpCSGGdpq3V9RKH7+Xa0pjyce+ftNTx4C3CgO/Auw2A==
|
||||||
|
|
||||||
glob-parent@^3.1.0:
|
glob-parent@^3.1.0:
|
||||||
version "3.1.0"
|
version "3.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae"
|
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae"
|
||||||
@@ -12674,6 +12679,13 @@ vue-eslint-parser@^5.0.0:
|
|||||||
esquery "^1.0.1"
|
esquery "^1.0.1"
|
||||||
lodash "^4.17.11"
|
lodash "^4.17.11"
|
||||||
|
|
||||||
|
vue-github-button@^1.0.8:
|
||||||
|
version "1.0.8"
|
||||||
|
resolved "https://registry.yarnpkg.com/vue-github-button/-/vue-github-button-1.0.8.tgz#c8e1efa579f9cab05baba03ba7e44101a33b1baa"
|
||||||
|
integrity sha512-d/5E88YmdRz6lWeYdf4G+siFpDQa8wtl1sjUby8lktJDdPWxNRshIWNn5Udt/8TbgElcZCCGaIOJ6819YZkkhQ==
|
||||||
|
dependencies:
|
||||||
|
github-buttons "^2.2.9"
|
||||||
|
|
||||||
vue-hot-reload-api@^2.3.0:
|
vue-hot-reload-api@^2.3.0:
|
||||||
version "2.3.3"
|
version "2.3.3"
|
||||||
resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.3.tgz#2756f46cb3258054c5f4723de8ae7e87302a1ccf"
|
resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.3.tgz#2756f46cb3258054c5f4723de8ae7e87302a1ccf"
|
||||||
|
|||||||
Reference in New Issue
Block a user