File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ onMounted(() => {
29
29
30
30
<div class =" featured" >
31
31
<h2 >Featured Partners</h2 >
32
- <PartnerList :filter =" (p) => p.platinum" />
32
+ <PartnerList :filter =" (p) => p.platinum" showLinkToAll />
33
33
<a class =" browse-all" href =" ./all.html" >Browse All Partners</a >
34
34
</div >
35
35
Original file line number Diff line number Diff line change @@ -4,8 +4,9 @@ import { computed, onMounted } from 'vue'
4
4
import PartnerCard from ' ./PartnerCard.vue'
5
5
import { Partner } from ' ./type'
6
6
7
- const { filter } = defineProps <{
7
+ const { filter, showLinkToAll } = defineProps <{
8
8
filter? : (p : Partner ) => boolean | undefined
9
+ showLinkToAll? : boolean
9
10
}>()
10
11
11
12
let mounted = $ref (false )
@@ -49,6 +50,9 @@ function shuffle(array: Array<any>) {
49
50
<ClientOnly >
50
51
<PartnerCard v-for =" p in filtered" :key =" p.name" :data =" p" />
51
52
</ClientOnly >
53
+ <a class =" browse-all" href =" ./all.html" v-if =" showLinkToAll && filtered.length % 2" >
54
+ Browse and Search<br >All Partners
55
+ </a >
52
56
</div >
53
57
</template >
54
58
@@ -58,4 +62,27 @@ function shuffle(array: Array<any>) {
58
62
flex-wrap : wrap ;
59
63
justify-content : space-between ;
60
64
}
65
+
66
+ .browse-all {
67
+ color : var (--vt-c-text-2 );
68
+ transition : color .5s ease ;
69
+ font-size : 1.2em ;
70
+ text-align : center ;
71
+ padding-top : 240px ;
72
+ display : block ;
73
+ border-radius : 4px ;
74
+ border : 1px solid var (--vt-c-divider-light );
75
+ width : 48.5% ;
76
+ margin-bottom : 36px ;
77
+ }
78
+
79
+ .browse-all :hover {
80
+ color : var (--vt-c-text-1 );
81
+ }
82
+
83
+ @media (max-width : 768px ) {
84
+ .browse-all {
85
+ display : none ;
86
+ }
87
+ }
61
88
</style >
You can’t perform that action at this time.
0 commit comments