|
|
@@ -10,7 +10,7 @@
|
|
10
|
10
|
ul.flipped(:class="[`sticky-${Object.keys(allSticky).length}`]")
|
|
11
|
11
|
//- if sticky
|
|
12
|
12
|
li.shadow(v-for="sticky in allSticky")
|
|
13
|
|
- card(:content="sticky" :type="`${sticky.type}s`")
|
|
|
13
|
+ card(:content="sticky" :type="`${sticky.type}`")
|
|
14
|
14
|
|
|
15
|
15
|
//- firstRow: ['episodes', 'exhibitions', 'events', 'shorts', 'posts'], exceprt on episodes only.
|
|
16
|
16
|
section
|
|
|
@@ -21,14 +21,14 @@
|
|
21
|
21
|
//- secondRow: 'artists', // This is only ONE post, excerpt on artist
|
|
22
|
22
|
section.max
|
|
23
|
23
|
ul.w-max
|
|
24
|
|
- li.shadow(v-for="post in [randomPostOfType(secondRow)]")
|
|
25
|
|
- card(v-if="post" :content="post" :type="`${post.type}s`" :wide="true")
|
|
26
|
|
-
|
|
|
24
|
+ li.shadow(v-for="post in randomPosts.filter(p => p.type == secondRow)")
|
|
|
25
|
+ card(v-if="post" :content="post" :type="`${post.type}`" :wide="true")
|
|
|
26
|
+
|
|
27
|
27
|
//- (thirdRow) firstRow.flipped: ['guides', 'objects', 'techniques', 'talks', 'center'], exceprt on guides only
|
|
28
|
28
|
section
|
|
29
|
29
|
ul.flipped
|
|
30
|
30
|
li.shadow(v-for="type in thirdRow")
|
|
31
|
|
- .random--wrapper(v-for="post in [randomPostOfType(type)]")
|
|
|
31
|
+ .random--wrapper(v-for="post in randomPosts.filter(p => p.type == type)")
|
|
32
|
32
|
card(:content="post" :type="type")
|
|
33
|
33
|
</template>
|
|
34
|
34
|
|
|
|
@@ -71,8 +71,7 @@ export default {
|
|
71
|
71
|
}
|
|
72
|
72
|
}
|
|
73
|
73
|
}
|
|
74
|
|
- this.$store.dispatch('getRandom', ['episode', 'exhibition', 'event', 'artist', 'post'])
|
|
75
|
|
-
|
|
|
74
|
+ await this.$store.dispatch('getRandomPosts', ['episode', 'exhibition', 'event', 'artist', 'post'])
|
|
76
|
75
|
this.checkAndSetHero('welcome')
|
|
77
|
76
|
},
|
|
78
|
77
|
methods: {
|
|
|
@@ -95,7 +94,7 @@ export default {
|
|
95
|
94
|
},
|
|
96
|
95
|
firstPostOfType(type) {
|
|
97
|
96
|
return Object.values(this[`all${convertTitleCase(type)}s`])[0]
|
|
98
|
|
- }
|
|
|
97
|
+ },
|
|
99
|
98
|
},
|
|
100
|
99
|
}
|
|
101
|
100
|
</script>
|
|
|
@@ -130,7 +129,7 @@ export default {
|
|
130
|
129
|
&.stickies
|
|
131
|
130
|
margin: 0 0 2% 0
|
|
132
|
131
|
&.max
|
|
133
|
|
- margin: 1.5% 0 2% 0
|
|
|
132
|
+ margin: 35px 0 20px
|
|
134
|
133
|
ul
|
|
135
|
134
|
display: grid
|
|
136
|
135
|
grid-template-columns:
|