61 lines
1.4 KiB
HTML
61 lines
1.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;
|
|
}
|
|
video {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="videoContainer" class="video-container">
|
|
<!-- Videos will be added here by JavaScript -->
|
|
</div>
|
|
<script type="module" src="/src/main.ts"></script>
|
|
</body>
|
|
</html>
|