Przeglądaj źródła

layout position for index page with placeholder images

tags/0.9.0
Alej 4 lat temu
rodzic
commit
bba2b8beee
1 zmienionych plików z 96 dodań i 17 usunięć
  1. 96
    17
      vue-theme/src/pages/index.vue

+ 96
- 17
vue-theme/src/pages/index.vue Wyświetl plik

@@ -2,6 +2,7 @@
2 2
 <template lang="pug">
3 3
 .page--index.f-row.between
4 4
     article.f-grow
5
+        //- if sticky
5 6
         .f-row
6 7
             h3(v-if="!allStickyLoaded") loading...
7 8
             section(v-else-if="allStickyLoaded").shadow
@@ -9,33 +10,106 @@
9 10
                 ul
10 11
                     li(v-for="sticky in allSticky")
11 12
                         p {{ sticky.type }}: {{ sticky.title }}
13
+        //- loading
12 14
         .f-row
13 15
             h3(v-if="!allPagesLoaded") loading...
14 16
             .content(v-else-if="allPages['welcome']" v-html="allPages['welcome'].content")
15
-        .f-row
16
-            section(v-if="allEpisodesLoaded").shadow
17
-                router-link(:to="`/episodes`")
18
-                    h4.t-cap episodes
19
-                router-link(:to="`/episodes/${Object.values(allEpisodes)[0].slug}`")
20
-                    p {{ Object.values(allEpisodes)[0].slug }}
21 17
 
18
+        //- top section
19
+        .f-row.around
20
+            .f-col
21
+                section(v-if="allEpisodesLoaded").shadow
22
+                    router-link(:to="`/episodes`")
23
+                        h3.t-up episodes
24
+                    router-link(:to="`/episodes/${Object.values(allEpisodes)[0].slug}`")
25
+                        img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
26
+                        h2.t-up.t-cntr {{ Object.values(allEpisodes)[0].slug }}
27
+                    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;]
28
+
29
+            .f.col
30
+                .f-row
31
+                    section(v-if="allExhibitionsLoaded").shadow
32
+                        router-link(:to="`/exhibitions`")
33
+                            h3.t-up exhibitions
34
+                        router-link(:to="`/exhibitions/${Object.values(allExhibitions)[0].slug}`")
35
+                            img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
36
+                            h2.t-up.t-cntr {{ Object.values(allExhibitions)[0].slug }}
37
+
38
+                    section(v-if="allEventsLoaded").shadow
39
+                        router-link(:to="`/events`")
40
+                            h3.t-up events
41
+                        router-link(:to="`/events/${Object.values(allEvents)[0].slug}`")
42
+                            img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
43
+                            h2.t-up.t-cntr {{ Object.values(allEvents)[0].slug }}
44
+                .f-row
45
+                    section(v-if="allPostsLoaded").shadow
46
+                        router-link(:to="`/posts`")
47
+                            h3.t-up shorts PLACEHOLDER
48
+                        router-link(:to="`/posts/${Object.values(allPosts)[0].slug}`")
49
+                            img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
50
+                            h2.t-up.t-cntr {{ Object.values(allPosts)[0].slug }}
51
+
52
+                    section(v-if="allPostsLoaded").shadow
53
+                        router-link(:to="`/posts`")
54
+                            h3.t-up posts
55
+                        router-link(:to="`/events/${Object.values(allPosts)[0].slug}`")
56
+                            img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
57
+                            h2.t-up.t-cntr {{ Object.values(allPosts)[0].slug }}
58
+
59
+        //- middle row
60
+        .f-row.around
22 61
             section(v-if="allArtistsLoaded").shadow
23 62
                 router-link(:to="`/artists`")
24
-                    h4.t-cap artists
63
+                    h3.t-up artists
25 64
                 router-link(:to="`/artists/${Object.values(allArtists)[0].slug}`")
26
-                    p {{ Object.values(allArtists)[0].slug }}
65
+                    img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
66
+                    h2.t-up.t-cntr {{ Object.values(allArtists)[0].slug }}
27 67
 
28
-            section(v-if="allPagesLoaded").shadow
29
-                h4.t-cap pages
30
-                    p {{ Object.values(allPages)[0].slug }}
68
+        //- bottom row
69
+        .f-row.around
70
+            .f.col
71
+                .f-row
72
+                    section(v-if="allPostsLoaded").shadow
73
+                        router-link(:to="`/objects`")
74
+                            h3.t-up objects PLACEHOLDER
75
+                        router-link(:to="`/objects/${Object.values(allPosts)[0].slug}`")
76
+                            img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
77
+                            h2.t-up.t-cntr {{ Object.values(allPosts)[0].slug }}
78
+
79
+                    section(v-if="allPostsLoaded").shadow
80
+                        router-link(:to="`/techniques`")
81
+                            h3.t-up techniques PLACEHOLDER
82
+                        router-link(:to="`/techniques/${Object.values(allPosts)[0].slug}`")
83
+                            img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
84
+                            h2.t-up.t-cntr {{ Object.values(allPosts)[0].slug }}
85
+                .f-row
86
+                    section(v-if="allPostsLoaded").shadow
87
+                        router-link(:to="`/talks`")
88
+                            h3.t-up talks PLACEHOLDER
89
+                        router-link(:to="`/talks/${Object.values(allPosts)[0].slug}`")
90
+                            img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
91
+                            h2.t-up.t-cntr {{ Object.values(allPosts)[0].slug }}
92
+
93
+                    section(v-if="allPostsLoaded").shadow
94
+                        router-link(:to="`/center`")
95
+                            h3.t-up center PLACEHOLDER
96
+                        router-link(:to="`/center/${Object.values(allPosts)[0].slug}`")
97
+                            img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
98
+                            h2.t-up.t-cntr {{ Object.values(allPosts)[0].slug }}
99
+            .f-col
100
+                section(v-if="allPostsLoaded").shadow
101
+                    router-link(:to="`/guides`")
102
+                        h3.t-up guides
103
+                    router-link(:to="`/guides/${Object.values(allPosts)[0].slug}`")
104
+                            img.index(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
105
+                    h2.t-up.t-cntr {{ Object.values(allPosts)[0].slug }}
31 106
 
32 107
         .f-row
33
-            section(v-if="allPostsLoaded").shadow
34
-                router-link(:to="`/posts`")
35
-                    h4.t-cap posts
36
-                router-link(:to="`/posts/${Object.values(allPosts)[0].slug}`")
37
-                    p {{ Object.values(allPosts)[0].slug }}
38
-     
108
+            section(v-if="allPagesLoaded").shadow
109
+                h3.t-up pages
110
+                    h2.t-up.t-cntr {{ Object.values(allPages)[0].slug }}
111
+
112
+        //- footer row     
39 113
         .f-row
40 114
             footer.f-col
41 115
                 p end of article icon
@@ -93,6 +167,11 @@ export default {
93 167
                 margin: 0 0 0 $ms-0
94 168
             &:nth-of-type(5), &:nth-of-type(6)
95 169
                 flex-grow: 4
170
+            img.index
171
+                display: block
172
+                width: 20em 
173
+                margin-left: auto
174
+                margin-right: auto
96 175
     footer
97 176
         img
98 177
             width: 30px

Ładowanie…
Anuluj
Zapisz