Add video detail page
This commit is contained in:
@ -1,8 +1,20 @@
|
||||
import styled from 'styled-components';
|
||||
import { AspectRatio } from '@chakra-ui/react';
|
||||
|
||||
export const IFrame = styled.iframe`
|
||||
display: block;
|
||||
width: 100%;
|
||||
border: none;
|
||||
margin: 30px auto;
|
||||
`;
|
||||
type IFrameProps = {
|
||||
title: string;
|
||||
src: string;
|
||||
};
|
||||
|
||||
export default function IFrame(props: IFrameProps) {
|
||||
return (
|
||||
<AspectRatio maxW='100%' ratio={2} mb='18px'>
|
||||
<iframe
|
||||
frameBorder={0}
|
||||
title={props.title}
|
||||
src={props.src}
|
||||
allow={'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture'}
|
||||
allowFullScreen
|
||||
/>
|
||||
</AspectRatio>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user