Add youtube link to video page

pull/1657/head
Kamran Ahmed 3 years ago
parent 2ab93f76c2
commit cb2f4de1eb
  1. 8
      pages/watch/[video].tsx

@ -1,4 +1,4 @@
import { Box, Container } from '@chakra-ui/react'; import { Box, Container, Link, Text } from '@chakra-ui/react';
import { GlobalHeader } from '../../components/global-header'; import { GlobalHeader } from '../../components/global-header';
import { OpensourceBanner } from '../../components/opensource-banner'; import { OpensourceBanner } from '../../components/opensource-banner';
import { UpdatesBanner } from '../../components/updates-banner'; import { UpdatesBanner } from '../../components/updates-banner';
@ -34,6 +34,12 @@ export default function Video(props: VideoProps) {
}} }}
/> />
<Container maxW={'container.md'} position='relative'> <Container maxW={'container.md'} position='relative'>
{video.youtubeLink && (
<Text mb='18px'>We are working on a better watch page for now this <Link fontWeight={600}
textDecoration={'underline'}
href={video.youtubeLink}
target='_blank'>video is best
viewed on YouTube</Link>.</Text>)}
<MdRenderer> <MdRenderer>
<VideoContent /> <VideoContent />
</MdRenderer> </MdRenderer>

Loading…
Cancel
Save