ソースを参照

Merge branch 'dev' of craft-in-america/vue-wp into master

tags/1.0.3
Alej 2年前
コミット
9010786412

+ 2
- 7
.gitignore ファイルの表示

@@ -21,15 +21,10 @@ Thumbs.db
21 21
 uploads
22 22
 db
23 23
 **/node_modules
24
-plugins/cmb2
25
-plugins/duplicator
26
-plugins/hello.php
27
-plugins/akismet
28
-plugins/regenerate-thumbnails
29
-plugins/wp-rest-cache
24
+**/plugins/*
30 25
 
31 26
 # Env
32 27
 .env
33 28
 
34 29
 # Build files
35
-vue-theme/build
30
+vue-theme/build

+ 1
- 1
vue-theme/src/components/card.vue ファイルの表示

@@ -103,7 +103,7 @@ export default {
103 103
             .featured-or-hero-image img
104 104
                 max-height: calc($max-card-img-height / 3)
105 105
     .card
106
-        min-height: 305px
106
+        /* min-height: 305px */
107 107
         &--info 
108 108
             .featured-or-hero-image img
109 109
                 max-height: $max-card-img-height

+ 2
- 1
vue-theme/src/components/footer.vue ファイルの表示

@@ -82,7 +82,8 @@
82 82
                         li 
83 83
                             router-link(to="/event/sorted/by-current-and-upcoming")   Events 
84 84
                         li
85
-                            router-link(to="/event?type=talks")   Talks & Interviews
85
+                            //- router-link(to="/event?type=talks")   Talks & Interviews
86
+                            router-link(to="/page/recorded-talks-and-interviews")   Recorded Talks + Interviews
86 87
                         li 
87 88
                             router-link(to="/page/library")   Library 
88 89
             li

+ 54
- 61
vue-theme/src/components/navigation/navigation.vue ファイルの表示

@@ -1,13 +1,13 @@
1 1
 // Replace with calls to menu system
2 2
 <template lang="pug">
3 3
 nav.main.w-max
4
-    .menu.f-col
4
+    .menu.f-col.t-up 
5 5
         ul.f-row.w-max
6 6
             li.f-row.start
7 7
                 router-link(to="/")
8 8
                     img(src="../../star.svg")
9 9
                 router-link(to="/")
10
-                    h1.t-serif.t-up craft in america
10
+                    h1.t-serif craft in america
11 11
             //- li.f-grow
12 12
             //- li(v-for="item in menuItems")
13 13
             //-     router-link(v-if="['event','exhibition'].includes(item)" :to="`/${item}/sorted/${sortTypes.currentAndUpcoming}`")
@@ -19,7 +19,7 @@ nav.main.w-max
19 19
 
20 20
             //- hardcoded menu
21 21
             li.f-grow
22
-            li.t-up
22
+            li.f-grow
23 23
                 router-link(to="/episode") PBS Series
24 24
                 ul.submenu 
25 25
                     li
@@ -29,37 +29,31 @@ nav.main.w-max
29 29
                     li
30 30
                         router-link(to="/technique") Techniques
31 31
             li.f-grow
32
-            li.t-up
33 32
                 router-link(to="/artist/sorted/by-material") Artists
34 33
                 ul.submenu
35 34
                     li
36 35
                         router-link(to="/artist/sorted/by-alpha") A - Z
37 36
                     li
38 37
                         router-link(to="/artist/sorted/by-material") By Material
39
-            li.f-grow
40
-            li.t-up 
38
+            li.f-grow 
41 39
                 router-link(to="/exhibition/sorted/by-current-and-upcoming") Exhibitions
42 40
                 ul.submenu 
43 41
                     li
44 42
                         router-link(to="/exhibition/sorted/by-current-and-upcoming") Current/Upcoming
45 43
                     li
46 44
                         router-link(to="/exhibition/sorted/by-past") Past
47
-                    li
48
-                        router-link(to="/object") Explore Craft Objects
49
-            li.f-grow
50
-            li.t-up  
45
+            li.f-grow  
51 46
                 router-link(to="/page/center") Center
52
-                ul.submenu 
47
+                ul.submenu
53 48
                     li
54 49
                         router-link(to="/page/center") Info
55 50
                     li
56
-                        router-link(to="/event/sorted/by-current-and-upcoming") Events Current/Upcoming
51
+                        router-link(to="/event/sorted/by-current-and-upcoming") Events
57 52
                     li
