shiveshnavin commited on
Commit
c1d1210
·
1 Parent(s): 8b8dd8c

Add more params

Browse files
package.json CHANGED
@@ -18,7 +18,7 @@
18
  "render-still": "remotion still --image-format=jpeg SemibitCompositionPoster ",
19
  "render-image": "remotion still --image-format=jpeg --concurrency 4 $npm_config_composition $npm_config_output",
20
  "render-images": "remotion render --enable-multiprocess-on-linux --sequence --image-format=jpeg $npm_config_composition $npm_config_output",
21
- "paperdrive:pdf": "rm out/* && npm run render-images PaperDriveComposition ./out && node ./scripts/img2pdf.js -w 612 -h 792 -o out/pages.pdf && npm run render-image --composition=PaperDriveHorizontalCoverComposition --output=out/cover.jpeg && node ./scripts/img2pdf.js -i out/cover.jpeg -w 1258.9006153846171 -h 810 -o out/cover.pdf && rm out/*.jpeg",
22
  "img2pdf": "node ./scripts/img2pdf.js",
23
  "upgrade": "remotion upgrade",
24
  "postinstall": "cd node_modules/common-utils && npm run build && cd ../../ && node ffmpeg-fix.js",
@@ -93,4 +93,4 @@
93
  "devDependencies": {
94
  "@types/lodash": "^4.14.199"
95
  }
96
- }
 
18
  "render-still": "remotion still --image-format=jpeg SemibitCompositionPoster ",
19
  "render-image": "remotion still --image-format=jpeg --concurrency 4 $npm_config_composition $npm_config_output",
20
  "render-images": "remotion render --enable-multiprocess-on-linux --sequence --image-format=jpeg $npm_config_composition $npm_config_output",
21
+ "paperdrive:pdf": " npm run render-images PaperDriveComposition ./out && node ./scripts/img2pdf.js -w 437 -h 651 -o out/pages.pdf && npm run render-image --composition=PaperDriveHorizontalCoverComposition --output=out/cover.jpeg && node ./scripts/img2pdf.js -i out/cover.jpeg -w 1258.9006153846171 -h 810 -o out/cover.pdf && rm out/*.jpeg",
22
  "img2pdf": "node ./scripts/img2pdf.js",
23
  "upgrade": "remotion upgrade",
24
  "postinstall": "cd node_modules/common-utils && npm run build && cd ../../ && node ffmpeg-fix.js",
 
93
  "devDependencies": {
94
  "@types/lodash": "^4.14.199"
95
  }
96
+ }
src/paperdrive/PaperDriveIndex.tsx CHANGED
@@ -21,6 +21,8 @@ export function PaperDriveIndex({ transcript }: { transcript: Transcript }) {
21
  background: extras?.backgroundColor ?? 'white',
22
  paddingTop: extras?.marginTop ?? '10vh',
23
  paddingBottom: extras?.marginBottom ?? '10vh',
 
 
24
  }}>
25
  <h1 style={{
26
  padding: '20px',
 
21
  background: extras?.backgroundColor ?? 'white',
22
  paddingTop: extras?.marginTop ?? '10vh',
23
  paddingBottom: extras?.marginBottom ?? '10vh',
24
+ paddingRight: extras?.marginRight ?? '10vh',
25
+ paddingLeft: extras?.marginLeft ?? '10vh',
26
  }}>
27
  <h1 style={{
28
  padding: '20px',
src/paperdrive/PaperDrivePage.tsx CHANGED
@@ -60,7 +60,8 @@ export function PaperDrivePage({ transcript }: { transcript: Transcript }) {
60
  position: 'relative',
61
  padding: '20px',
62
  backgroundImage: `linear-gradient(to bottom, transparent 94%, ${extras?.lineColor} 94%)`,
63
- backgroundSize: '100% 30px'
 
64
  }}>
65
  </AbsoluteFill>
66
  )
 
60
  position: 'relative',
61
  padding: '20px',
62
  backgroundImage: `linear-gradient(to bottom, transparent 94%, ${extras?.lineColor} 94%)`,
63
+ backgroundSize: '100% 30px',
64
+ ...extras?.lineStyle
65
  }}>
66
  </AbsoluteFill>
67
  )
src/paperdrive/types/index.ts CHANGED
@@ -1,6 +1,7 @@
1
  import { CSSProperties } from "react";
2
 
3
  export type PaperDrivePageExtras = {
 
4
  backgroundColor?: string;
5
  backgroundImage?: string;
6
  marginBottom: string;
 
1
  import { CSSProperties } from "react";
2
 
3
  export type PaperDrivePageExtras = {
4
+ lineStyle: CSSProperties | undefined;
5
  backgroundColor?: string;
6
  backgroundImage?: string;
7
  marginBottom: string;