-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ first version for 2024 screens with shortvid/remotion 🎉
- Loading branch information
Showing
36 changed files
with
1,271 additions
and
534 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
683 changes: 683 additions & 0 deletions
683
public/images/showcases/devfestNantes/logo-devfest-2024.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion
1
public/images/showcases/devfestNantes/logo-devfest-mgm_transparent.svg
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
src/remotion/compositions/showcases/devfestNantes/Android.tsx
This file was deleted.
Oops, something went wrong.
106 changes: 55 additions & 51 deletions
106
src/remotion/compositions/showcases/devfestNantes/Details.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,64 @@ | ||
import {loadFont} from '@remotion/google-fonts/LeagueSpartan'; | ||
import {loadLocalFont} from '../../../../../src/utils/loadFont'; | ||
import {interpolate, spring, useCurrentFrame, useVideoConfig} from 'remotion'; | ||
|
||
import {TalkDetails} from '../../../design/molecules/TalkDetails'; | ||
import React from "react"; | ||
|
||
const {fontFamily} = loadFont(); | ||
loadLocalFont('HigherJump', 'font/HigherJump.ttf', 'truetype'); | ||
|
||
export const Details: React.FC<{ | ||
date?: string; | ||
time?: string; | ||
location?: string; | ||
isTotemDisplayMode?: boolean; | ||
}> = ({date, time, location, isTotemDisplayMode}) => { | ||
const frame = useCurrentFrame(); | ||
const {fps} = useVideoConfig(); | ||
date?: string; | ||
time?: string; | ||
location?: string; | ||
style?: React.CSSProperties; | ||
isTotemDisplayMode?: boolean; | ||
}> = ({date, time, location, style, isTotemDisplayMode}) => { | ||
const frame = useCurrentFrame(); | ||
const {fps} = useVideoConfig(); | ||
|
||
const drop = spring({ | ||
frame: frame, | ||
from: -40, | ||
to: isTotemDisplayMode ? 200 : 20, | ||
fps, | ||
durationInFrames: 40, | ||
}); | ||
const opacity = spring({ | ||
frame: frame, | ||
from: 0, | ||
to: 1, | ||
fps, | ||
durationInFrames: 40, | ||
}); | ||
const textUnblur = interpolate(frame, [0, 18], [5, 0], { | ||
extrapolateRight: 'clamp', | ||
}); | ||
const drop = spring({ | ||
frame: frame, | ||
from: -40, | ||
to: isTotemDisplayMode ? 150 : 20, | ||
fps, | ||
durationInFrames: 40, | ||
}); | ||
const opacity = spring({ | ||
frame: frame, | ||
from: 0, | ||
to: 1, | ||
fps, | ||
durationInFrames: 40, | ||
}); | ||
const textUnblur = interpolate(frame, [0, 18], [5, 0], { | ||
extrapolateRight: 'clamp', | ||
}); | ||
|
||
return ( | ||
<TalkDetails | ||
items={{ | ||
date, | ||
time, | ||
location, | ||
}} | ||
style={{ | ||
fontFamily, | ||
opacity, | ||
bottom: `${drop}px`, | ||
left: '50%', | ||
width: isTotemDisplayMode ? '96%' : '80%', | ||
fontSize: '22px', | ||
textShadow: '-2px 0 black, 0 2px black, 2px 0 black, 0 -2px black', | ||
transform: 'translateX(-50%)', | ||
filter: `blur(${textUnblur}px)`, | ||
}} | ||
iconStyle={{ | ||
width: '50px', | ||
filter: 'drop-shadow(0px 0px 4px black)', | ||
}} | ||
/> | ||
); | ||
return ( | ||
<TalkDetails | ||
items={{ | ||
date, | ||
time, | ||
location, | ||
}} | ||
style={{ | ||
fontFamily: 'HigherJump', | ||
opacity, | ||
bottom: `${drop}px`, | ||
left: '50%', | ||
width: isTotemDisplayMode ? '96%' : '90%', | ||
fontSize: '20px', | ||
letterSpacing: '0.3rem', | ||
lineHeight: '2.8rem', | ||
color: '#FFF8F0', | ||
textShadow: | ||
'-2px 0 #1B2C2C, 0 2px #1B2C2C, 2px 0 #1B2C2C, 0 -2px #1B2C2C', | ||
transform: 'translateX(-50%)', | ||
filter: `blur(${textUnblur}px)`, | ||
...style, | ||
}} | ||
iconStyle={{ | ||
display: 'none', | ||
}} | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.