-
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.
✨ change to img background to improve display
- Loading branch information
Showing
20 changed files
with
1,030 additions
and
902 deletions.
There are no files selected for viewing
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.
110 changes: 55 additions & 55 deletions
110
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,64 +1,64 @@ | ||
import {loadLocalFont} from '../../../../../src/utils/loadFont'; | ||
import {interpolate, spring, useCurrentFrame, useVideoConfig} from 'remotion'; | ||
import { loadLocalFont } from "../../../../../src/utils/loadFont"; | ||
import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion"; | ||
|
||
import {TalkDetails} from '../../../design/molecules/TalkDetails'; | ||
import { TalkDetails } from "../../../design/molecules/TalkDetails"; | ||
|
||
loadLocalFont('HigherJump', 'font/HigherJump.ttf', 'truetype'); | ||
loadLocalFont("HigherJump", "font/HigherJump.ttf", "truetype"); | ||
|
||
export const Details: React.FC<{ | ||
date?: string; | ||
time?: string; | ||
location?: string; | ||
date?: string; | ||
time?: string; | ||
location?: string; | ||
style?: React.CSSProperties; | ||
isTotemDisplayMode?: boolean; | ||
}> = ({date, time, location, style, isTotemDisplayMode}) => { | ||
const frame = useCurrentFrame(); | ||
const {fps} = useVideoConfig(); | ||
isTotemDisplayMode?: boolean; | ||
}> = ({ date, time, location, style, isTotemDisplayMode }) => { | ||
const frame = useCurrentFrame(); | ||
const { fps } = useVideoConfig(); | ||
|
||
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', | ||
}); | ||
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: '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)`, | ||
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', | ||
}} | ||
/> | ||
); | ||
}} | ||
iconStyle={{ | ||
display: "none", | ||
}} | ||
/> | ||
); | ||
}; |
106 changes: 58 additions & 48 deletions
106
src/remotion/compositions/showcases/devfestNantes/DevfestNantesDefault.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,54 +1,64 @@ | ||
import {loadFont} from '@remotion/google-fonts/CrimsonText'; | ||
import {AbsoluteFill, Img, Sequence, staticFile,} from 'remotion'; | ||
import { loadFont } from "@remotion/google-fonts/CrimsonText"; | ||
import { AbsoluteFill, Img, Sequence, staticFile } from "remotion"; | ||
import { BackgroundFiller } from "../../../design/atoms/BackgroundFiller"; | ||
|
||
import {GhostBackground} from './GhostBackground'; | ||
import {Logo} from './Logo'; | ||
import {Moon} from './Moon'; | ||
import {Trees} from './Trees'; | ||
import { GhostBackground } from "./GhostBackground"; | ||
import { Logo } from "./Logo"; | ||
import { Moon } from "./Moon"; | ||
import { Trees } from "./Trees"; | ||
|
||
const {fontFamily} = loadFont(); | ||
const { fontFamily } = loadFont(); | ||
|
||
export const DevfestNantesDefault = () => { | ||
|
||
return ( | ||
<AbsoluteFill | ||
style={{ | ||
backgroundColor: '#e4595c', | ||
overflow: 'hidden', | ||
fontFamily, | ||
textTransform: 'uppercase', | ||
boxShadow: | ||
'inset 0 0px 200px rgba(0, 0, 0, 0.9), inset 0 -2px 4px rgba(0, 0, 0, 0.5)', | ||
}} | ||
> | ||
<Sequence from={30}> | ||
<GhostBackground /> | ||
</Sequence> | ||
<Sequence from={110}> | ||
<Moon /> | ||
</Sequence> | ||
<Sequence from={30}> | ||
<Trees /> | ||
</Sequence> | ||
<Sequence> | ||
<Logo /> | ||
</Sequence> | ||
<div style={{ | ||
position: "absolute", | ||
display: "flex", | ||
flexDirection: "column", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
width: "100%", | ||
height: "100%" | ||
}}><Img | ||
src={staticFile( | ||
'/images/showcases/devfestNantes/logo-devfest-2024.svg', | ||
)} | ||
width={"600px"} | ||
height="auto" | ||
/> | ||
return ( | ||
<AbsoluteFill | ||
style={{ | ||
overflow: "hidden", | ||
fontFamily, | ||
textTransform: "uppercase", | ||
}} | ||
> | ||
<Sequence> | ||
<BackgroundFiller | ||
imageUrl={staticFile( | ||
"/images/showcases/devfestNantes/background-filler-paysage.png" | ||
)} | ||
style={{ | ||
transform: "scale(1)", | ||
}} | ||
/> | ||
</Sequence> | ||
<Sequence from={30}> | ||
<GhostBackground /> | ||
</Sequence> | ||
<Sequence from={110}> | ||
<Moon /> | ||
</Sequence> | ||
<Sequence from={30}> | ||
<Trees /> | ||
</Sequence> | ||
<Sequence> | ||
<Logo /> | ||
</Sequence> | ||
<div | ||
style={{ | ||
position: "absolute", | ||
display: "flex", | ||
flexDirection: "column", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
width: "100%", | ||
height: "100%", | ||
}} | ||
> | ||
<Img | ||
src={staticFile( | ||
"/images/showcases/devfestNantes/logo-devfest-2024.svg" | ||
)} | ||
width={"600px"} | ||
height="auto" | ||
/> | ||
</div> | ||
</AbsoluteFill> | ||
); | ||
</AbsoluteFill> | ||
); | ||
}; |
107 changes: 58 additions & 49 deletions
107
src/remotion/compositions/showcases/devfestNantes/DevfestNantesDefaultTotem.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,54 +1,63 @@ | ||
import {loadFont} from '@remotion/google-fonts/CrimsonText'; | ||
import {AbsoluteFill, Img, Sequence, staticFile} from 'remotion'; | ||
import { loadFont } from "@remotion/google-fonts/CrimsonText"; | ||
import { AbsoluteFill, Img, Sequence, staticFile } from "remotion"; | ||
import { BackgroundFiller } from "../../../design/atoms/BackgroundFiller"; | ||
import { GhostBackground } from "./GhostBackground"; | ||
import { Logo } from "./Logo"; | ||
import { Moon } from "./Moon"; | ||
import { Trees } from "./Trees"; | ||
|
||
import {GhostBackground} from './GhostBackground'; | ||
import {Logo} from './Logo'; | ||
import {Moon} from './Moon'; | ||
import {Trees} from './Trees'; | ||
|
||
const {fontFamily} = loadFont(); | ||
const { fontFamily } = loadFont(); | ||
|
||
export const DevfestNantesDefaultTotem = () => { | ||
|
||
return ( | ||
<AbsoluteFill | ||
style={{ | ||
backgroundColor: '#e4595c', | ||
overflow: 'hidden', | ||
fontFamily, | ||
textTransform: 'uppercase', | ||
boxShadow: | ||
'inset 0 0px 200px rgba(0, 0, 0, 0.9), inset 0 -2px 4px rgba(0, 0, 0, 0.5)', | ||
}} | ||
> | ||
<Sequence> | ||
<Logo isTotemDisplayMode /> | ||
</Sequence> | ||
<Sequence from={30}> | ||
<GhostBackground /> | ||
</Sequence> | ||
return ( | ||
<AbsoluteFill | ||
style={{ | ||
overflow: "hidden", | ||
fontFamily, | ||
textTransform: "uppercase", | ||
}} | ||
> | ||
<Sequence> | ||
<BackgroundFiller | ||
imageUrl={staticFile( | ||
"/images/showcases/devfestNantes/background-filler-totem.png" | ||
)} | ||
style={{ | ||
transform: "scale(1)", | ||
}} | ||
/> | ||
</Sequence> | ||
<Sequence> | ||
<Logo isTotemDisplayMode /> | ||
</Sequence> | ||
<Sequence from={30}> | ||
<GhostBackground /> | ||
</Sequence> | ||
<Sequence from={110}> | ||
<Moon isTotemDisplayMode /> | ||
</Sequence> | ||
<Sequence from={30}> | ||
<Trees /> | ||
</Sequence> | ||
<div style={{ | ||
position: "absolute", | ||
display: "flex", | ||
flexDirection: "column", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
width: "100%", | ||
height: "75%", | ||
}}><Img | ||
src={staticFile( | ||
'/images/showcases/devfestNantes/logo-devfest-2024.svg', | ||
)} | ||
width={"600px"} | ||
height="auto" | ||
/> | ||
</div> | ||
</AbsoluteFill> | ||
); | ||
<Moon isTotemDisplayMode /> | ||
</Sequence> | ||
<Sequence from={30}> | ||
<Trees /> | ||
</Sequence> | ||
<div | ||
style={{ | ||
position: "absolute", | ||
display: "flex", | ||
flexDirection: "column", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
width: "100%", | ||
height: "75%", | ||
}} | ||
> | ||
<Img | ||
src={staticFile( | ||
"/images/showcases/devfestNantes/logo-devfest-2024.svg" | ||
)} | ||
width={"600px"} | ||
height="auto" | ||
/> | ||
</div> | ||
</AbsoluteFill> | ||
); | ||
}; |
Oops, something went wrong.