@@ -11,7 +11,6 @@ import { ANIMATION, COLORS, COMPARISON_COLORS, FONT_SIZES } from "../constants";
1111import { getActiveSegmentAtFrame } from "../../lib/utils/audio-timestamps" ;
1212
1313export const ComparisonGridScene : React . FC < ComparisonGridSceneProps > = ( {
14- narration,
1514 sceneIndex,
1615 durationInFrames,
1716 isVertical = false ,
@@ -43,18 +42,6 @@ export const ComparisonGridScene: React.FC<ComparisonGridSceneProps> = ({
4342 { extrapolateLeft : "clamp" , extrapolateRight : "clamp" } ,
4443 ) ;
4544
46- // --- Narration text fade ---
47- const textOpacity = interpolate (
48- frame ,
49- [
50- 0 ,
51- ANIMATION . fadeIn ,
52- durationInFrames - ANIMATION . fadeOut ,
53- durationInFrames ,
54- ] ,
55- [ 0 , 1 , 1 , 0 ] ,
56- { extrapolateLeft : "clamp" , extrapolateRight : "clamp" } ,
57- ) ;
5845
5946 // --- Active segment (focus/dimming) ---
6047 const activeSegment =
@@ -205,7 +192,7 @@ export const ComparisonGridScene: React.FC<ComparisonGridSceneProps> = ({
205192 style = { {
206193 flex : 1 ,
207194 padding : isVertical ? "16px 20px" : "20px 24px" ,
208- fontSize : fonts . comparisonHeader ,
195+ fontSize : Math . round ( fonts . comparisonHeader * 1.25 ) ,
209196 fontFamily : "sans-serif" ,
210197 fontWeight : 700 ,
211198 color : COMPARISON_COLORS . leftAccent ,
@@ -223,7 +210,7 @@ export const ComparisonGridScene: React.FC<ComparisonGridSceneProps> = ({
223210 style = { {
224211 flex : 1 ,
225212 padding : isVertical ? "16px 20px" : "20px 24px" ,
226- fontSize : fonts . comparisonHeader ,
213+ fontSize : Math . round ( fonts . comparisonHeader * 1.25 ) ,
227214 fontFamily : "sans-serif" ,
228215 fontWeight : 700 ,
229216 color : COMPARISON_COLORS . rightAccent ,
@@ -306,7 +293,7 @@ export const ComparisonGridScene: React.FC<ComparisonGridSceneProps> = ({
306293 style = { {
307294 flex : 1 ,
308295 padding : isVertical ? "14px 20px" : "18px 24px" ,
309- fontSize : fonts . comparisonCell ,
296+ fontSize : Math . round ( fonts . comparisonCell * 1.25 ) ,
310297 fontFamily : "sans-serif" ,
311298 fontWeight : 500 ,
312299 color : COLORS . textWhite ,
@@ -326,7 +313,7 @@ export const ComparisonGridScene: React.FC<ComparisonGridSceneProps> = ({
326313 style = { {
327314 flex : 1 ,
328315 padding : isVertical ? "14px 20px" : "18px 24px" ,
329- fontSize : fonts . comparisonCell ,
316+ fontSize : Math . round ( fonts . comparisonCell * 1.25 ) ,
330317 fontFamily : "sans-serif" ,
331318 fontWeight : 500 ,
332319 color : COLORS . textWhite ,
@@ -343,39 +330,6 @@ export const ComparisonGridScene: React.FC<ComparisonGridSceneProps> = ({
343330 </ div >
344331 </ AbsoluteFill >
345332
346- { /* Layer 3: Narration text overlay (bottom) */ }
347- < AbsoluteFill
348- style = { {
349- justifyContent : "flex-end" ,
350- alignItems : "center" ,
351- padding : isVertical ? "60px 40px" : "80px 120px" ,
352- } }
353- >
354- < div
355- style = { {
356- opacity : textOpacity ,
357- backgroundColor : "rgba(0, 0, 0, 0.6)" ,
358- borderRadius : 16 ,
359- padding : isVertical ? "28px 24px" : "32px 48px" ,
360- maxWidth : isVertical ? "95%" : "80%" ,
361- backdropFilter : "blur(8px)" ,
362- borderLeft : `4px solid ${ COLORS . primary } ` ,
363- } }
364- >
365- < div
366- style = { {
367- fontSize : fonts . narration ,
368- color : COLORS . textWhite ,
369- fontFamily : "sans-serif" ,
370- fontWeight : 500 ,
371- lineHeight : 1.5 ,
372- textAlign : isVertical ? "center" : "left" ,
373- } }
374- >
375- { narration }
376- </ div >
377- </ div >
378- </ AbsoluteFill >
379333
380334 { /* Layer 4: CodingCat.dev watermark */ }
381335 < div
0 commit comments