Selaa lähdekoodia

Add typefaces, T logo background.

parisminton 8 vuotta sitten
vanhempi
commit
5225c915f9

+ 1 - 1
renderer/patterns.js Näytä tiedosto

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

BIN
settings/backgrounds/t_logo_light.png Näytä tiedosto


BIN
settings/fonts/nyt-franklin-500-normal.woff Näytä tiedosto


BIN
settings/fonts/nyt-franklin-700-normal.woff Näytä tiedosto


+ 2 - 0
settings/index.js Näytä tiedosto

@@ -23,6 +23,8 @@ module.exports = {
23 23
   storagePath: "applications/audiogram/media",
24 24
   s3Bucket: process.env.S3_BUCKETS_NAME,
25 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 28
     { family: "Source Sans Pro", file: path.join(__dirname, "fonts", "SourceSansPro-Regular.ttf") },
27 29
     { family: "Source Sans Pro", file: path.join(__dirname, "fonts", "SourceSansPro-Light.ttf"), weight: 300 },
28 30
     { family: "Source Sans Pro", file: path.join(__dirname, "fonts", "SourceSansPro-Bold.ttf"), weight: "bold" },

+ 8 - 3
settings/themes.json Näytä tiedosto

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