Skip to content

Commit

Permalink
feat(ewd): add speaker talk description
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtaholik committed Jan 16, 2025
1 parent 5e2e807 commit 5fa700f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions apps/epic-web/src/pages/conf/2025/[speaker].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const getStaticProps: GetStaticProps = async ({params}) => {

const video = await sanityClient.fetch(
groq`
*[_type == "videoResource" && slug.current == $slug][0]{
*[_type == "videoResource" && slug.current == $slug] | order(_createdAt desc)[0]{
_id,
"_type": "tip",
"slug": slug.current,
Expand All @@ -51,7 +51,7 @@ export const getStaticProps: GetStaticProps = async ({params}) => {
}
`,
{
slug: `conf-interview-${slugify(speaker.fullName)}`, // 'zZ4ErPnSL4ZWs2Du0ONL6z',
slug: `conf-interview-${slugify(speaker.fullName)}`,
},
)

Expand Down Expand Up @@ -225,7 +225,12 @@ const ConfSpeakerTemplate: React.FC<ConfSpeakerPageProps> = ({
{format(new Date(session.startsAt), 'EEEE, h:mm a')}—
{format(new Date(session.endsAt), 'h:mm a')}
</div> */}
<div>{session.title}</div>
<p className="text-lg font-semibold">{session.title}</p>
{session.description && (
<p className="mt-3 text-[#D6DEFF]">
{session.description}
</p>
)}
</li>
)
})}
Expand Down

0 comments on commit 5fa700f

Please sign in to comment.