File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 49
49
</div >
50
50
</nuxt-link >
51
51
<nuxt-link
52
- v-for =" collection in orderedCollections"
52
+ v-for =" collection in orderedCollections.sort(
53
+ (a, b) => new Date(b.created) - new Date(a.created),
54
+ )"
53
55
:key =" collection.id"
54
56
:to =" `/collection/${collection.id}`"
55
57
class =" universal-card recessed collection"
Original file line number Diff line number Diff line change 223
223
</div >
224
224
<div v-if =" ['collections'].includes(route.params.projectType)" class =" collections-grid" >
225
225
<nuxt-link
226
- v-for =" collection in collections"
226
+ v-for =" collection in collections.sort(
227
+ (a, b) => new Date(b.created) - new Date(a.created),
228
+ )"
227
229
:key =" collection.id"
228
230
:to =" `/collection/${collection.id}`"
229
231
class =" card collection-item"
242
244
{{ collection.description }}
243
245
</div >
244
246
<div class =" stat-bar" >
245
- <div class =" stats" ><BoxIcon /> {{ collection.projects?.length || 0 }} projects</div >
247
+ <div class =" stats" >
248
+ <BoxIcon />
249
+ {{
250
+ `${$formatNumber(collection.projects?.length || 0, false)} project${(collection.projects?.length || 0) !== 1 ? "s" : ""}`
251
+ }}
252
+ </div >
246
253
<div class =" stats" >
247
254
<template v-if =" collection .status === ' listed' " >
248
255
<WorldIcon />
@@ -638,12 +645,13 @@ export default defineNuxtComponent({
638
645
grid- template- columns: repeat (1 , 1fr );
639
646
}
640
647
641
- gap: var (-- gap- lg );
648
+ gap: var (-- gap- md );
642
649
643
650
.collection - item {
644
651
display: flex;
645
652
flex- direction: column;
646
653
gap: var (-- gap- md);
654
+ margin- bottom: 0px ;
647
655
}
648
656
649
657
.description {
@@ -692,7 +700,7 @@ export default defineNuxtComponent({
692
700
693
701
.title {
694
702
color: var (-- color- contrast);
695
- font- weight: 600 ;
703
+ font- weight: 700 ;
696
704
font- size: var (-- font- size- lg);
697
705
margin: 0 ;
698
706
}
You can’t perform that action at this time.
0 commit comments