sfc-utils 1.4.179 → 1.4.180
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/brands.js +207 -205
- package/footer.js +2 -2
- package/package.json +1 -1
package/brands.js
CHANGED
|
@@ -1,220 +1,222 @@
|
|
|
1
|
-
|
|
2
1
|
// Set brand object to override CSS based on this market's styles
|
|
3
|
-
let getBrands = function(market){
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
let getBrands = function (market) {
|
|
3
|
+
// We can add any Hearst global overrides here:
|
|
4
|
+
let defaultObj = {
|
|
5
|
+
styles: {
|
|
6
|
+
"@alert-red": "#d20000",
|
|
7
|
+
// Defaults
|
|
8
|
+
"@hed": '"Lora Bold", Georgia, serif',
|
|
9
|
+
"@hed-alt": '"Lora Regular", Georgia, serif',
|
|
10
|
+
"@serif-book": '"Lora Light", Georgia, serif',
|
|
11
|
+
"@serif-bold": '"Lora Light", Georgia, serif',
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
"@sans": '"Source Sans Pro Light", Helvetica, sans-serif',
|
|
14
|
+
"@sans-light": '"Source Sans Pro Light", Helvetica, sans-serif',
|
|
15
|
+
"@sans-med": '"Source Sans Pro Regular", Helvetica, sans-serif',
|
|
16
|
+
"@sans-book": '"Source Sans Pro Regular", Helvetica, sans-serif',
|
|
17
|
+
"@sans-bold": '"Source Sans Pro Bold", Helvetica, sans-serif',
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
// Icons
|
|
20
|
+
"@sub-icon": `url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="white"><path d="M160 416H96c-17.67 0-32-14.33-32-32V128c0-17.67 14.33-32 32-32h64c17.67 0 32-14.33 32-32S177.7 32 160 32H96C42.98 32 0 74.98 0 128v256c0 53.02 42.98 96 96 96h64c17.67 0 32-14.33 32-32S177.7 416 160 416zM502.6 233.4l-128-128c-12.51-12.51-32.76-12.49-45.25 0c-12.5 12.5-12.5 32.75 0 45.25L402.8 224H192C174.3 224 160 238.3 160 256s14.31 32 32 32h210.8l-73.38 73.38c-12.5 12.5-12.5 32.75 0 45.25s32.75 12.5 45.25 0l128-128C515.1 266.1 515.1 245.9 502.6 233.4z"/></svg>')`,
|
|
21
|
+
},
|
|
22
|
+
attributes: {
|
|
23
|
+
subscribeLink: "https://www.hearst.com/newspapers?projects=true",
|
|
24
|
+
},
|
|
25
|
+
};
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
// Handle market-specific styles here:
|
|
28
|
+
let marketObj = {
|
|
29
|
+
/* San Franicsco Chronicle */
|
|
30
|
+
SFC: {
|
|
31
|
+
styles: {
|
|
32
|
+
"@brand": "#26A0A5",
|
|
33
|
+
"@hed": '"Tiempos Headline Black", Georgia, serif',
|
|
34
|
+
"@hed-alt": '"Tiempos Headline Light", Georgia, serif',
|
|
35
|
+
"@serif-book": '"Tiempos Regular", Georgia, serif',
|
|
36
|
+
"@serif-bold": '"Tiempos Bold", Georgia, serif',
|
|
38
37
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
38
|
+
"@sans": '"National Medium", Helvetica, sans-serif',
|
|
39
|
+
"@sans-light": '"National Light", Helvetica, sans-serif',
|
|
40
|
+
"@sans-med": '"National Medium", Helvetica, sans-serif',
|
|
41
|
+
"@sans-book": '"National Book", Helvetica, sans-serif',
|
|
42
|
+
"@sans-bold": '"National Bold", Helvetica, sans-serif',
|
|
43
|
+
},
|
|
44
|
+
attributes: {
|
|
45
|
+
marketPrefix: "sf",
|
|
46
|
+
siteName: "The San Francisco Chronicle",
|
|
47
|
+
twitter: "sfchronicle",
|
|
48
|
+
gaAccount: "UA-1616916-26",
|
|
49
|
+
subscribeLink: "https://www.sfchronicle.com/subproject",
|
|
50
|
+
},
|
|
51
|
+
},
|
|
53
52
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
53
|
+
/* Houston Chronicle */
|
|
54
|
+
Houston: {
|
|
55
|
+
styles: {
|
|
56
|
+
"@brand": "#ff7500",
|
|
57
|
+
"@hed": '"Marr Sans Condensed Semibold", Georgia, serif',
|
|
58
|
+
"@hed-alt": '"Publico Headline Medium", Georgia, serif',
|
|
59
|
+
"@serif-book": '"Publico Text Roman", Georgia, serif',
|
|
60
|
+
"@serif-bold": '"Publico Text Bold", Georgia, serif',
|
|
62
61
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
62
|
+
"@sans": '"Marr Sans Regular", Helvetica, sans-serif',
|
|
63
|
+
"@sans-light": '"Marr Sans Regular", Helvetica, sans-serif',
|
|
64
|
+
"@sans-med": '"Marr Sans Regular", Helvetica, sans-serif',
|
|
65
|
+
"@sans-book": '"Marr Sans Regular", Helvetica, sans-serif',
|
|
66
|
+
"@sans-bold": '"Marr Sans Semibold", Helvetica, sans-serif',
|
|
67
|
+
},
|
|
68
|
+
attributes: {
|
|
69
|
+
marketPrefix: "hc",
|
|
70
|
+
siteName: "The Houston Chronicle",
|
|
71
|
+
twitter: "HoustonChron",
|
|
72
|
+
invert: true,
|
|
73
|
+
gaAccount: "UA-1616916-24",
|
|
74
|
+
subscribeLink: "https://www.houstonchronicle.com/subproject",
|
|
75
|
+
},
|
|
76
|
+
},
|
|
78
77
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
78
|
+
/* Albany Times Union */
|
|
79
|
+
Albany: {
|
|
80
|
+
styles: {
|
|
81
|
+
"@brand": "#006FBA",
|
|
82
|
+
"@hed": '"ChronicleDispCond-Black", Georgia, serif',
|
|
83
|
+
"@hed-alt": '"ChronicleDispCond-Roman", Georgia, serif',
|
|
84
|
+
"@serif-book": '"ChronicleTextG2-Roman", Georgia, serif',
|
|
85
|
+
"@serif-bold": '"ChronicleTextG2-Bold", Georgia, serif',
|
|
86
|
+
"@base-font-size": "20px",
|
|
88
87
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
88
|
+
"@sans": '"HelveticaNeue-Roman", Helvetica, sans-serif',
|
|
89
|
+
"@sans-light": '"HelveticaNeue-Roman", Helvetica, sans-serif',
|
|
90
|
+
"@sans-med": '"HelveticaNeue-Roman", Helvetica, sans-serif',
|
|
91
|
+
"@sans-book": '"HelveticaNeue-Roman", Helvetica, sans-serif',
|
|
92
|
+
"@sans-bold": '"HelveticaNeue-HeavyCond", Helvetica, sans-serif',
|
|
93
|
+
},
|
|
94
|
+
attributes: {
|
|
95
|
+
marketPrefix: "tu",
|
|
96
|
+
siteName: "Times Union",
|
|
97
|
+
twitter: "timesunion",
|
|
98
|
+
invert: true,
|
|
99
|
+
gaAccount: "UA-1616916-7",
|
|
100
|
+
subscribeLink: "https://www.timesunion.com/subproject",
|
|
101
|
+
},
|
|
102
|
+
},
|
|
104
103
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
104
|
+
/* San Antonio Express News */
|
|
105
|
+
SanAntonio: {
|
|
106
|
+
styles: {
|
|
107
|
+
"@brand": "#ba141a",
|
|
108
|
+
},
|
|
109
|
+
attributes: {
|
|
110
|
+
marketPrefix: "sa",
|
|
111
|
+
siteName: "Express-News",
|
|
112
|
+
twitter: "ExpressNews",
|
|
113
|
+
invert: true,
|
|
114
|
+
gaAccount: "UA-1616916-27",
|
|
115
|
+
subscribeLink: "https://www.expressnews.com/subproject",
|
|
116
|
+
},
|
|
117
|
+
},
|
|
119
118
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
119
|
+
/* Connecticut */
|
|
120
|
+
CT: {
|
|
121
|
+
styles: {
|
|
122
|
+
"@brand": "#1A98FF",
|
|
123
|
+
},
|
|
124
|
+
attributes: {
|
|
125
|
+
marketPrefix: "in",
|
|
126
|
+
siteName: "CTInsider",
|
|
127
|
+
twitter: "insider_ct",
|
|
128
|
+
invert: true,
|
|
129
|
+
gaAccount: "UA-1616916-99",
|
|
130
|
+
subscribeLink: "https://www.ctinsider.com/subproject",
|
|
131
|
+
},
|
|
132
|
+
},
|
|
134
133
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
134
|
+
/* Connecticut */
|
|
135
|
+
Texcom: {
|
|
136
|
+
styles: {
|
|
137
|
+
"@brand": "#900900",
|
|
138
|
+
},
|
|
139
|
+
attributes: {
|
|
140
|
+
marketPrefix: "texcom/mrt",
|
|
141
|
+
siteName: "Midland Reporter-Telegram",
|
|
142
|
+
twitter: "mwtnews",
|
|
143
|
+
invert: true,
|
|
144
|
+
gaAccount: "UA-1616916-99",
|
|
145
|
+
subscribeLink: "/subproject",
|
|
146
|
+
},
|
|
147
|
+
},
|
|
149
148
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
149
|
+
/* Connecticut */
|
|
150
|
+
Midcom: {
|
|
151
|
+
styles: {
|
|
152
|
+
"@brand": "#900900",
|
|
153
|
+
},
|
|
154
|
+
attributes: {
|
|
155
|
+
marketPrefix: "midcom/mid",
|
|
156
|
+
siteName: "Midland Daily News",
|
|
157
|
+
twitter: "MDN",
|
|
158
|
+
invert: true,
|
|
159
|
+
gaAccount: "UA-1616916-99",
|
|
160
|
+
subscribeLink: "/subproject",
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
Conroe: {
|
|
164
|
+
styles: {
|
|
165
|
+
"@brand": "#900900",
|
|
166
|
+
"@brand-secondary": "#189196",
|
|
167
|
+
},
|
|
168
|
+
attributes: {
|
|
169
|
+
marketPrefix: "conroe",
|
|
170
|
+
siteName: "Conroe Courier",
|
|
171
|
+
twitter: "ConroeCourier",
|
|
172
|
+
invert: true,
|
|
173
|
+
gaAccount: "UA-1616916-99",
|
|
174
|
+
subscribeLink: "https://www.yourconroenews.com/subproject",
|
|
175
|
+
sailCustomer: "4a181de0b63a131cf27f8ea9485e5e1c",
|
|
176
|
+
sailSiteName: "the-courier-of-montgomery-county",
|
|
177
|
+
siteId: 68,
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
Seattle: {
|
|
181
|
+
styles: {
|
|
182
|
+
"@brand": "#3F8395",
|
|
183
|
+
"@brand-secondary": "#189196",
|
|
184
|
+
},
|
|
185
|
+
attributes: {
|
|
186
|
+
marketPrefix: "seattle",
|
|
187
|
+
siteName: "Seattle PI",
|
|
188
|
+
twitter: "seattlepi",
|
|
189
|
+
invert: true,
|
|
190
|
+
gaAccount: "UA-1616916-99",
|
|
191
|
+
subscribeLink: "",
|
|
192
|
+
sailCustomer: "da30899589786517b0c0cead37a48b06",
|
|
193
|
+
sailSiteName: "seattle-post-intelligencer",
|
|
194
|
+
siteId: 20,
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
/* Misc */
|
|
198
|
+
TK: {
|
|
199
|
+
styles: {
|
|
200
|
+
"@brand": "#900900",
|
|
201
|
+
},
|
|
202
|
+
attributes: {
|
|
203
|
+
marketPrefix: "tk",
|
|
204
|
+
siteName: "Hearst Digital News",
|
|
205
|
+
twitter: "Hearst",
|
|
206
|
+
invert: true,
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
};
|
|
211
210
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
211
|
+
// Combine global and market styles to return the final object
|
|
212
|
+
let combinedStyles = {
|
|
213
|
+
styles: Object.assign(defaultObj.styles, marketObj[market].styles),
|
|
214
|
+
attributes: Object.assign(
|
|
215
|
+
defaultObj.attributes,
|
|
216
|
+
marketObj[market].attributes
|
|
217
|
+
),
|
|
218
|
+
};
|
|
219
|
+
return combinedStyles;
|
|
220
|
+
};
|
|
219
221
|
|
|
220
|
-
module.exports = { getBrands }
|
|
222
|
+
module.exports = { getBrands };
|
package/footer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
let {
|
|
1
|
+
let { getBrands3 } = require("./brands3");
|
|
2
2
|
|
|
3
3
|
// Handle nav for various markets and include nav options for other links
|
|
4
4
|
let getFooter = function (meta, forceColor) {
|
|
@@ -12,7 +12,7 @@ let getFooter = function (meta, forceColor) {
|
|
|
12
12
|
|
|
13
13
|
let {
|
|
14
14
|
attributes: { marketPrefix, invert },
|
|
15
|
-
} =
|
|
15
|
+
} = getBrands3(meta.PROJECT.MARKET_KEY);
|
|
16
16
|
|
|
17
17
|
// Handle various CT domains
|
|
18
18
|
let eedition = "";
|