浏览代码

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

tags/1.0.3
Alej 2 年前
父节点
当前提交
93955f7a82
共有 3 个文件被更改,包括 90 次插入68 次删除
  1. 88
    66
      vue-theme/src/components/footer.vue
  2. 1
    1
      vue-theme/src/components/sidebars/events.vue
  3. 1
    1
      vue-theme/src/sss/_reset.sss

+ 88
- 66
vue-theme/src/components/footer.vue 查看文件

@@ -1,53 +1,49 @@
1 1
 <template lang="pug">
2 2
 .footer-wrapper.t-up.t-sans
3 3
     footer.main.w-max.f-row.between
4
-        ul.f-col
4
+        ul.f-col.t-cntr
5 5
             //- address contact   
6 6
             li
7 7
                 h4 Craft in America
8
-                ul
9
-                    li 8415 W. Third St.
10
-                    li Los Angeles, CA 90048
11
-                    li Tues–Sat, 12PM–6PM
12
-                    li (310) 659-9022 office
13
-                    li (323) 951-0610 center
14
-                    li
15
-                        router-link(to="mailto:info@craftinamerica.org") info@craftinamerica.org
8
+                    ul
9
+                        h5
10
+                            li 8415 W. Third St.
11
+                            li Los Angeles, CA 90048
12
+                            li Tues–Sat, 12PM–6PM
13
+                            li (310) 659-9022 office
14
+                            li (323) 951-0610 center
15
+                            li
16
+                                router-link(to="mailto:info@craftinamerica.org") info@craftinamerica.org
16 17
             //- social media   
17 18
             li
18 19
                 h4 Connect with Us
20
+                <br>
19 21
                 ul.f-row
20 22
                     li
