Skip to content

Commit

Permalink
fix: bumped fsxa-pattern-library version, removed unnecessary descrip…
Browse files Browse the repository at this point in the history
…tion in interactive video
  • Loading branch information
Dominik Barczewski committed May 12, 2021
1 parent 316f80c commit a22c5c2
Show file tree
Hide file tree
Showing 3 changed files with 32,434 additions and 311 deletions.
42 changes: 20 additions & 22 deletions components/fsxa/sections/InteractiveYoutubeVideo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,30 +45,28 @@ class InteractiveYouTubeVideo extends FSXABaseSection<Payload, Meta> {
? '?autoplay=true'
: ''
const title = this.payload.st_youtubeVideo.value[0].value.title
const description = this.payload.st_youtubeVideo.value[0].value.description
const url = 'https://www.youtube-nocookie.com/embed/'
return (
<Container>
{title ? <Headline>{title}</Headline> : null}
{title ? <LineSeparator /> : null}
<div class="aspect-w-16 aspect-h-9 my-3">
{youtubeID ? (
<iframe
class="m-auto"
src={`${url}${youtubeID}${autoplayParam}`}
frameborder="0"
allowfullscreen
/>
) : (
<div>
<i>No YouTube identifier provided.</i>
</div>
)}
</div>
{description ? (
<div class="m-1 uppercase text-sm md:pr-6 lg:pr-8">{description}</div>
) : null}
</Container>
<div>
<Container>
{title ? <Headline>{title}</Headline> : null}
{title ? <LineSeparator /> : null}
<div class="aspect-w-16 aspect-h-9 my-3">
{youtubeID ? (
<iframe
class="m-auto"
src={`${url}${youtubeID}${autoplayParam}`}
frameborder="0"
allowfullscreen
/>
) : (
<div>
<i>No YouTube identifier provided.</i>
</div>
)}
</div>
</Container>
</div>
)
}
}
Expand Down
Loading

0 comments on commit a22c5c2

Please sign in to comment.