-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(compositions): reorganise composition to ease LyonJS needs (#…
- Loading branch information
Showing
22 changed files
with
257 additions
and
551 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -36,50 +36,6 @@ jobs: | |
- run: pnpm install --frozen-lockfile --prefer-offline | ||
- run: pnpm prettier --check . | ||
|
||
generateVideos: | ||
needs: | ||
- test | ||
- format | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
composition: | ||
- name: "Sponsor" | ||
props: | ||
companyName: "Foo" | ||
- name: "Talk" | ||
props: | ||
title: "Example of a Title" | ||
speakersNames: "John Doe" | ||
- name: "Meetup" | ||
props: | ||
title: "#76 - LyonJS de la rentrée 🦁" | ||
date: "28 septembre 2022" | ||
|
||
name: 📽 Generating ${{matrix.composition.name}} | ||
steps: | ||
- run: sudo apt update | ||
- run: sudo apt install ffmpeg | ||
- uses: actions/checkout@main | ||
- uses: pnpm/[email protected] | ||
name: Install pnpm | ||
with: | ||
version: 8 | ||
- uses: actions/setup-node@main | ||
with: | ||
cache: pnpm | ||
- run: pnpm install --frozen-lockfile --prefer-offline | ||
- run: echo $WORKFLOW_INPUT > input-props.json | ||
env: | ||
WORKFLOW_INPUT: ${{ toJson(matrix.event.inputs) }} | ||
- run: pnpm remotion render remotion/index.tsx ${{matrix.composition.name}} out/${{matrix.composition.name}}.mp4 --props="./input-props.json" | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: video-${{matrix.composition.name}} | ||
path: out | ||
if-no-files-found: "error" | ||
compression-level: 0 | ||
|
||
nextjs: | ||
name: ⚛️ NextJS application | ||
runs-on: ubuntu-latest | ||
|
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
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
128 changes: 128 additions & 0 deletions
128
remotion/compositions/templates/LyonJSMeetup.composition.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 |
---|---|---|
@@ -0,0 +1,128 @@ | ||
import React from 'react'; | ||
import {Composition, Folder} from 'remotion'; | ||
|
||
import {LyonJSReplaySchema, ReplayLyonJS} from '../showcases/lyonJS/Replay'; | ||
|
||
import {LayersComposition} from './layers/Layers.composition'; | ||
import {Meetup, MeetupSchema} from './meetup/Meetup'; | ||
import {Silhouette, SilhouetteSchema} from './silhouette/Silhouette'; | ||
import {SponsorsComposition} from './sponsors/Sponsors.composition'; | ||
import {TalkBranded} from './talk/branded/TalkBranded'; | ||
import {Talk} from './talk/Talk'; | ||
import {TalkBrandedSchema, TalkSchema} from './talk/talks.types'; | ||
|
||
const startingDate = new Date(2023, 3, 18, 13); | ||
|
||
export const LyonJSMeetup: React.FC = () => { | ||
return ( | ||
<Folder name="LyonJS"> | ||
<Composition | ||
component={Talk} | ||
width={1200} | ||
height={1200} | ||
id="LyonJS-Talk" | ||
fps={30} | ||
durationInFrames={120} | ||
schema={TalkSchema} | ||
defaultProps={{ | ||
speakersNames: 'John Doe', | ||
titleColor: '#efdb50', | ||
talkTitle: 'Is JS an awesome programing language ?', | ||
titleSize: 80, | ||
backgroundImg: | ||
'https://github.com/lyonjs/shortvid.io/blob/48ffea960b300eb9230786ed0ab043ec3387e877/public/images/showcases/lyonjs/defaultBackgroundImage.jpeg?raw=true', | ||
speakerPicture: | ||
'https://raw.githubusercontent.com/lyonjs/shortvid.io/main/public/images/common/defaultAvatar.svg', | ||
eventLogo: | ||
'https://github.com/lyonjs/shortvid.io/blob/main/public/images/showcases/lyonjs/lyonjsSquaredLogo.png?raw=true', | ||
}} | ||
/> | ||
<Composition | ||
component={TalkBranded} | ||
width={1280} | ||
height={720} | ||
id="LyonJS-Talk-Alternate" | ||
fps={30} | ||
durationInFrames={140} | ||
schema={TalkBrandedSchema} | ||
defaultProps={{ | ||
backgroundColor: '#efdb50', | ||
title: 'Certification “Google Cloud Architect”', | ||
startingDate, | ||
location: '5 Place Jules Ferry, 69006.', | ||
logoUrl: | ||
'https://github.com/lyonjs/shortvid.io/blob/main/public/images/showcases/lyonjs/lyonjsSquaredLogo.png?raw=true', | ||
speakers: [ | ||
{ | ||
pictureUrl: | ||
'https://res.cloudinary.com/startup-grind/image/upload/c_fill,dpr_2.0,f_auto,g_center,h_250,q_auto:good,w_250/v1/gcs/platform-data-goog/events/20200911_094649_MbC4W4N.jpg', | ||
name: 'Julien Landuré', | ||
company: 'Zenika Nantes', | ||
job: 'CTO / GDE', | ||
}, | ||
], | ||
}} | ||
/> | ||
<Composition | ||
component={Silhouette} | ||
width={1280} | ||
height={720} | ||
id="LyonJS-Talk-Silhouette" | ||
fps={30} | ||
durationInFrames={120} | ||
schema={SilhouetteSchema} | ||
defaultProps={{ | ||
backgroundImg: | ||
'https://github.com/lyonjs/shortvid.io/blob/48ffea960b300eb9230786ed0ab043ec3387e877/public/images/showcases/lyonjs/defaultBackgroundImage.jpeg?raw=true', | ||
title: 'Example of title for the template 🚀', | ||
silhouetteUrl: | ||
'https://user-images.githubusercontent.com/6263857/230662773-4d7a534a-e01c-4ba8-9c3b-fa95586adf52.png', | ||
side: 'right', | ||
logoUrl: | ||
'https://github.com/lyonjs/shortvid.io/blob/main/public/images/showcases/lyonjs/lyonjsSquaredLogo.png?raw=true', | ||
}} | ||
/> | ||
<Composition | ||
component={Meetup} | ||
width={1200} | ||
height={1200} | ||
id="LyonJS-Meetup-Announce" | ||
fps={30} | ||
durationInFrames={270} | ||
schema={MeetupSchema} | ||
defaultProps={{ | ||
title: '#76 - LyonJS de la rentrée 🦁', | ||
date: '28 septembre 2022', | ||
backgroundImg: | ||
'https://github.com/lyonjs/shortvid.io/blob/48ffea960b300eb9230786ed0ab043ec3387e877/public/images/showcases/lyonjs/defaultBackgroundImage.jpeg?raw=true', | ||
eventLogo: | ||
'https://github.com/lyonjs/shortvid.io/blob/main/public/images/showcases/lyonjs/lyonjsSquaredLogo.png?raw=true', | ||
}} | ||
/> | ||
<Composition | ||
width={1920} | ||
height={1080} | ||
id="LyonJS-Replay" | ||
fps={60} | ||
durationInFrames={320} | ||
component={ReplayLyonJS} | ||
schema={LyonJSReplaySchema} | ||
defaultProps={{ | ||
title: 'Meetup #80 : Projet XState', | ||
speakers: [ | ||
{ | ||
name: 'Maxime Blanc', | ||
picture: | ||
'https://ca.slack-edge.com/T108ZKPMF-U3VL71HHU-179292d5d86f-512', | ||
}, | ||
], | ||
date: '8 férvrier 2023', | ||
sponsor: | ||
'https://s3.eu-west-3.amazonaws.com/moovijob.prod/1494438/Horizontal_Black_Logo-Zenika.png', | ||
}} | ||
/> | ||
<LayersComposition /> | ||
<SponsorsComposition /> | ||
</Folder> | ||
); | ||
}; |
81 changes: 81 additions & 0 deletions
81
remotion/compositions/templates/MeetupToolKit.composition.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 |
---|---|---|
@@ -0,0 +1,81 @@ | ||
import React from 'react'; | ||
import {Composition, Folder} from 'remotion'; | ||
|
||
import {Talk} from './talk/Talk'; | ||
import {TalkSchema} from './talk/talks.types'; | ||
|
||
export const MeetupToolKit: React.FC = () => { | ||
return ( | ||
<Folder name="Meetup-ToolKit"> | ||
<Folder name="HumanTalk"> | ||
<Composition | ||
component={Talk} | ||
width={1200} | ||
height={1200} | ||
id="HumanTalk-Talk" | ||
fps={30} | ||
durationInFrames={120} | ||
schema={TalkSchema} | ||
defaultProps={{ | ||
speakersNames: 'John Doe', | ||
titleColor: '#772757', | ||
talkTitle: 'Is JS an awesome programing language ?', | ||
titleSize: 80, | ||
backgroundImg: | ||
'https://humantalks.com/assets/talks-10min-eabec95a48239e06c9dfb2c466874a3c734c54b579d38cf98a1135eb3f293c5e.jpg', | ||
speakerPicture: | ||
'https://raw.githubusercontent.com/lyonjs/shortvid.io/main/public/images/common/defaultAvatar.svg', | ||
eventLogo: | ||
'https://humantalks.com/assets/logo-HumanTalks-b238463e6389c198a989506119f06d0d0ef836cc90a3c7713939c0ae09eb5f76.png', | ||
}} | ||
/> | ||
</Folder> | ||
<Folder name="ParisJS"> | ||
<Composition | ||
component={Talk} | ||
width={1200} | ||
height={1200} | ||
id="ParisJS-Talk" | ||
fps={30} | ||
durationInFrames={120} | ||
schema={TalkSchema} | ||
defaultProps={{ | ||
speakersNames: 'John Doe', | ||
titleColor: '#e14680', | ||
talkTitle: 'Is JS an awesome programing language ?', | ||
titleSize: 80, | ||
backgroundImg: | ||
'https://secure.meetupstatic.com/photos/event/4/e/2/0/highres_466520000.webp', | ||
speakerPicture: | ||
'https://raw.githubusercontent.com/lyonjs/shortvid.io/main/public/images/common/defaultAvatar.svg', | ||
eventLogo: | ||
'https://secure-content.meetupstatic.com/images/classic-events/499980504/128x128.jpg', | ||
}} | ||
/> | ||
</Folder> | ||
<Folder name="StrasbourgJS"> | ||
<Composition | ||
component={Talk} | ||
width={1200} | ||
height={1200} | ||
id="StrasbourgJS-Talk" | ||
fps={30} | ||
durationInFrames={120} | ||
schema={TalkSchema} | ||
defaultProps={{ | ||
speakersNames: 'John Doe', | ||
titleColor: '#FFCC4A', | ||
talkTitle: 'Is JS an awesome programing language ?', | ||
titleSize: 80, | ||
backgroundImg: | ||
'https://secure.meetupstatic.com/photos/event/3/5/b/8/highres_415693752.webp', | ||
speakerPicture: | ||
'https://raw.githubusercontent.com/lyonjs/shortvid.io/main/public/images/common/defaultAvatar.svg', | ||
eventLogo: | ||
'https://secure-content.meetupstatic.com/images/classic-events/493856926/128x128.jpg', | ||
}} | ||
/> | ||
</Folder> | ||
</Folder> | ||
); | ||
}; |
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
remotion/compositions/templates/carousel/Carousel.composition.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.