Explorar el Código

:recycle: adding back rows

tags/0.9.0
J hace 4 años
padre
commit
fab3a95132
Se han modificado 1 ficheros con 41 adiciones y 88 borrados
  1. 41
    88
      vue-theme/src/pages/index.vue

+ 41
- 88
vue-theme/src/pages/index.vue Ver fichero

@@ -1,7 +1,7 @@
1 1
 // Homepage grid
2 2
 <template lang="pug">
3 3
 .page--index.f-row.between
4
-    article.f-grow
4
+    article.f-grow.f-col
5 5
         //- if sticky
6 6
         .f-row
7 7
             h3(v-if="!allStickyLoaded") loading...
@@ -16,88 +16,50 @@
16 16
             .content(v-else-if="allPages['welcome']" v-html="allPages['welcome'].content")
17 17
 
18 18
         //- top section
19
-        section(v-if="allEpisodesLoaded").shadow
20
-            router-link(:to="`/episodes`")
21
-                h3.t-up episodes
22
-            router-link(:to="`/episodes/${Object.values(allEpisodes)[0].slug}`")
23
-                img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
24
-                h2.t-up.t-cntr {{ Object.values(allEpisodes)[0].slug }}
25
-            p episode excerpt, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nisl ligula, ullamcorper nec dapibus a, ullamcorper a elit. Integer mattis interdum mauris, sit amet feugiat dui consequat et. Curabitur cursus justo quis nunc euismod, nec ornare sem ornare. Mauris eget purus finibus, tempus tellus sed, maximus nisi. Fusce cursus placerat sodales...[&hellip;]
26
-
27
-        section(v-if="allExhibitionsLoaded").shadow
28
-            router-link(:to="`/exhibitions`")
29
-                h3.t-up exhibitions
30
-            router-link(:to="`/exhibitions/${Object.values(allExhibitions)[0].slug}`")
31
-                img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
32
-                h2.t-up.t-cntr {{ Object.values(allExhibitions)[0].slug }}
33
-
34
-        section(v-if="allEventsLoaded").shadow
35
-            router-link(:to="`/events`")
36
-                h3.t-up events
37
-            router-link(:to="`/events/${Object.values(allEvents)[0].slug}`")
38
-                img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
39
-                h2.t-up.t-cntr {{ Object.values(allEvents)[0].slug }}
40
-
41
-        section(v-if="allPostsLoaded").shadow
42
-            router-link(:to="`/posts`")
43
-                h3.t-up shorts PLACEHOLDER
44
-            router-link(:to="`/posts/${Object.values(allPosts)[0].slug}`")
45
-                img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
46
-                h2.t-up.t-cntr {{ Object.values(allPosts)[0].slug }}
19
+        .f-row
20
+            section(v-if="allEpisodesLoaded").shadow
21
+                router-link(:to="`/episodes`")
22
+                    h3.t-up episodes
23
+                router-link(v-if="allEpisodes.length > 0" :to="`/episodes/${Object.values(allEpisodes)[0].slug}`")
24
+                    img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
25
+                    h2.t-up.t-cntr {{ Object.values(allEpisodes)[0].slug }}
26
+                p episode excerpt, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nisl ligula, ullamcorper nec dapibus a, ullamcorper a elit. Integer mattis interdum mauris, sit amet feugiat dui consequat et. Curabitur cursus justo quis nunc euismod, nec ornare sem ornare. Mauris eget purus finibus, tempus tellus sed, maximus nisi. Fusce cursus placerat sodales...[&hellip;]
27
+
28
+            section(v-if="allExhibitionsLoaded").shadow
29
+                router-link(:to="`/exhibitions`")
30
+                    h3.t-up exhibitions
31
+                router-link(v-if="allExhibitions.length > 0" :to="`/exhibitions/${Object.values(allExhibitions)[0].slug}`")
32
+                    img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
33
+                    h2.t-up.t-cntr {{ Object.values(allExhibitions)[0].slug }}
34
+
35
+            section(v-if="allEventsLoaded").shadow
36
+                router-link(:to="`/events`")
37
+                    h3.t-up events
38
+                router-link(v-if="allEvents.length > 0" :to="`/events/${Object.values(allEvents)[0].slug}`")
39
+                    img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
40
+                    h2.t-up.t-cntr {{ Object.values(allEvents)[0].slug }}
41
+
42
+            section(v-if="allPostsLoaded").shadow
43
+                router-link(:to="`/posts`")
44
+                    h3.t-up shorts PLACEHOLDER
45
+                router-link(v-if="allPosts.length > 0" :to="`/posts/${Object.values(allPosts)[0].slug}`")
46
+                    img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
47
+                    h2.t-up.t-cntr {{ Object.values(allPosts)[0].slug }}
47 48
 
