-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f74084
commit 1337f40
Showing
10 changed files
with
268 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
import React from 'react' | ||
import ReactDOM from 'react-dom/client' | ||
import App from './App' | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom/client'; | ||
import App from './App'; | ||
import 'ipmc-ui/style.css'; | ||
|
||
function tryRender() { | ||
if (!window.configService) { | ||
setTimeout(tryRender, 100); | ||
} else { | ||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render( | ||
<React.StrictMode> | ||
<App /> | ||
</React.StrictMode> | ||
) | ||
|
||
<React.StrictMode> | ||
<App /> | ||
</React.StrictMode> | ||
); | ||
} | ||
} | ||
|
||
tryRender(); | ||
tryRender(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
packages/ui/src/components/organisms/VideoPlayer/VideoPlayer.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
.outerContainer { | ||
width: 100%; | ||
height: 100%; | ||
text-align: center; | ||
} | ||
|
||
.innerContainer { | ||
position: relative; | ||
display: inline-block; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.videoOverlay { | ||
display: flex; | ||
flex-direction: column; | ||
position: absolute; | ||
left: 0; | ||
top: 0; | ||
z-index: 1; | ||
width: 100%; | ||
height: 100%; | ||
visibility: hidden; | ||
color: #fff; | ||
background-color: #3232324d; | ||
} | ||
|
||
.innerContainer:hover .videoOverlay { | ||
visibility: visible; | ||
} | ||
|
||
.video { | ||
height: 100%; | ||
max-width: 100%; | ||
max-height: 100%; | ||
} | ||
|
||
.spacer { | ||
flex-grow: 1; | ||
} | ||
|
||
.toolbar { | ||
display: flex; | ||
} | ||
|
||
.progress, | ||
.progressFilled { | ||
height: 25px; | ||
background-color: darkgray; | ||
} | ||
|
||
.progressFilled { | ||
background-color: white; | ||
width: 0; | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/ui/src/components/organisms/VideoPlayer/VideoPlayer.module.css.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
declare const styles: { | ||
readonly outerContainer: string; | ||
readonly innerContainer: string; | ||
readonly videoOverlay: string; | ||
readonly video: string; | ||
readonly spacer: string; | ||
readonly toolbar: string; | ||
readonly progress: string; | ||
readonly progressFilled: string; | ||
}; | ||
export default styles; |
Oops, something went wrong.