Skip to content

Commit

Permalink
ci(format): fix format of files
Browse files Browse the repository at this point in the history
  • Loading branch information
Slashgear committed Apr 29, 2024
1 parent 0dd12ba commit de253d2
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 27 deletions.
14 changes: 8 additions & 6 deletions app/templates/talks/talkBranded/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@ export default function BrandedTalkPage() {
startingDate,
location,
logoUrl,
speakers: [{
pictureUrl: speakerPicture,
name: speakersNames,
company: speakersCompany,
job: speakersJob,
}],
speakers: [
{
pictureUrl: speakerPicture,
name: speakersNames,
company: speakersCompany,
job: speakersJob,
},
],
};

const encodedParams = encodeObjectValues({
Expand Down
16 changes: 9 additions & 7 deletions remotion/compositions/templates/talk/Talks.composition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,15 @@ export const TalksComposition: React.FC = () => {
location: '5 Place Jules Ferry, 69006.',
logoUrl:
'https://user-images.githubusercontent.com/72607059/233019842-047a34a4-77c1-4200-adc8-c70a6daf8f10.svg',
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',
}],
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',
},
],
}}
/>
</Folder>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ export const BrandedSpeaker = ({
top: slideIn,
}}
>
<BrandedSpeakerInfos name={name} company={company} job={job} iconStyle={iconStyle}/>
<BrandedSpeakerInfos
name={name}
company={company}
job={job}
iconStyle={iconStyle}
/>
</AvatarWithCaption>
</AbsoluteFill>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type BrandedSpeakerInfosProps = {
name: string;
company?: string;
job?: string;
iconStyle ?: React.CSSProperties;
iconStyle?: React.CSSProperties;
};

export const BrandedSpeakerInfos = ({
Expand Down
9 changes: 5 additions & 4 deletions remotion/compositions/templates/talk/branded/TalkBranded.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ export const TalkBranded = ({
logoUrl,
speakers,
}: z.infer<typeof TalkBrandedSchema>) => {

const speakersData = speakers;
const baseOffsetY = speakersData.length > 1 ? -50 : 0;
const avatarSize = speakersData.length > 1 ? 150 : 200;
const speakerIconStyle : React.CSSProperties | undefined = speakersData.length > 1 ? { fontSize: "2rem"} : undefined;
const speakerIconStyle: React.CSSProperties | undefined =
speakersData.length > 1 ? {fontSize: '2rem'} : undefined;

return (
<AbsoluteFill
Expand All @@ -47,7 +47,8 @@ export const TalkBranded = ({
<BrandedSpeaker
key={index}
pictureUrl={
speaker.pictureUrl || staticFile('/images/common/defaultAvatar.svg')
speaker.pictureUrl ||
staticFile('/images/common/defaultAvatar.svg')
}
name={speaker.name}
company={speaker.company}
Expand All @@ -72,4 +73,4 @@ export const TalkBranded = ({
)}
</AbsoluteFill>
);
}
};
2 changes: 1 addition & 1 deletion remotion/compositions/templates/talk/talks.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const TalkBrandedSpeakerSchema = z.object({
name: z.string(),
company: z.string().optional(),
job: z.string().optional(),
})
});

export const TalkBrandedSchema = z.object({
backgroundColor: zColor(),
Expand Down
16 changes: 9 additions & 7 deletions src/data/config/templates/talkBrandedConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ export const TalkBrandedConfig: CompositionProps = {
location: '5 Place Jules Ferry, 69006.',
logoUrl:
'https://user-images.githubusercontent.com/72607059/233019842-047a34a4-77c1-4200-adc8-c70a6daf8f10.svg',
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',
}],
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',
},
],
},
};

0 comments on commit de253d2

Please sign in to comment.