refactor(talks): extract talk components
This commit is contained in:
parent
d34d3415c1
commit
ad3c9171f7
4 changed files with 98 additions and 59 deletions
22
website/src/components/talk/Slides.astro
Normal file
22
website/src/components/talk/Slides.astro
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
interface Props {
|
||||
id: string
|
||||
ratio?: string
|
||||
}
|
||||
|
||||
const { id, ratio }: Props = Astro.props
|
||||
---
|
||||
|
||||
<div>
|
||||
<h2 class="mb-2">Slides</h2>
|
||||
|
||||
<div class="slides">
|
||||
<noscript>**Please enable JavaScript to view slides.**</noscript>
|
||||
<script
|
||||
class="speakerdeck-embed"
|
||||
data-id={id}
|
||||
data-ratio={ratio ?? '1.29456384323641'}
|
||||
src="//speakerdeck.com/assets/embed.js"
|
||||
></script>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue