Skip to content

Commit

Permalink
Fix callForSpeaker wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 committed Feb 5, 2025
1 parent a4857c9 commit f05ddd2
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions src/components/Speakers/Speakers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,31 @@ const Speakers = ({ data }: { data: SpeakersProps }) => {
<Container size="large">
<div className="speakers flex flex-col py-8 md:py-12 gap-12">
<SpeakersList speakers={data.speakers} />
<div className="flex flex-col md:flex-row rounded-xl overflow-hidden relative">
<div className="absolute inset-0 h-3 md:h-full md:w-3 bg-secondary" />
<div className="bg-white flex-1 flex flex-col md:flex-row">
<div className="flex flex-col gap-6 flex-1 py-8 px-6 md:py-12 md:px-16">
<Typography
variant="h3"
color="dark"
weight="semibold"
underlineColor="secondary-100"
>
{data.title}
</Typography>
<div className="flex flex-col">
<Typography variant="subtitle2" color="dark" weight="bold">
{data.subtitle}
</Typography>
<Typography variant="subtitle2" color="dark" weight="medium">
{data.description}
{data.isRegistrationEnabled && (
<div
className="flex flex-col md:flex-row rounded-xl overflow-hidden relative">
<div
className="absolute inset-0 h-3 md:h-full md:w-3 bg-secondary"/>
<div className="bg-white flex-1 flex flex-col md:flex-row">
<div
className="flex flex-col gap-6 flex-1 py-8 px-6 md:py-12 md:px-16">
<Typography
variant="h3"
color="dark"
weight="semibold"
underlineColor="secondary-100"
>
{data.title}
</Typography>
<div className="flex flex-col">
<Typography variant="subtitle2" color="dark" weight="bold">
{data.subtitle}
</Typography>
<Typography variant="subtitle2" color="dark" weight="medium">
{data.description}
</Typography>
</div>
</div>
</div>
{data.isRegistrationEnabled && (
<div
className="bg-[url(/images/pattern_speakers.svg)] bg-cover flex items-center justify-center w-full h-64 p-5 md:h-auto md:w-1/2">
<ButtonLink
Expand All @@ -46,9 +49,9 @@ const Speakers = ({ data }: { data: SpeakersProps }) => {
{data.registrationLabel}
</ButtonLink>
</div>
)}
</div>
</div>
</div>
)}
</div>
</Container>
);
Expand Down

0 comments on commit f05ddd2

Please sign in to comment.