Commit 9033179a6d
Unsigned
Layout: unified · split
docs/.vitepress/configs/index.ts +5 −1
| @@ -101,7 +101,11 @@ export const shared: UserConfig<DefaultTheme.Config> = { | ||
| 101 | 101 | provider: 'local' |
| 102 | 102 | }, |
| 103 | 103 | logo: { src: '/asset/fav.svg' }, |
| 104 | sidebar | |
| 104 | sidebar, | |
| 105 | socialLinks: [ | |
| 106 | { icon: 'github', link: 'https://github.com/wotakumoe/Wotaku' }, | |
| 107 | { icon: 'discord', link: 'https://discord.gg/vShRGx8ZBC' } | |
| 108 | ] | |
| 105 | 109 | }, |
| 106 | 110 | vite: { |
| 107 | 111 | customLogger: logger, |
docs/.vitepress/theme/components/SiteFooter.vue +4 −42
| @@ -22,56 +22,31 @@ onMounted(() => { | ||
| 22 | 22 | |
| 23 | 23 | <template> |
| 24 | 24 | <footer v-if="isHome" class="site-footer"> |
| 25 | <span class="footer-left"> | |
| 25 | <span class="footer-center"> | |
| 26 | 26 | <span v-if="buildAge">{{ buildAge }}</span> |
| 27 | 27 | <span v-if="buildAge" class="divider">|</span> |
| 28 | 28 | <a :href="`https://github.com/wotakumoe/Wotaku/commit/${commit}`" class="no-icon">{{ commit.slice(0, 7) }}</a> |
| 29 | 29 | </span> |
| 30 | <span class="footer-right"> | |
| 31 | <a href="https://github.com/wotakumoe/Wotaku" aria-label="GitHub" class="icon-link no-icon" target="_blank" rel="noopener"> | |
| 32 | <span class="i-simple-icons:github" /> | |
| 33 | </a> | |
| 34 | <a href="https://discord.gg/vShRGx8ZBC" aria-label="Discord" class="icon-link no-icon" target="_blank" rel="noopener"> | |
| 35 | <span class="i-simple-icons:discord" /> | |
| 36 | </a> | |
| 37 | </span> | |
| 38 | 30 | </footer> |
| 39 | 31 | </template> |
| 40 | 32 | |
| 41 | 33 | <style scoped> |
| 42 | 34 | .site-footer { |
| 43 | position: relative; | |
| 44 | 35 | display: flex; |
| 45 | justify-content: space-between; | |
| 36 | justify-content: center; | |
| 46 | 37 | align-items: center; |
| 47 | 38 | padding: 12px 24px; |
| 48 | 39 | font-size: 12px; |
| 49 | 40 | color: var(--vp-c-text-2); |
| 50 | background-color: var(--vp-c-bg); | |
| 51 | } | |
| 52 | ||
| 53 | .site-footer::before { | |
| 54 | content: ''; | |
| 55 | position: absolute; | |
| 56 | top: 0; | |
| 57 | left: 0; | |
| 58 | right: 0; | |
| 59 | height: 1px; | |
| 60 | background: linear-gradient(to right, transparent, var(--vp-c-divider), transparent); | |
| 41 | background-color: var(--vp-c-bg-alt); | |
| 61 | 42 | } |
| 62 | 43 | |
| 63 | .footer-left { | |
| 44 | .footer-center { | |
| 64 | 45 | display: flex; |
| 65 | 46 | align-items: center; |
| 66 | 47 | gap: 8px; |
| 67 | 48 | } |
| 68 | 49 | |
| 69 | .footer-right { | |
| 70 | display: flex; | |
| 71 | align-items: center; | |
| 72 | gap: 12px; | |
| 73 | } | |
| 74 | ||
| 75 | 50 | .divider { |
| 76 | 51 | color: var(--vp-c-divider); |
| 77 | 52 | } |
| @@ -87,17 +62,4 @@ a { | ||
| 87 | 62 | a:hover { |
| 88 | 63 | color: var(--vp-c-text-1); |
| 89 | 64 | } |
| 90 | ||
| 91 | .icon-link { | |
| 92 | display: flex; | |
| 93 | align-items: center; | |
| 94 | font-size: 20px; | |
| 95 | text-decoration: none; | |
| 96 | color: var(--vp-c-text-2); | |
| 97 | transition: color 0.3s; | |
| 98 | } | |
| 99 | ||
| 100 | .icon-link:hover { | |
| 101 | color: var(--vp-c-text-1); | |
| 102 | } | |
| 103 | 65 | </style> |