shiveshnavin commited on
Commit
bfd3e28
·
1 Parent(s): 9f61c10
app.js CHANGED
@@ -428,6 +428,10 @@ fs.writeFileSync(indexFile, fs.readFileSync(indexFile).toString().replace("___OR
428
  module.exports = app
429
 
430
  // doRender()
431
- // let manuFile = path.join(__dirname, 'public/original_manuscript.json')
432
- // let manuObj: OriginalManuscript = JSON.parse(fs.readFileSync(manuFile).toString())
433
- // modifyFiles(manuObj)
 
 
 
 
 
428
  module.exports = app
429
 
430
  // doRender()
431
+
432
+ if (process.env.MODIFY_FILES) {
433
+ let manuFile = path.join(__dirname, 'public/original_manuscript.json')
434
+ let manuObj = JSON.parse(fs.readFileSync(manuFile).toString())
435
+ modifyFiles(manuObj)
436
+ console.log('Sequence Generated')
437
+ }
src/style.css CHANGED
@@ -10,6 +10,13 @@
10
  /* Standard */
11
  }
12
 
 
 
 
 
 
 
 
13
  .text-white-fill {
14
  -webkit-text-fill-color: white;
15
  /* WebKit browsers (Safari, Chrome) */
 
10
  /* Standard */
11
  }
12
 
13
+ .text-black-stroke-large {
14
+ -webkit-text-stroke: 3px black;
15
+ /* WebKit browsers (Safari, Chrome) */
16
+ text-stroke: 3px black;
17
+ /* Standard */
18
+ }
19
+
20
  .text-white-fill {
21
  -webkit-text-fill-color: white;
22
  /* WebKit browsers (Safari, Chrome) */
src/textWithBgImage/ForegroundGrid.tsx CHANGED
@@ -52,7 +52,7 @@ function ForegroundGrid(props) {
52
  fontSize: '5em',
53
  fontFamily: fontFamilyKalam,
54
  }}
55
- className={`text-bold text-white text-5xl text-${direction} p-8 bg-opacity-100 rounded-lg text-black-stroke text-red-fill`} >{title}</p>
56
  }
57
  return (
58
  <Animated
 
52
  fontSize: '5em',
53
  fontFamily: fontFamilyKalam,
54
  }}
55
+ className={`text-bold text-white text-5xl text-${direction} p-8 bg-opacity-100 rounded-lg text-black-stroke-large text-red-fill`} >{title}</p>
56
  }
57
  return (
58
  <Animated
src/textWithBgImage/SectionTextWithBG.tsx CHANGED
@@ -136,7 +136,7 @@ export const SectionTextWithBG: React.FC<SequentialSceneData> = (props) => {
136
  >
137
  {curSentence.text?.length > 0 && <span
138
  key={curSentence.text}
139
- className='tracking-wide text-black-stroke text-red-fill'
140
  style={{
141
  // backgroundColor: textBgColor, borderRadius: 10, overflow: 'hidden',
142
 
 
136
  >
137
  {curSentence.text?.length > 0 && <span
138
  key={curSentence.text}
139
+ className='text-3xl tracking-wide text-black-stroke text-red-fill'
140
  style={{
141
  // backgroundColor: textBgColor, borderRadius: 10, overflow: 'hidden',
142
 
src/textWithBgImage/SemibitComposition.tsx CHANGED
@@ -58,7 +58,7 @@ export const SemibitComposition: React.FC = () => {
58
 
59
  let contents: SequentialSceneData[] =
60
  Script.transcript
61
- .slice(0, 2)
62
  .map((section) => {
63
  var { text, duration, offset, imageAbsPaths, audioFullPath } = section
64
  if (!duration)
 
58
 
59
  let contents: SequentialSceneData[] =
60
  Script.transcript
61
+ // .slice(0, 2)
62
  .map((section) => {
63
  var { text, duration, offset, imageAbsPaths, audioFullPath } = section
64
  if (!duration)
src/textWithBgImage/SequentialScene.orig.tsx CHANGED
@@ -42,7 +42,7 @@ function getTransitionScene(scriptItem) {
42
  >
43
  <div className='flex items-center justify-center h-screen' style={{ padding: 10, height: '100%', width: '100%' }} >
44
 
45
- <p className={`flex items-center justify-center h-screen text-white text-9xl text-center p-8 font-bold rounded-lg text-black-stroke text-red-fill`} style={{
46
  fontFamily: fontFamily
47
  }}>{title}</p>
48
 
 
42
  >
43
  <div className='flex items-center justify-center h-screen' style={{ padding: 10, height: '100%', width: '100%' }} >
44
 
45
+ <p className={`flex items-center justify-center h-screen text-white text-9xl text-center p-8 font-bold rounded-lg text-black-stroke-large text-red-fill`} style={{
46
  fontFamily: fontFamily
47
  }}>{title}</p>
48
 
src/textWithBgImage/SequentialScene.tsx CHANGED
@@ -42,7 +42,7 @@ function getTransitionScene(scriptItem) {
42
  >
43
  <div className='flex items-center justify-center h-screen' style={{ padding: 10, height: '100%', width: '100%' }} >
44
 
45
- <p className={`flex items-center justify-center h-screen text-white text-9xl text-center p-8 font-bold rounded-lg text-black-stroke text-red-fill`} style={{
46
  fontFamily: fontFamily
47
  }}>{title}</p>
48
 
@@ -93,20 +93,20 @@ export const SequentialScene: React.FC = (
93
  }
94
 
95
 
96
-
97
- {getScene(contents[0])}
98
 
99
- {getTransitionScene(contents[1])}
100
 
101
- {getScene(contents[1])}
102
 
103
- {getTransitionScene(contents[2])}
104
 
105
- {getScene(contents[2])}
106
 
107
- {getTransitionScene(contents[3])}
108
 
109
- {getScene(contents[3])}
 
 
110
 
111
 
112
 
 
42
  >
43
  <div className='flex items-center justify-center h-screen' style={{ padding: 10, height: '100%', width: '100%' }} >
44
 
45
+ <p className={`flex items-center justify-center h-screen text-white text-9xl text-center p-8 font-bold rounded-lg text-black-stroke-large text-red-fill`} style={{
46
  fontFamily: fontFamily
47
  }}>{title}</p>
48
 
 
93
  }
94
 
95
 
 
 
96
 
97
+ {getScene(contents[0])}
98
 
99
+ {getTransitionScene(contents[1])}
100
 
101
+ {getScene(contents[1])}
102
 
103
+ {getTransitionScene(contents[2])}
104
 
105
+ {getScene(contents[2])}
106
 
107
+ {getTransitionScene(contents[3])}
108
+
109
+ {getScene(contents[3])}
110
 
111
 
112