21
-                        h3 
22
-                            a(href="https://www.facebook.com/CraftinAmerica")
23
-                                //- img(src="../assets/facebook-brands.svg")
24
-                                //- replace with respective icon 
25
-                                svg(aria-hidden="true" focusable="false" data-prefix="fab" data-icon="facebook" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512")
26
-                                    path(fill="currentColor" d="M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z")
27
-                    li
28
-                        h3 
29
-                            a(href="http://www.youtube.com/user/craftinamerica")
30
-                                //- img(src="../star.svg")
31
-                                //- replace with respective icon 
32
-                                svg(aria-hidden="true" focusable="false" data-prefix="fab" data-icon="youtube" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512")
33
-                                    path(fill="currentColor" d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z")
34
-                    li
35
-                        h3 
36
-                            a(href="http://www.instagram.com/craftinamerica")
37
-                                //- img(src="../star.svg")
38
-                                //- replace with respective icon 
39
-                                svg(aria-hidden="true" focusable="false" data-prefix="fab" data-icon="instagram" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512")
40
-                                    path(fill="currentColor" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z")
41
-                    li
42
-                        h3 
43
-                            a(href="https://twitter.com/CraftinAmerica")
44
-                                //- img(src="../star.svg")
45
-                                //- replace with respective icon                 
46
-                                svg(aria-hidden="true" focusable="false" data-prefix="fab" data-icon="twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400")
47
-                                    path(fill="currentColor" d="M400,200c0,110.5-89.5,200-200,200S0,310.5,0,200S89.5,0,200,0S400,89.5,400,200z M163.4,305.5 c88.7,0,137.2-73.5,137.2-137.2c0-2.1,0-4.2-0.1-6.2c9.4-6.8,17.6-15.3,24.1-25c-8.6,3.8-17.9,6.4-27.7,7.6 c10-6,17.6-15.4,21.2-26.7c-9.3,5.5-19.6,9.5-30.6,11.7c-8.8-9.4-21.3-15.2-35.2-15.2c-26.6,0-48.2,21.6-48.2,48.2 c0,3.8,0.4,7.5,1.3,11c-40.1-2-75.6-21.2-99.4-50.4c-4.1,7.1-6.5,15.4-6.5,24.2c0,16.7,8.5,31.5,21.5,40.1c-7.9-0.2-15.3-2.4-21.8-6 c0,0.2,0,0.4,0,0.6c0,23.4,16.6,42.8,38.7,47.3c-4,1.1-8.3,1.7-12.7,1.7c-3.1,0-6.1-0.3-9.1-0.9c6.1,19.2,23.9,33.1,45,33.5 c-16.5,12.9-37.3,20.6-59.9,20.6c-3.9,0-7.7-0.2-11.5-0.7C110.8,297.5,136.2,305.5,163.4,305.5")
48
-            li
49
-                h5
50
-                    a(href="https://visitor.r20.constantcontact.com/d.jsp?llr=fyb4y9cab&p=oi&m=fyb4y9cab&sit=olvymhdeb&f=ee3616e1-10de-4a59-b451-1a882111b1f5", target="_blank") Join email list
23
+                        a(href="http://www.youtube.com/user/craftinamerica")
24
+                            svg(aria-hidden="true" focusable="false" data-prefix="fab" data-icon="youtube" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512")
25
+                                path(fill="currentColor" d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z")
26
+                    li 
27
+                        a(href="https://www.facebook.com/CraftinAmerica")
28
+                            //- img(src="../assets/facebook-brands.svg")
29
+                            //- replace with respective icon 
30
+                            svg(aria-hidden="true" focusable="false" data-prefix="fab" data-icon="facebook" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512")
31
+                                path(fill="currentColor" d="M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z")
32
+                    li 
33
+                        a(href="http://www.instagram.com/craftinamerica")
34
+                            svg(aria-hidden="true" focusable="false" data-prefix="fab" data-icon="instagram" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512")
35
+                                path(fill="currentColor" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z")
36
+                    li 
37
+                        a(href="https://twitter.com/CraftinAmerica")
38
+                            svg(aria-hidden="true" focusable="false" data-prefix="fab" data-icon="twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400")
39
+                                path(fill="currentColor" d="M400,200c0,110.5-89.5,200-200,200S0,310.5,0,200S89.5,0,200,0S400,89.5,400,200z M163.4,305.5 c88.7,0,137.2-73.5,137.2-137.2c0-2.1,0-4.2-0.1-6.2c9.4-6.8,17.6-15.3,24.1-25c-8.6,3.8-17.9,6.4-27.7,7.6 c10-6,17.6-15.4,21.2-26.7c-9.3,5.5-19.6,9.5-30.6,11.7c-8.8-9.4-21.3-15.2-35.2-15.2c-26.6,0-48.2,21.6-48.2,48.2 c0,3.8,0.4,7.5,1.3,11c-40.1-2-75.6-21.2-99.4-50.4c-4.1,7.1-6.5,15.4-6.5,24.2c0,16.7,8.5,31.5,21.5,40.1c-7.9-0.2-15.3-2.4-21.8-6 c0,0.2,0,0.4,0,0.6c0,23.4,16.6,42.8,38.7,47.3c-4,1.1-8.3,1.7-12.7,1.7c-3.1,0-6.1-0.3-9.1-0.9c6.1,19.2,23.9,33.1,45,33.5 c-16.5,12.9-37.3,20.6-59.9,20.6c-3.9,0-7.7-0.2-11.5-0.7C110.8,297.5,136.2,305.5,163.4,305.5")
40
+                    li 
41
+                        a(href="https://www.tiktok.com/@craft_in_america")                                
42
+                            svg(aria-hidden="true" focusable="false" data-prefix="fab" data-icon="tiktok" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3333 3333" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" image-rendering="optimizeQuality" fill-rule="evenodd" clip-rule="evenodd")
43
+                                path(fill="currentColor" d="M1667 0c920 0 1667 746 1667 1667 0 920-746 1667-1667 1667C747 3334 0 2588 0 1667 0 747 746 0 1667 0zm361 744c31 262 177 418 430 434v294c-147 14-276-34-426-124v550c0 700-763 918-1069 417-197-322-76-889 556-911v311c-48 8-99 20-146 36-141 47-220 137-198 294 43 301 595 390 549-198V745h305z")
44
+                li
45
+                    <br>
46
+                        a(href="https://visitor.r20.constantcontact.com/d.jsp?llr=fyb4y9cab&p=oi&m=fyb4y9cab&sit=olvymhdeb&f=ee3616e1-10de-4a59-b451-1a882111b1f5", target="_blank") Join our email list
51 47
                             
52 48
         //- menu links
53 49
         ul.f-col
@@ -76,29 +72,53 @@
76 72
                         li
77 73
                             router-link(to="/exhibition/sorted/by-current-and-upcoming") &nbsp; Current/Upcoming
78 74
                         li
79
-                            router-link(to="/object") &nbsp; Explore Craft Objects
75
+                            router-link(to="/exhibition/sorted/by-past") &nbsp; Past
80 76
             li
81 77
                 h5
82 78
                     router-link(to="/page/center") Center 
83 79
                     ul.f-col
84 80
                         li
85 81
                             router-link(to="/page/center") &nbsp; Info
86
-                        li
87
-                            router-link(to="/exhibition/sorted/by-current-and-upcoming") &nbsp; Exhibitions
88 82
                         li 
89 83
                             router-link(to="/event/sorted/by-current-and-upcoming") &nbsp; Events 
90 84
                         li
91 85
                             router-link(to="/event?type=talks") &nbsp; Talks &amp; Interviews
86
+                        li 
87
+                            router-link(to="/page/library") &nbsp; Library 
92 88
             li
93 89
                 h5
94 90
                     router-link(to="/guide") Education 
95 91
                     ul.f-col
96 92
                         li
97 93
                             router-link(to="/guide") &nbsp; Guides 
98
-                        li 
94
+                        li
95
+                            router-link(to="/page/video-resources-for-educators") &nbsp; Video Resources 
96
+                        li
97
+                            router-link(to="/page/craft-in-schools") &nbsp; Craft in Schools  
98
+            li
99
+                h5    
100
+                    router-link(to="/page/artists-resources") Resources
101
+                    ul.f-col  
102
+                        li
99 103
                             router-link(to="/publication") &nbsp; Publications 
100
-                        li 
101
-                            router-link(to="/page/library") &nbsp; Library 
104
+                        li
105
+                            router-link(to="/object") &nbsp; Explore Craft Objects
106
+                        li
107
+                            router-link(to="/page/artists-resources") &nbsp; Opportunities
108
+                        li
109
+                            router-link(to="/artist/sorted/by-type") &nbsp; Organizations and Institutions 
110
+                        li
111
+                            router-link(to="/page/craft-resources-map") &nbsp; Craft Resources Map 
112
+                        li
113
+                            router-link(to="/page/community-craft-calendar") &nbsp; Community Craft Calendar 
114
+            li
115
+                h5    
116
+                    router-link(to="/page/donate") Support
117
+                    ul.f-col  
118
+                        li
119
+                            router-link(to="/page/donate") &nbsp; Donate
120
+                        li
121
+                            router-link(to="/page/shop") &nbsp; Shop 
102 122
             li
103 123
                 h5
104 124
                     router-link(to="/blog") News 
@@ -125,7 +145,7 @@
125 145
                             router-link(to="/page/contact") &nbsp; Contact   
126 146
 
127 147
     .sub-footer.f-col.start
128
-        h6 Craft in America &copy; 2010&ndash;{{ today }} 
148
+        h6 Craft in America &copy; 2010 &ndash; {{ today }} 
129 149
         //- actually the bottom of the page
130 150
 
131 151
 </template>
@@ -156,8 +176,6 @@ export default {
156 176
         min-width: $min-width
157 177
         // ALL <ul> tags
158 178
         ul
159
-            list-style: none
160
-            /* width: 100% */
161 179
             > li
162 180
                 width: 100%
163 181
         // OUTER <ul> tags
@@ -168,10 +186,10 @@ export default {
168 186
             > li
169 187
                 color: $cia_white
170 188
                 padding: 0 0 $ms--6
171
-                h4
172
-                    margin: $ms-0 0 $ms--3
189
+                h4            
190
+                    margin: $ms-0 0 $ms--3 
173 191
                 h5 
174
-                    font-size: 0.85em 
192
+                    font-size: 0.77em 
175 193
                     /* margin: $ms-0 0 $ms--1 */
176 194
                     margin: $ms-0 0 0
177 195
                 a, a:link, a:visited
@@ -190,7 +208,7 @@ export default {
190 208
                         padding: 0 0 $ms--5
191 209
                 svg 
192 210
                     height: 1.5em
193
-
211
+                    padding: 0 $ms--5
194 212
 
195 213
     .sub-footer
196 214
         background-color: #820000
@@ -199,38 +217,45 @@ export default {
199 217
             font-size: $ms--2
200 218
             color: $cia_grey
201 219
             margin: 0
202
-    /* 768px */
203
-    @media (min-width: $medium)
220
+
221
+    /* <768px */
222
+    @media (min-width: 640px)
204 223
         footer.main > ul
205 224
             flex-wrap: wrap
206
-            /* background-color: darkgreen */
207
-            background-color: $cia_red
208 225
             &:nth-child(n+2)
209 226
                 align-items: flex-start
210 227
                 flex-direction: row
211 228
                 > li
212 229
                     width: 32%
213 230
                     h5 
214
-                        font-size: 0.95em 
215
-    /* 960px */
231
+                        font-size: 0.8em 
232
+    /* <768px */
233
+    @media (min-width: $medium)
234
+        footer.main > ul
235
+            flex-wrap: wrap
236
+            &:nth-child(n+2)
237
+                align-items: flex-start
238
+                flex-direction: row
239
+                > li
240
+                    width: 32%
241
+    /* <960px */
216 242
     @media (min-width: $large)
217 243
         footer.main > ul
218 244
             flex-wrap: wrap
219
-            /* background-color: purple */
220
-            background-color: $cia_red
221 245
             &:nth-child(n+2)
222 246
                 > li
223 247
                     /* width: 33% */
224
-    /* 1080px */
248
+    /* <1080px */
225 249
     @media (min-width: $extra-large)
226 250
         footer.main > ul
227 251
             flex-wrap: wrap
228
-            /* background-color: rebeccapurple */
229
-            background-color: $cia_red
230 252
             &:nth-child(n+2)
231 253
                 /* margin: 0 0 $ms-2 0 */
232 254
                 > li
233 255
                     /* width: 43% */
256
+                    h5 
257
+                        font-size: 0.95em 
258
+
234 259
     /* 1200px */
235 260
     @media (min-width: $huge)
236 261
         footer.main 
@@ -238,7 +263,4 @@ export default {
238 263
             margin: 0 auto
239 264
             > ul
240 265
                 flex-wrap: wrap
241
-                /* background-color: orange */
242
-                background-color: $cia_red
243
-
244 266
 </style>

+ 1
- 1
vue-theme/src/components/sidebars/events.vue 查看文件

@@ -7,7 +7,7 @@ ul.t-up
7 7
             featured-image(:post="post", thumbsize="'standard'")
8 8
         router-link(:to="`/event/${post.slug}`")
9 9
             p.t-up {{ post.title }}
10
-        p.date  {{ dateFrom(post.start, true) }} &ndash; {{ dateFrom(post.end, true).split(',')[1] }}
10
+        p.date {{ dateFrom(post.start, true) }} &ndash; {{ dateFrom(post.end, true).split(',')[1] }}
11 11
 </template>
12 12
 
13 13
 <script>

+ 1
- 1
vue-theme/src/sss/_reset.sss 查看文件

@@ -28,7 +28,7 @@ body
28 28
     font-family: Helvetica, Arial, sans-serif
29 29
 
30 30
 /* Remove list-style in navigation tags */
31
-nav
31
+nav, footer
32 32
     ol, ul
33 33
         list-style: none
34 34
 

正在加载...
取消
保存