This repository was archived by the owner on Mar 2, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +28
-8
lines changed Expand file tree Collapse file tree 3 files changed +28
-8
lines changed Original file line number Diff line number Diff line change 76
76
<div id =" stats" class =" section" >
77
77
<div class =" title" >Stats</div >
78
78
<div id =" statsContent" class =" content" >
79
- <component-stat v-for =" stat in stats" :key =" stat.id" :propName =" stat.prop" :imageURL =" stat.image" :propValue =" stat.value" />
79
+ <component-stat v-for =" stat in stats" :key =" stat.id" :propName =" stat.prop" :imageURL =" stat.image" :propValue =" stat.value" :statURL = " stat.url " />
80
80
</div >
81
81
</div >
82
82
<div id =" contributors" class =" section" >
@@ -221,7 +221,8 @@ A watcher has been added to the component to render the details dynamically when
221
221
{
222
222
prop: ' commits' ,
223
223
image: require (' ../assets/component/commit.png' ),
224
- value: details .commits
224
+ value: details .commits ,
225
+ url : details .github_url
225
226
},
226
227
{
227
228
prop: ' version' ,
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div id =" stat" >
3
- <img :src =" imageURL" :alt =" propName" />
4
- <span >{{ propValue }} {{ propName }}</span >
3
+ <a :href =" statURL" :v-if =" statURL" target =" _blank" >
4
+ <img :src =" imageURL" :alt =" propName" />
5
+ <span >{{ propValue }} {{ propName }}</span >
6
+ </a >
5
7
</div >
6
8
</template >
7
9
<script >
@@ -36,6 +38,10 @@ export default {
36
38
required: true ,
37
39
default: ' ' ,
38
40
note: ' Statistic of the property (a numerical in most cases).'
41
+ },
42
+ statURL: {
43
+ required: true ,
44
+ note: ' Other links relevant to the stat'
39
45
}
40
46
}
41
47
};
@@ -54,4 +60,17 @@ export default {
54
60
text-align : center ;
55
61
}
56
62
}
63
+
64
+ #stat a {
65
+ display : flex ;
66
+ flex-direction : column ;
67
+ align-items : center ;
68
+ img {
69
+ height : 50px ;
70
+ margin : 10px ;
71
+ }
72
+ span {
73
+ text-align : center ;
74
+ }
75
+ }
57
76
</style >
Original file line number Diff line number Diff line change 11
11
<div id =" mobileNavHeading" >
12
12
<router-link to =" /" ><h1 id =" bio" >Bio</h1 ><h1 id =" js" >JS</h1 ></router-link >
13
13
</div >
14
- <router-link class =" navLink" : class =" active=='components'?'active':'' " to =" /components" ><span >Components</span ></router-link >
15
- <router-link class =" navLink" : class =" active=='guide'?'active':'' " to =" /guide" ><span >Guide</span ></router-link >
16
- <router-link class =" navLink" : class =" active=='about'?'active':'' " to =" /about" ><span >About</span ></router-link >
17
- <router-link class =" navLink" : class =" active=='contact_us'?'active':'' " to =" /contact" ><span >Contact Us</span ></router-link >
14
+ <router-link class =" navLink" active- class =" active" to =" /components" ><span >Components</span ></router-link >
15
+ <router-link class =" navLink" active- class =" active" to =" /guide" ><span >Guide</span ></router-link >
16
+ <router-link class =" navLink" active- class =" active" to =" /about" ><span >About</span ></router-link >
17
+ <router-link class =" navLink" active- class =" active" to =" /contact" ><span >Contact Us</span ></router-link >
18
18
<div class =" close" >
19
19
<img @click =" closeMenu()" src =" ../../static/close.png" alt =" Close menu" >
20
20
</div >
You can’t perform that action at this time.
0 commit comments