Browse Source

Align waveform with bottom edge, add margin at the top.

parisminton 8 years ago
parent
commit
0022aba919
2 changed files with 5 additions and 3 deletions
  1. 3 2
      settings/index.js
  2. 2 1
      settings/themes.json

+ 3 - 2
settings/index.js View File

@@ -17,10 +17,11 @@
17 17
 */
18 18
 
19 19
 var path = require("path");
20
+var env = process.env.NODE_ENV || "development";
20 21
 
21 22
 module.exports = {
22 23
   workingDirectory: path.join(__dirname, "..", "tmp"),
23
-  storagePath: "applications/audiogram/media",
24
+  storagePath: (env === "development") ? path.join(__dirname, "..", "media") : "applications/audiogram/media",
24 25
   s3Bucket: process.env.S3_BUCKETS_NAME,
25 26
   fonts: [
26 27
     { family: "NYT Franklin", file: path.join(__dirname, "fonts", "nyt-franklin-500-normal.woff") },
@@ -32,5 +33,5 @@ module.exports = {
32 33
     { family: "Source Sans Pro", file: path.join(__dirname, "fonts", "SourceSansPro-BoldItalic.ttf"), weight: "bold", style: "italic" }
33 34
   ],
34 35
   redisHost: process.env.REDIS_URI,
35
-  worker: true
36
+  worker: (env === "development") ? true : false
36 37
 };

+ 2 - 1
settings/themes.json View File

@@ -21,10 +21,11 @@
21 21
     "pattern": "halfbars",
22 22
     "waveLeft": 20,
23 23
     "waveColor": "#d9d9d9",
24
+    "waveBottom": 520,
24 25
     "foregroundColor": "#000",
25 26
     "captionFont": "300 44px 'NYT Franklin'",
26 27
     "captionAlign": "left",
27
-    "captionTop": 100,
28
+    "captionTop": 70,
28 29
     "captionLeft": 70,
29 30
     "captionRight": 760,
30 31
     "backgroundImage": "t_logo_light.png"