syncvid/index.html

105 lines
2.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SyncVid</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
transition: opacity 0.2s ease-in-out;
}
body {
height: 100vh;
overflow: hidden;
background: black;
}
.video-container {
display: grid;
height: 100vh;
width: 100vw;
}
.syncing {
cursor: wait;
pointer-events: none;
opacity: 0.5;
}
/* Grid layouts based on video count */
.video-container.count-1 {
grid-template-columns: 1fr;
}
.video-container.count-2 {
grid-template-columns: 1fr 1fr;
}
.video-container.count-3 {
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
}
.video-container.count-3 > video:first-child {
grid-column: span 2;
}
.video-container.count-4 {
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
}
/* Maximized view layout */
.video-container.maximized {
display: flex;
flex-direction: row;
}
.video-container.maximized .main-video {
width: 80%;
height: 100%;
}
.video-container.maximized .side-videos {
width: 20%;
height: 100%;
display: flex;
flex-direction: column;
overflow-y: auto;
}
.video-container.maximized .side-videos .video-wrapper {
position: relative;
height: 150px;
min-height: 150px;
width: 100%;
margin-bottom: 5px;
}
.video-container.maximized .side-videos video {
height: 100%;
width: 100%;
}
.video-number-label {
font-family: "Helvetica", "Arial", sans-serif;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 48px;
font-weight: bold;
color: white;
z-index: 10;
mix-blend-mode: difference;
}
video {
width: 100%;
height: 100%;
object-fit: contain;
}
</style>
</head>
<body>
<div id="videoContainer" class="video-container"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>