mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 23:57:31 +00:00
docs: add video to quickstart (#7512)
This commit is contained in:
17
docs/src/components/player.jsx
Normal file
17
docs/src/components/player.jsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import React from "react";
|
||||
import ReactPlayer from 'react-player'
|
||||
|
||||
export function ResponsivePlayer({ url, ...props }) {
|
||||
|
||||
return (
|
||||
<div className='player-wrapper'>
|
||||
<ReactPlayer
|
||||
className='react-player'
|
||||
url={url}
|
||||
width='100%'
|
||||
height='100%'
|
||||
{...props}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
@@ -600,3 +600,16 @@ p strong {
|
||||
:root[data-theme="dark"] .hideonlight {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
|
||||
.player-wrapper {
|
||||
position: relative;
|
||||
padding-top: 56.25%; /* Player ratio: 100 / (1280 / 720) */
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.react-player {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
Reference in New Issue
Block a user