Skip to content

Commit

Permalink
Add retro video tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
tianrunhe committed May 20, 2024
1 parent 2144196 commit f694a1b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/client/components/MeetingsDash.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ const MeetingsDash = (props: Props) => {
{!teamFilterIds ? (
<Wrapper maybeTabletPlus={maybeTabletPlus}>
<DemoMeetingCard />
<TutorialMeetingCard type='retro' />
<TutorialMeetingCard type='standup' />
<TutorialMeetingCard type='poker' />
</Wrapper>
Expand Down
8 changes: 7 additions & 1 deletion packages/client/components/TutorialMeetingCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import styled from '@emotion/styled'
import React, {useCallback} from 'react'
import SendClientSideEvent from '~/utils/SendClientSideEvent'
import pokerTutorialThumb from '../../../static/images/illustrations/pokerTutorialThumb.jpg'
import retroTutorialThumb from '../../../static/images/illustrations/retroTutorialThumb.png'
import standupTutorialThumb from '../../../static/images/illustrations/standupTutorialThumb.jpg'
import useAtmosphere from '../hooks/useAtmosphere'
import useBreakpoint from '../hooks/useBreakpoint'
Expand Down Expand Up @@ -100,10 +101,15 @@ const TopLine = styled('div')({
})

interface Props {
type: 'poker' | 'standup'
type: 'retro' | 'poker' | 'standup'
}

const TUTORIAL_MAP = {
retro: {
label: 'Starting a Retrospective Meeting',
thumbnail: retroTutorialThumb,
url: 'https://www.youtube.com/embed/C96fNtypaww?modestbranding=1&rel=0'
},
poker: {
label: 'Starting a Sprint Poker Meeting',
thumbnail: pokerTutorialThumb,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const TeamDashActivityTab = (props: Props) => {
) : (
<>
<DemoMeetingCard />
<TutorialMeetingCard type='retro' />
<TutorialMeetingCard type='standup' />
<TutorialMeetingCard type='poker' />
</>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f694a1b

Please sign in to comment.