Skip to content

Commit

Permalink
Add demo video caption track
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmitchell committed Nov 15, 2024
1 parent 363adc5 commit cf7fc0a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions _sass/base/_body.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ body {
width: 100%;
}

video::cue {
@include calibre();
font-size: 24px;
font-weight: 600;
letter-spacing: -0.01em;
line-height: 1;
}



@media(min-width: 1024px) {
Expand Down
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ <h4>Learn just what you need to get started, then keep leveling up as you go. <s
<div class="video common-background--grey common-shape--top-white-down-left">
<div class="container">
<div class="video__embed">
<video poster="https://d2biiyjlsh52uh.cloudfront.net/rails/rails-8-demo.webp" src="https://d2biiyjlsh52uh.cloudfront.net/rails/rails-8-demo.mp4" width="1920" height="1080" controls></video>
<video poster="https://d2biiyjlsh52uh.cloudfront.net/rails/rails-8-demo.webp" src="https://d2biiyjlsh52uh.cloudfront.net/rails/rails-8-demo.mp4" width="1920" height="1080" preload="metadata" controls crossorigin>
<track src="https://d2biiyjlsh52uh.cloudfront.net/rails/rails-8-demo-en.vtt" kind="captions" label="English" srclang="en" default>
</video>
</div>
</div>
</div>
Expand Down

0 comments on commit cf7fc0a

Please sign in to comment.