48 49
         //- middle row
49
-        section(v-if="allArtistsLoaded").shadow
50
-            router-link(:to="`/artists`")
51
-                h3.t-up artists
52
-            router-link(:to="`/artists/${Object.values(allArtists)[0].slug}`")
53
-                img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
54
-                h2.t-up.t-cntr {{ Object.values(allArtists)[0].slug }}
55
-
56
-        //- bottom row
57
-        section(v-if="allPostsLoaded").shadow
58
-            router-link(:to="`/objects`")
59
-                h3.t-up objects PLACEHOLDER
60
-            router-link(:to="`/objects/${Object.values(allPosts)[0].slug}`")
61
-                img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
62
-                h2.t-up.t-cntr {{ Object.values(allPosts)[0].slug }}
63
-
64
-        section(v-if="allPostsLoaded").shadow
65
-            router-link(:to="`/techniques`")
66
-                h3.t-up techniques PLACEHOLDER
67
-            router-link(:to="`/techniques/${Object.values(allPosts)[0].slug}`")
68
-                img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
69
-                h2.t-up.t-cntr {{ Object.values(allPosts)[0].slug }}
70
-
71
-        section(v-if="allPostsLoaded").shadow
72
-            router-link(:to="`/talks`")
73
-                h3.t-up talks PLACEHOLDER
74
-            router-link(:to="`/talks/${Object.values(allPosts)[0].slug}`")
75
-                img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
76
-                h2.t-up.t-cntr {{ Object.values(allPosts)[0].slug }}
77
-
78
-        section(v-if="allPostsLoaded").shadow
79
-            router-link(:to="`/center`")
80
-                h3.t-up center PLACEHOLDER
81
-            router-link(:to="`/center/${Object.values(allPosts)[0].slug}`")
82
-                img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
83
-                h2.t-up.t-cntr {{ Object.values(allPosts)[0].slug }}
84
-
85
-        section(v-if="allPostsLoaded").shadow
86
-            router-link(:to="`/guides`")
87
-                h3.t-up guides
88
-            router-link(:to="`/guides/${Object.values(allPosts)[0].slug}`")
89
-                img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
90
-                h2.t-up.t-cntr {{ Object.values(allPosts)[0].slug }}
91
-
92
-        
93
-        section(v-if="allPagesLoaded").shadow
94
-            h3.t-up pages
95
-            h2.t-up.t-cntr {{ Object.values(allPages)[0].slug }}
50
+        .f-row
51
+            section(v-if="allArtistsLoaded").shadow
52
+                router-link(:to="`/artists`")
53
+                    h3.t-up artists
54
+                router-link(v-if="allArtists.length > 0" :to="`/artists/${Object.values(allArtists)[0].slug}`")
55
+                    img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
56
+                    h2.t-up.t-cntr {{ Object.values(allArtists)[0].slug }}
96 57
 
97 58
         //- footer row
98
-        footer.f-col
99
-            p end of article icon
100
-            img(src="../star.svg")
59
+        .f-row
60
+            footer.f-col
61
+                p end of article icon
62
+                img(src="../star.svg")
101 63
 </template>
102 64
 
103 65
 <script>
@@ -139,23 +101,14 @@ export default {
139 101
 
140 102
 .page--index
141 103
     article
142
-        .f-row
143
-            &:nth-of-type(3)
144
-                margin: $ms-0 0
145 104
         section
146 105
             flex-grow: 1
147 106
             &:nth-of-type(2)
148 107
                 flex-grow: 3
149 108
             &:nth-of-type(3), &:nth-of-type(4)
150 109
                 flex-grow: 1
151
-                margin: 0 0 0 $ms-0
152 110
             &:nth-of-type(5), &:nth-of-type(6)
153 111
                 flex-grow: 4
154
-            img.index
155
-                display: block
156
-                width: 20em 
157
-                margin-left: auto
158
-                margin-right: auto
159 112
     footer
160 113
         img
161 114
             width: 30px

Loading…
Cancelar
Guardar