Skip to content

Commit

Permalink
Update GitHubStat.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostrider-05 committed Oct 18, 2024
1 parent 467e503 commit 6db8b76
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/.vitepress/components/GitHubStat.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script setup lang="ts">
import { onMounted, ref } from 'vue';
import { VPLink } from 'vitepress/theme'
const stat = ref(0)
Expand All @@ -21,7 +22,7 @@ onMounted(async () => {

<template>
<p>
<a :href="'https://github.com/' + repo"><span :class="iconClass"></span> {{ stat }} {{ label }}</a>
<VPLink :href="'https://github.com/' + repo"><span :class="iconClass"></span> {{ stat }} {{ label }}</VPLink>
</p>
</template>

Expand All @@ -42,10 +43,10 @@ a:hover {
a {
line-height: 20px;
border-radius: 6px;
padding: 4px 14px;
background-color: var(--vp-c-yellow-2);
color: var(--vp-c-white) !important;
border-radius: 3px;
padding: 0px 4px;
background-color: var(--vp-c-bg-soft);
color: var(--vp-c-brand-1) !important;
display: flex;
align-items: center;
justify-content: center;
Expand Down

0 comments on commit 6db8b76

Please sign in to comment.