Skip to content

Commit

Permalink
✨ change to img background to improve display
Browse files Browse the repository at this point in the history
  • Loading branch information
jlandure committed Oct 14, 2024
1 parent 85b25d1 commit d4596b5
Show file tree
Hide file tree
Showing 20 changed files with 1,030 additions and 902 deletions.
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 src/remotion/compositions/showcases/devfestNantes/Details.tsx
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",
}}
/>
);
};
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>
);
};
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>
);
};
Loading

0 comments on commit d4596b5

Please sign in to comment.