58
-                        router-link(to="/event?type=talks") Talks & Interviews
53
+                        router-link(to="/page/recorded-talks-and-interviews") Recorded Talks + Interviews
59 54
                     li
60 55
                         router-link(to="/page/library") Library
61
-            li.f-grow
62
-            li.t-up   
56
+            li.f-grow   
63 57
                 router-link(to="/guide") Education
64 58
                 ul.submenu 
65 59
                     li
@@ -67,18 +61,14 @@ nav.main.w-max
67 61
                     li
68 62
                         router-link(to="/page/video-resources-for-educators") Video Resources 
69 63
                     li
70
-                        router-link(to="/page/craft-in-schools") Craft in Schools  
71
-                    li
72
-                        router-link(to="/page/craft-resources-map") Craft Resource Map 
64
+                        router-link(to="/page/craft-in-schools") Craft in Schools 
65
+            li.f-grow    
66
+                router-link(to="/page/artists-resources") Resources
67
+                ul.submenu 
73 68
                     li
74 69
                         router-link(to="/publication") Publications 
75 70
                     li
76
-                        router-link(to="/page/library") Library
77
-                    
78
-            li.f-grow
79
-            li.t-up    
80
-                router-link(to="/page/artists-resources") Resources
81
-                ul.submenu 
71
+                        router-link(to="/object") Explore Craft Objects
82 72
                     li
83 73
                         router-link(to="/page/artists-resources") Opportunities
84 74
                     li
@@ -87,31 +77,26 @@ nav.main.w-max
87 77
                         router-link(to="/page/craft-resources-map") Craft Resources Map 
88 78
                     li
89 79
                         router-link(to="/page/community-craft-calendar") Community Craft Calendar 
90
-            li.f-grow
91
-            li.t-up    
80
+            li.f-grow    
92 81
                 router-link(to="/page/donate") Support
93 82
                 ul.submenu 
94 83
                     li
95 84
                         router-link(to="/page/donate") Donate
96 85
                     li
97 86
                         router-link(to="/page/shop") Shop 
98
-            li.f-grow
99
-            li.t-up    
87
+            li.f-grow 
100 88
                 router-link(to="/page/about") About 
101 89
                 ul.submenu 
102 90
                     li
103 91
                         router-link(to="/page/about") Craft in America 
104
-                    //- li
105
-                    //-     router-link(to="/page/mission") Mission 
106 92
                     li
107 93
                         router-link(to="/page/board") Board of Directors 
108 94
                     li
109 95
                         router-link(to="/page/staff") Staff 
110 96
                     li
111 97
                         router-link(to="/page/contact") Contact 
112
-            li.f-grow
113
-            li.t-up 
114
-                a(@click="toggleSearch") 🔍 
98
+            li.f-grow 
99
+                a(@click="toggleSearch") 🔍
115 100
         ul(v-if="isSearchOpen").search.w-max
116 101
             li.f-row.w-max
117 102
                 input(v-model="searchTerms" @keyup.enter="sendSearch" tabindex="10")
@@ -127,12 +112,17 @@ nav.main.w-max
127 112
         label(for="toggle-mobile-menu" aria-label="Menu").drop-down &#9776;
128 113
         input(id="toggle-mobile-menu" type="checkbox").hide
129 114
 
130
-        ul.drop-down.w-max
131
-            li(v-for="item in menuItems")
132
-                router-link(@click="uncheck" v-if="item == 'about'" :to="`/page/${item}`")
133
-                    h5.t-up {{ item }}
115
+        ul.drop-down.w-max.t-up
116
+            li(v-for="item in menuItems").f-row.center
117
+                router-link(@click="uncheck" v-if="item == 'about' || item == 'donate'" :to="`/page/${item}`")
118
+                    h5 {{ item }}
134 119
                 router-link(@click="uncheck" v-else= "" :to="`/${item}`")
135
-                    h5.t-up {{ item }}
120
+                    h5 {{ item }}
121
+            li.f-col.center
122
+                h5
123
+                    input(v-model="searchTerms" @keyup.enter="sendSearch" tabindex="10")
124
+                    button(@click="sendSearch" tabindex="11") 🔍 search
125
+
136 126
 </template>
137 127
 
138 128
 <script>
@@ -158,6 +148,7 @@ export default {
158 148
             router.push({ path: '/search', query: { s: searchTerms.value } })
159 149
             searchTerms.value = ''
160 150
             toggleSearch()
151
+            document.getElementById('toggle-mobile-menu').checked = false
161 152
         }
