Browse Source

Add typefaces, T logo background.

parisminton 8 years ago
parent
commit
5225c915f9

+ 1 - 1
renderer/patterns.js View File

82
     var baseline = options.waveTop + waveHeight / 2;
82
     var baseline = options.waveTop + waveHeight / 2;
83
 
83
 
84
     var barX = d3.scaleBand()
84
     var barX = d3.scaleBand()
85
-      .paddingInner(0.5)
85
+      .paddingInner(0.25)
86
       .paddingOuter(0.01)
86
       .paddingOuter(0.01)
87
       .domain(d3.range(data.length))
87
       .domain(d3.range(data.length))
88
       .rangeRound([options.waveLeft, options.waveRight]);
88
       .rangeRound([options.waveLeft, options.waveRight]);

BIN
settings/backgrounds/t_logo_light.png View File


BIN
settings/fonts/nyt-franklin-500-normal.woff View File


BIN
settings/fonts/nyt-franklin-700-normal.woff View File


+ 2 - 0
settings/index.js View File

23
   storagePath: "applications/audiogram/media",
23
   storagePath: "applications/audiogram/media",
24
   s3Bucket: process.env.S3_BUCKETS_NAME,
24
   s3Bucket: process.env.S3_BUCKETS_NAME,
25
   fonts: [
25
   fonts: [
26
+    { family: "NYT Franklin", file: path.join(__dirname, "fonts", "nyt-franklin-500-normal.woff") },
27
+    { family: "NYT Franklin Bold", file: path.join(__dirname, "fonts", "nyt-franklin-700-normal.woff") },
26
     { family: "Source Sans Pro", file: path.join(__dirname, "fonts", "SourceSansPro-Regular.ttf") },
28
     { family: "Source Sans Pro", file: path.join(__dirname, "fonts", "SourceSansPro-Regular.ttf") },
27
     { family: "Source Sans Pro", file: path.join(__dirname, "fonts", "SourceSansPro-Light.ttf"), weight: 300 },
29
     { family: "Source Sans Pro", file: path.join(__dirname, "fonts", "SourceSansPro-Light.ttf"), weight: 300 },
28
     { family: "Source Sans Pro", file: path.join(__dirname, "fonts", "SourceSansPro-Bold.ttf"), weight: "bold" },
30
     { family: "Source Sans Pro", file: path.join(__dirname, "fonts", "SourceSansPro-Bold.ttf"), weight: "bold" },

+ 8 - 3
settings/themes.json View File

16
     "captionRight": 1080
16
     "captionRight": 1080
17
   },
17
   },
18
   "NYT Light": {
18
   "NYT Light": {
19
+    "width": 1280,
20
+    "height": 320,
19
     "pattern": "halfbars",
21
     "pattern": "halfbars",
20
-    "waveTop": 500,
21
-    "waveBottom": 720,
22
+    "waveLeft": 20,
22
     "waveColor": "#d9d9d9",
23
     "waveColor": "#d9d9d9",
23
     "foregroundColor": "#000",
24
     "foregroundColor": "#000",
25
+    "captionFont": "300 44px 'NYT Franklin'",
26
+    "captionAlign": "left",
24
     "captionTop": 100,
27
     "captionTop": 100,
25
-    "captionLeft": 0
28
+    "captionLeft": 70,
29
+    "captionRight": 760,
30
+    "backgroundImage": "t_logo_light.png"
26
   },
31
   },
27
   "Basic": {
32
   "Basic": {
28
     "backgroundColor": "#eee",
33
     "backgroundColor": "#eee",