Skip to content

Commit

Permalink
add margin top/bottom to the iframe of spearkerdeck
Browse files Browse the repository at this point in the history
  • Loading branch information
fohte committed May 23, 2024
1 parent db16f91 commit 63ca3e9
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions src/components/mdx/SpeakerDeck.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
'use client'

import { Box } from '@chakra-ui/react'
import * as React from 'react'

type SpeakerDeckProps = {
id: string
}

export const SpeakerDeck: React.FC<SpeakerDeckProps> = ({ id }) => (
<iframe
className="speakerdeck-iframe"
src={`https://speakerdeck.com/player/${id}`}
allowFullScreen
style={{
border: '0px',
background: 'padding-box padding-box rgba(0, 0, 0, 0.1)',
margin: '0px',
padding: '0px',
borderRadius: '6px',
boxShadow: 'rgba(0, 0, 0, 0.2) 0px 5px 40px',
width: '100%',
height: 'auto',
aspectRatio: '560 / 315',
}}
data-ratio="1.7777777777777777"
/>
<Box my={8}>
<iframe
className="speakerdeck-iframe"
src={`https://speakerdeck.com/player/${id}`}
allowFullScreen
style={{
border: '0px',
background: 'padding-box padding-box rgba(0, 0, 0, 0.1)',
margin: '0px',
padding: '0px',
borderRadius: '6px',
boxShadow: 'rgba(0, 0, 0, 0.2) 0px 5px 40px',
width: '100%',
height: 'auto',
aspectRatio: '560 / 315',
}}
data-ratio="1.7777777777777777"
/>
</Box>
)

0 comments on commit 63ca3e9

Please sign in to comment.