Spaces:
Running
Running
Mobile fixes: portrait camera, OffscreenCanvas + GPU fallbacks
Browse files
assets/{index-Cz6a28xH.js → index-BCIuzTYl.js}
RENAMED
|
The diff for this file is too large to render.
See raw diff
|
|
|
index.html
CHANGED
|
@@ -29,7 +29,7 @@
|
|
| 29 |
color: rgb(229, 229, 229);
|
| 30 |
}
|
| 31 |
</style>
|
| 32 |
-
<script type="module" crossorigin src="./assets/index-
|
| 33 |
</head>
|
| 34 |
<body
|
| 35 |
class="bg-gradient-to-b from-neutral-950 via-neutral-950 to-neutral-900 text-neutral-100 min-h-screen"
|
|
@@ -62,18 +62,20 @@
|
|
| 62 |
</header>
|
| 63 |
|
| 64 |
<section
|
| 65 |
-
|
|
|
|
|
|
|
| 66 |
>
|
| 67 |
<video
|
| 68 |
id="webcam"
|
| 69 |
-
class="w-full h-full object-
|
| 70 |
autoplay
|
| 71 |
muted
|
| 72 |
playsinline
|
| 73 |
></video>
|
| 74 |
<canvas
|
| 75 |
id="overlay"
|
| 76 |
-
class="absolute inset-0 w-full h-full pointer-events-none scale-x-[-1]"
|
| 77 |
></canvas>
|
| 78 |
<div
|
| 79 |
id="personal-calib-overlay"
|
|
@@ -98,7 +100,7 @@
|
|
| 98 |
<div class="text-neutral-400 text-sm">Show your</div>
|
| 99 |
<div
|
| 100 |
id="personal-calib-emotion"
|
| 101 |
-
class="text-5xl font-bold text-white capitalize tracking-tight"
|
| 102 |
>
|
| 103 |
happy
|
| 104 |
</div>
|
|
|
|
| 29 |
color: rgb(229, 229, 229);
|
| 30 |
}
|
| 31 |
</style>
|
| 32 |
+
<script type="module" crossorigin src="./assets/index-BCIuzTYl.js"></script>
|
| 33 |
</head>
|
| 34 |
<body
|
| 35 |
class="bg-gradient-to-b from-neutral-950 via-neutral-950 to-neutral-900 text-neutral-100 min-h-screen"
|
|
|
|
| 62 |
</header>
|
| 63 |
|
| 64 |
<section
|
| 65 |
+
id="video-container"
|
| 66 |
+
class="relative rounded-xl overflow-hidden bg-black shadow-2xl ring-1 ring-neutral-800/60 mx-auto"
|
| 67 |
+
style="aspect-ratio: 16 / 9; max-height: 75vh; width: 100%"
|
| 68 |
>
|
| 69 |
<video
|
| 70 |
id="webcam"
|
| 71 |
+
class="w-full h-full object-contain scale-x-[-1]"
|
| 72 |
autoplay
|
| 73 |
muted
|
| 74 |
playsinline
|
| 75 |
></video>
|
| 76 |
<canvas
|
| 77 |
id="overlay"
|
| 78 |
+
class="absolute inset-0 w-full h-full pointer-events-none object-contain scale-x-[-1]"
|
| 79 |
></canvas>
|
| 80 |
<div
|
| 81 |
id="personal-calib-overlay"
|
|
|
|
| 100 |
<div class="text-neutral-400 text-sm">Show your</div>
|
| 101 |
<div
|
| 102 |
id="personal-calib-emotion"
|
| 103 |
+
class="text-3xl sm:text-5xl font-bold text-white capitalize tracking-tight"
|
| 104 |
>
|
| 105 |
happy
|
| 106 |
</div>
|