Kaynağa Gözat

adjust styling - set colours to cia theme, set commenting for reference

tags/0.9.0
Alej 4 yıl önce
ebeveyn
işleme
ca843e07e7
1 değiştirilmiş dosya ile 8 ekleme ve 4 silme
  1. 8
    4
      vue-theme/src/pages/index.vue

+ 8
- 4
vue-theme/src/pages/index.vue Dosyayı Görüntüle

5
         .page-content(v-html="allPages.welcome.content")
5
         .page-content(v-html="allPages.welcome.content")
6
 
6
 
7
     article.w-max
7
     article.w-max
8
+        //- sticky section
8
         section(v-if="allSticky && Object.keys(allSticky).length").stickies
9
         section(v-if="allSticky && Object.keys(allSticky).length").stickies
9
             ul.flipped(:class="[`sticky-${Object.keys(allSticky).length}`]")
10
             ul.flipped(:class="[`sticky-${Object.keys(allSticky).length}`]")
10
                 //- if sticky
11
                 //- if sticky
11
                 li.shadow(v-for="sticky in allSticky")
12
                 li.shadow(v-for="sticky in allSticky")
12
                     card(:content="sticky" :type="`${sticky.type}s`")
13
                     card(:content="sticky" :type="`${sticky.type}s`")
13
-
14
+        
15
+        //- firstRow: ['episodes', 'exhibitions', 'events', 'artists', 'posts'],
14
         section
16
         section
15
             ul
17
             ul
16
                 li.shadow(v-for="type in firstRow")
18
                 li.shadow(v-for="type in firstRow")
17
                     card(:content="firstPostOfType(type)" :type="type")
19
                     card(:content="firstPostOfType(type)" :type="type")
18
-
20
+        
21
+        //- secondRow: 'artists', // This is only ONE post
19
         section.max
22
         section.max
20
             ul.w-max
23
             ul.w-max
21
                 li.shadow(v-for="post in [randomPostOfType(secondRow)]")
24
                 li.shadow(v-for="post in [randomPostOfType(secondRow)]")
22
                     card(v-if="post" :content="post" :type="`${post.type}s`" :wide="true")
25
                     card(v-if="post" :content="post" :type="`${post.type}s`" :wide="true")
23
-
26
+        //- firstRow.flipped: ['episodes', 'exhibitions', 'events', 'artists', 'posts'],
24
         section
27
         section
25
             ul.flipped
28
             ul.flipped
26
                 li.shadow(v-for="type in thirdRow")
29
                 li.shadow(v-for="type in thirdRow")
118
             li
121
             li
119
                 margin: 0
122
                 margin: 0
120
                 min-height: 10em
123
                 min-height: 10em
121
-                background-color: purple
124
+                /* background-color: purple */
125
+                background-color: white
122
                 &:nth-of-type(1)
126
                 &:nth-of-type(1)
123
                     grid-column-start: 1
127
                     grid-column-start: 1
124
                     grid-row-start: 1
128
                     grid-row-start: 1

Loading…
İptal
Kaydet