Skip to content

Commit

Permalink
fix(talks): adjust default thumbnail time for talk preview
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtaholik committed Jan 29, 2025
1 parent 2b431b8 commit d057f87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/epic-web/src/pages/talks/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import ResourceContributor from 'components/resource-contributor'
import {ConfLogo} from 'components/conf/conference-logo'
import {IS_PAST_CONF_24} from 'pages/conf/2024'
import {cn} from '@skillrecordings/ui/utils/cn'
import {sanityClient} from 'utils/sanity-client'
import groq from 'groq'

export async function getStaticProps() {
let conf24Talks = null
Expand Down Expand Up @@ -108,7 +110,7 @@ export const TalkItem: React.FC<{
i: number
withBg?: boolean
thumbnailTime?: number
}> = ({talk, path = 'talks', withBg = true, thumbnailTime = 0, i}) => {
}> = ({talk, path = 'talks', withBg = true, thumbnailTime = 20, i}) => {
const {title, slug} = talk
const muxPlaybackId = talk?.muxPlaybackId
const thumbnail = `https://image.mux.com/${muxPlaybackId}/thumbnail.png?width=480&height=270&fit_mode=preserve&time=${thumbnailTime}`
Expand Down

0 comments on commit d057f87

Please sign in to comment.