feat(ui): skin design improvements, add html frosted skin (WIP) (#133)

This commit is contained in:
Sam Potts
2025-10-25 14:35:48 +11:00
committed by GitHub
parent 52b91d3bd8
commit 75a90e7104
14 changed files with 547 additions and 428 deletions
+4 -5
View File
@@ -1,16 +1,15 @@
import { defineVjsPlayer } from '@videojs/html';
import '@videojs/html/skins/default';
import '@videojs/html/skins/frosted';
defineVjsPlayer();
document.body.innerHTML = /* html */ `
<media-provider>
<div style="width: 100%; max-width: 800px; margin: 0 auto;">
<media-skin-default>
<div style="display: grid; place-items: center; min-height: 100vh;">
<media-skin-frosted style="border-radius: 2rem; width: 100%; max-width: 800px; margin: 2rem auto;">
<video slot="media" src="https://stream.mux.com/A3VXy02VoUinw01pwyomEO3bHnG4P32xzV7u1j1FSzjNg/high.mp4" muted></video>
</media-skin-default>
</media-skin-frosted>
</div>
</media-skin-default>
</media-provider>
`;