From 85b25d1b0474ef87438f01b14a55f00cd52b4d84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Landure=CC=81?= Date: Mon, 14 Oct 2024 13:19:37 +0200 Subject: [PATCH] :bug: :green_heart: fix bugs and deploy! --- .../components/scary-elevator-remotion.tsx | 2 +- .../devfestNantes/DevfestNantesDefaultTotem.tsx | 15 ++------------- .../devfestNantes/DevfestNantesDirection.tsx | 3 +-- .../devfestNantes/DevfestNantesDirectionTotem.tsx | 4 +--- .../devfestNantes/DevfestNantesEcranPlats.tsx | 3 +-- .../devfestNantes/DevfestNantesGrandEcran.tsx | 2 +- .../devfestNantes/DevfestNantesLoopTotem.tsx | 4 ++-- .../devfestNantes/DevfestNantesPhraseTotem.tsx | 2 -- .../showcases/devfestNantes/DevfestNantesTalk.tsx | 2 +- .../showcases/devfestNantes/GhostBackground.tsx | 2 +- .../showcases/devfestNantes/TalkTitle.tsx | 1 - src/remotion/types/defaultProps.types.ts | 6 +----- src/utils/loadFont.ts | 4 ---- 13 files changed, 12 insertions(+), 38 deletions(-) diff --git a/src/remotion/components/scary-elevator-remotion.tsx b/src/remotion/components/scary-elevator-remotion.tsx index 881e755..b13ed2a 100644 --- a/src/remotion/components/scary-elevator-remotion.tsx +++ b/src/remotion/components/scary-elevator-remotion.tsx @@ -20,7 +20,7 @@ export const ScaryElevatorRemotion: typeof DefaultRemotion = (props) => { // } // }, []) return <> -
sound.play()}>
+
sound.play()}*/>
} \ No newline at end of file diff --git a/src/remotion/compositions/showcases/devfestNantes/DevfestNantesDefaultTotem.tsx b/src/remotion/compositions/showcases/devfestNantes/DevfestNantesDefaultTotem.tsx index cf78f3c..269c89b 100644 --- a/src/remotion/compositions/showcases/devfestNantes/DevfestNantesDefaultTotem.tsx +++ b/src/remotion/compositions/showcases/devfestNantes/DevfestNantesDefaultTotem.tsx @@ -1,9 +1,5 @@ -import React from 'react'; import {loadFont} from '@remotion/google-fonts/CrimsonText'; -import {AbsoluteFill, Img, Sequence, staticFile, - Easing, - interpolate, - useCurrentFrame,} from 'remotion'; +import {AbsoluteFill, Img, Sequence, staticFile} from 'remotion'; import {GhostBackground} from './GhostBackground'; import {Logo} from './Logo'; @@ -13,14 +9,7 @@ import {Trees} from './Trees'; const {fontFamily} = loadFont(); export const DevfestNantesDefaultTotem = () => { - const frame = useCurrentFrame(); - - const SlideDown = interpolate(frame, [300, 330], [0, 1300], { - extrapolateRight: 'clamp', - extrapolateLeft: 'clamp', - easing: Easing.bezier(0.51, -0.75, 0.99, 0.75), - }); - + return ( - + - + { const {durationInFrames} = useVideoConfig(); const frame = useCurrentFrame(); diff --git a/src/remotion/compositions/showcases/devfestNantes/TalkTitle.tsx b/src/remotion/compositions/showcases/devfestNantes/TalkTitle.tsx index c315ba9..cb4f1fc 100644 --- a/src/remotion/compositions/showcases/devfestNantes/TalkTitle.tsx +++ b/src/remotion/compositions/showcases/devfestNantes/TalkTitle.tsx @@ -1,4 +1,3 @@ -import {loadFont} from '@remotion/google-fonts/Creepster'; import {loadLocalFont} from '../../../../../src/utils/loadFont'; import {interpolate, spring, useCurrentFrame, useVideoConfig} from 'remotion'; diff --git a/src/remotion/types/defaultProps.types.ts b/src/remotion/types/defaultProps.types.ts index 05471a8..f7213b1 100644 --- a/src/remotion/types/defaultProps.types.ts +++ b/src/remotion/types/defaultProps.types.ts @@ -5,7 +5,7 @@ export type Speaker = { export type DefaultProps = { title: string; - speakers: Speaker[]; + speakers?: Speaker[]; date?: string; time?: string; location?: string; @@ -14,7 +14,3 @@ export type DefaultProps = { export type ComponentDisplayMode = { isTotemDisplayMode?: boolean; }; - -export const ShowcaseDevfestNantes2024Schema = DefaultProps.extend({ - titleFontSize: z.number().optional(), -}); \ No newline at end of file diff --git a/src/utils/loadFont.ts b/src/utils/loadFont.ts index 5df382b..441df98 100644 --- a/src/utils/loadFont.ts +++ b/src/utils/loadFont.ts @@ -1,9 +1,5 @@ import {continueRender, delayRender, staticFile} from 'remotion'; -type RemotionFont = { - loadFont: () => void; -}; - export function loadLocalFont( fontName: string, fontLocalPath: string,