162 153
 
163 154
         /**
@@ -171,8 +162,8 @@ export default {
171 162
             const extras = [
172 163
                 'blog',
173 164
                 // 'artist-resources',
165
+                'donate',
174 166
                 'about',
175
-                '🔍'
176 167
             ]
177 168
             const ignore = [
178 169
                 'page',
@@ -205,7 +196,7 @@ export default {
205 196
 @import '../../sss/variables.sss'
206 197
 @import '../../sss/theme.sss'
207 198
 
208
-nav.main
199
+nav.main 
209 200
     position: sticky
210 201
     top: 0
211 202
     background-color: $cia_grey
@@ -226,12 +217,12 @@ nav.main
226 217
                 width: $ms-3
227 218
                 height: $ms-3
228 219
                 padding: 0
229
-    
220
+
230 221
     .menu > ul
231 222
         position: relative
232 223
         padding: 0 0 0 $ms-0
233 224
         &.search
234
-            background-color: #fefefe
225
+            background-color: #fefefe 
235 226
             box-shadow: 1px 1px 1px $lighter
236 227
             position: absolute
237 228
             top: 36px
@@ -262,29 +253,32 @@ nav.main
262 253
                     display: block 
263 254
                     cursor: pointer
264 255
                     transition: $transition
265
-            ul.submenu
266
-                display: block  
267
-                position: absolute
268
-                background-color: $lighter
269
-                padding: 0 0.5em 0.5em
270
-                opacity: 0
271
-                top: 23px
256
+                    ul.submenu
257
+                        display: block 
272 258
 
273
-                //- submenu hover
274
-                &:hover 
275
-                    display: block  
259
+                ul.submenu
260
+                    display: none  
261
+                    position: absolute
262
+                    /* background-image: linear-gradient(180deg, rgba(255,255,255, 0), $lighter, $lighter, $lighter, $lighter, $lighter, $lighter, $lighter, $lighter) */
276 263
                     background-color: $lighter
277
-                    opacity: 1
278
-                    transition: $transition
264
+                    padding: 0.3em 0.3em 0.3em
265
+                    opacity: 0
266
+                    top: 24px
279 267
 
280
-                > li 
281
-                    line-height: 1.4
282
-                    width: max-content
283
-                    background-color: $lighter
284
-                    //- list hover
268
+                    //- submenu hover
285 269
                     &:hover 
286 270
                         display: block  
287
-                        background-color: $lighter
271
+                        opacity: 1
272
+                        transition: $transition
273
+
274
+                    > li 
275
+                        line-height: 1.4
276
+                        /* width: max-content */
277
+                        /* background-color: $lighter */
278
+                        //- list hover
279
+                        /* &:hover 
280
+                            display: block  
281
+                            background-color: $lighter */
288 282
                     
289 283
     
290 284
     .mobile-menu
@@ -348,5 +342,4 @@ nav.main
348 342
         .menu > ul
349 343
             max-width: $max-width
350 344
 
351
-    
352 345
 </style>

+ 14
- 12
vue-theme/src/components/sidebars/sidebar.vue ファイルの表示

@@ -25,6 +25,13 @@ aside.sidebar
25 25
                     //- event?type=talks //
26 26
                     router-link(v-if="type === 'event' " :to="`/${type}?type=talks`")
27 27
                         p talks 
28
+                //- li 
29
+                //-     //- event?type=recorded-talks-and-interviews //
30
+                //-     router-link(v-if="type === 'event' " :to="`/${type}?type=recorded-talks-and-interviews`")
31
+                //-         p Recorded Talks + Interviews 
32
+                //- li 
33
+                //-     router-link(v-if="type === 'event' " :to="`/page/recorded-talks-and-interviews`")
34
+                //-         p Recorded Talks + Interviews 
28 35
                 li 
29 36
                     //- event?type=workshops //
30 37
                     router-link(v-if="type === 'event' " :to="`/${type}?type=workshops`")
@@ -38,8 +45,8 @@ aside.sidebar
38 45
                     router-link(v-if="shouldShowDateSort.includes(type) " :to="`/${type}/sorted/by-current-and-upcoming`")
39 46
                         p by current and upcoming
40 47
                 //- li
