Skip to content

Commit

Permalink
Merge branch 'devel' of https://github.com/boltex/leojs into gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
boltex committed Sep 8, 2024
2 parents aca6bbd + 613558b commit de99c58
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions web/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,21 +149,23 @@ blockquote {
.customPlayer1 .react-player__preview:after {
content: "Introduction to Leo ";
top: 8px;
background-color: #fff;
}

.customPlayer2 .react-player__preview:after {
content: "Features Demo ";
top: 8px;
background-color: #fff;
}

.react-player__preview:after {
position: absolute;
color: rgb(28, 30, 33);
font-size: 1.25rem;
font-weight: 700;
left: 10px;
right: 0;
height: 40px;
padding-left:12px;
padding-right:12px;
border-radius: 20px;
text-align: center;
}

Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function Home() {
// const LibComponent =
// require('some-lib-that-accesses-window').LibComponent;
// return <LibComponent {...props} />;
return <ReactPlayer className="customPlayer1" light playing width="440px" height="247px" url='https://www.youtube.com/watch?v=j0eo7SlnnSY' />
return <ReactPlayer className="customPlayer1" light playing width="100%" height="250px" url='https://www.youtube.com/watch?v=j0eo7SlnnSY' />
}}
</BrowserOnly>
</div>
Expand Down Expand Up @@ -114,7 +114,7 @@ export default function Home() {
// const LibComponent =
// require('some-lib-that-accesses-window').LibComponent;
// return <LibComponent {...props} />;
return <ReactPlayer className="customPlayer2" light playing width="440px" height="247px" url='https://www.youtube.com/watch?v=M_mKXSbVGdE' />
return <ReactPlayer className="customPlayer2" light playing width="100%" height="250px" url='https://www.youtube.com/watch?v=M_mKXSbVGdE' />
}}
</BrowserOnly>
</div>
Expand Down

0 comments on commit de99c58

Please sign in to comment.