1+ <script setup lang="ts">
2+ import { computed } from ' vue'
3+ import { VPLink } from ' vuepress-theme-plume/client'
4+ import { useRouteLocale } from ' vuepress/client'
5+
6+ interface Locale {
7+ star: string
8+ issue: string
9+ sponsor: string
10+ }
11+
12+ </script >
13+
14+ <template >
15+ <div class =" aside-nav-wrapper" >
16+ <VPLink class =" link" no-icon href =" https://github.com/fastapi-practices/fastapi_best_architecture" >
17+ <span class =" vpi-github-star" />
18+ <span class =" link-text" >在 GitHub 上 Star</span >
19+ <span class =" vpi-arrow-right" />
20+ </VPLink >
21+ <VPLink class =" link" no-icon href =" /questions.html" >
22+ <span class =" vpi-github-issue" />
23+ <span class =" link-text" >遇到问题?</span >
24+ <span class =" vpi-arrow-right" />
25+ </VPLink >
26+ </div >
27+ </template >
28+
29+ <style scoped>
30+ .aside-nav-wrapper {
31+ display : flex ;
32+ flex-direction : column ;
33+ padding : 8px 0 ;
34+ margin : 8px 8px 0 ;
35+ border-top : solid 1px var (--vp-c-divider );
36+ }
37+
38+ .aside-nav-wrapper .link {
39+ display : flex ;
40+ gap : 8px ;
41+ align-items : center ;
42+ font-size : 14px ;
43+ color : var (--vp-c-text-3 );
44+ transition : color var (--vp-t-color );
45+ }
46+
47+ .aside-nav-wrapper .link :hover {
48+ color : var (--vp-c-brand-1 );
49+ }
50+
51+ .aside-nav-wrapper .link .link-text {
52+ flex : 1 2 ;
53+ font-size : 12px ;
54+ }
55+
56+ .vpi-github-star {
57+ --icon : url (" data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m12 1.5l3.1 6.3l6.9 1l-5 4.8l1.2 6.9l-6.2-3.2l-6.2 3.2L7 13.6L2 8.8l6.9-1z'/%3E%3C/svg%3E" );
58+ }
59+
60+ .vpi-github-issue {
61+ --icon : url (" data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 9.5a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3'/%3E%3Cpath fill='%23000' d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0M1.5 8a6.5 6.5 0 1 0 13 0a6.5 6.5 0 0 0-13 0'/%3E%3C/svg%3E" );
62+ }
63+ </style >
0 commit comments