41
-                //-     router-link(v-if="type === ('event', 'exhibition') " :to="`/${type}/sorted/by-past`")
42
-                //-         p by past 
48
+                //-     router-link(v-if="type === ('event' || 'exhibition') " :to="`/${type}/`")
49
+                //-         p by all 
43 50
 
44 51
         //- if artist has sorted by-alpha show alpha sets           
45 52
         .shadow(v-if="['artist'].includes(type) && layout !== 'single'")
@@ -158,8 +165,8 @@ export default {
158 165
                 'technique', 'guide', 'object', 'publication', 'post'
159 166
             ],
160 167
             shouldShowMaterialSort: [
161
-                'artist', 'exhibition', 'short', 'technique', 
162
-                'guide', 'object', 'publication'
168
+                'artist', 'short', 'technique', 
169
+                'guide', 'object', 'publication',
163 170
             ],
164 171
             shouldShowEpisodeSort: [
165 172
                 'artist', 'short', 'technique', 'guide'
@@ -191,24 +198,19 @@ export default {
191 198
                     break
192 199
                 case 'exhibition':
193 200
                     opts = [
194
-                        // Object.keys(this.sortTypes)[4],
195
-                        Object.keys(this.sortTypes)[1],
201
+
196 202
                         Object.keys(this.sortTypes)[5],
197 203
                     ]
198 204
                     break
199 205
                 case 'event':
200 206
                     opts = [
201
-                        // Object.keys(this.sortTypes)[4],
202
-                        // Object.keys(this.sortTypes)[1],
207
+
203 208
                         Object.keys(this.sortTypes)[5],
204 209
                     ]
205 210
                     break
206 211
                 case 'post':
207 212
                     opts = [
208 213
                         Object.keys(this.sortTypes)[4],
209
-                        // `by ${this.type} type`,
210
-                        // Object.keys(this.sortTypes)[5],
211
-                        // `by articles`
212 214
                     ]
213 215
                     break
214 216
                 case 'short':
@@ -252,7 +254,7 @@ export default {
252 254
 @import '../../sss/theme.sss'
253 255
 aside.sidebar
254 256
     /* need to solve for mobile as the sticky creates scroll issues */
255
-    position: sticky
257
+    /* position: sticky */
256 258
     top: 40px
257 259
     width: 100%
258 260
     font-size: x-small

+ 2
- 1
vue-theme/src/pages/list.vue ファイルの表示

@@ -1,7 +1,6 @@
1 1
 <template lang="pug">
2 2
 .page--list.f-col.between
3 3
     article.f-grow
4
-
5 4
         header.center.t-up
6 5
             .title.f-row
7 6
                 h3(v-if="!isSearch && !hasSubtype") {{ type }}s&nbsp;
@@ -361,6 +360,8 @@ export default {
361 360
                     font-size: 1.3em
362 361
                     > p
363 362
                         margin: 0
363
+                .card header 
364
+                    display: none 
364 365
 
365 366
         /* posts in grid list */
366 367
         .posts.is-grid

+ 0
- 16
vue-theme/src/sss/theme.sss ファイルの表示

@@ -44,19 +44,3 @@ $cia_sans: 'Questrial', 'Futura', 'Futura PT', sans-serif
44 44
   font-display: swap
45 45
   src: local('Questrial'), local('Questrial-Regular'), url(https://fonts.gstatic.com/s/questrial/v8/QdVUSTchPBm7nuUeVf70viFl.woff2) format('woff2')
46 46
   unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
47
-
48
-/* latin-ext */
49
-@font-face 
50
-  font-family: 'Questrial'
51
-  font-style: normal
52
-  font-weight: 400
53
-  src: url(https://fonts.gstatic.com/s/questrial/v13/QdVUSTchPBm7nuUeVf70sCFluW44JUcz.woff2) format('woff2')
54
-  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF
55
-
56
-/* latin */
57
-@font-face
58
-  font-family: 'Questrial'
59
-  font-style: normal
60
-  font-weight: 400
61
-  src: url(https://fonts.gstatic.com/s/questrial/v13/QdVUSTchPBm7nuUeVf70viFluW44JQ.woff2) format('woff2')
62
-  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD

+ 1
- 1
vue-theme/src/sss/variables.sss ファイルの表示

@@ -1,6 +1,6 @@
1 1
 @import './_ratios.sss'
2 2
 
3
-$transition: 300ms
3
+$transition: 200ms
4 4
 
5 5
 $min-width: 20em
6 6
 $max-width: 74em

読み込み中…
キャンセル
保存