another small ui fix
This commit is contained in:
parent
07da5e72cc
commit
00ab7c80b5
@ -4,6 +4,7 @@ html,
|
|||||||
body {
|
body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
|
background-color: #e7f7df;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes fade-in {
|
@keyframes fade-in {
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
<div class="min-h-full bg-[#e7f7df]">
|
|
||||||
<slot />
|
|
||||||
</div>
|
|
@ -75,6 +75,18 @@
|
|||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
if (typeof window !== 'object') return;
|
||||||
|
|
||||||
|
const listener = () => {
|
||||||
|
const container = document.getElementById('container') as HTMLDivElement;
|
||||||
|
container.style.height = document.body.offsetHeight + 'px';
|
||||||
|
};
|
||||||
|
|
||||||
|
listener();
|
||||||
|
window.addEventListener('resize', listener);
|
||||||
|
})
|
||||||
|
|
||||||
const start = () => {
|
const start = () => {
|
||||||
recordingStart = new Date();
|
recordingStart = new Date();
|
||||||
recorder?.start();
|
recorder?.start();
|
||||||
@ -109,21 +121,21 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="min-rh-screen">
|
<div id="container" class="relative w-full">
|
||||||
<div class="rh-screen p-4 min-h-0 grid place-items-center">
|
<div class="absolute left-0 right-0 m-auto h-full w-full max-w-[70vh] p-4">
|
||||||
<video
|
<video
|
||||||
autoplay muted bind:this={video}
|
autoplay muted bind:this={video}
|
||||||
class="opacity-0 h-full w-full min-h-0 max-w-[70vh] object-cover rounded-[40px] bg-[#303030] fade-in"
|
class="opacity-0 h-full w-full object-cover rounded-[40px] bg-[#303030] fade-in"
|
||||||
style="animation-delay: 500ms;"
|
style="animation-delay: 500ms;"
|
||||||
>
|
>
|
||||||
<track kind="captions" />
|
<track kind="captions" />
|
||||||
</video>
|
</video>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="absolute top-0 left-0 right-0 p-6 m-auto w-fit scale-in"
|
class="absolute top-0 left-0 right-0 p-6 m-auto w-fit"
|
||||||
style="animation-delay: 50ms;"
|
|
||||||
>
|
>
|
||||||
<div class="rounded-3xl bg-white px-3 py-1 font-serif text-center w-fit">
|
<div class="rounded-3xl bg-white px-3 py-1 font-serif text-center w-fit scale-in" style="animation-delay: 150ms;">
|
||||||
<h1 class="font-bold text-xl">{now.toLocaleDateString(lang(), { dateStyle: 'long' })}</h1>
|
<h1 class="font-bold text-xl">{now.toLocaleDateString(lang(), { dateStyle: 'long' })}</h1>
|
||||||
<h2 class="text-sm">{now.toLocaleTimeString(lang())}</h2>
|
<h2 class="text-sm">{now.toLocaleTimeString(lang())}</h2>
|
||||||
</div>
|
</div>
|
||||||
@ -154,9 +166,9 @@
|
|||||||
{recordingStart ? 'Stop' : 'Start'}
|
{recordingStart ? 'Stop' : 'Start'}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if recordingURL}
|
{#if recordingURL}
|
||||||
<div class="h-8"></div>
|
<div class="h-8"></div>
|
||||||
|
|
||||||
<div class="p-4 min-h-0 grid place-items-center">
|
<div class="p-4 min-h-0 grid place-items-center">
|
||||||
@ -178,14 +190,7 @@
|
|||||||
Submit
|
Submit
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- <canvas class="hidden" bind:this={renderCanvas}></canvas>
|
|
||||||
<canvas class="hidden" bind:this={captureCanvas}></canvas>
|
|
||||||
<video class="hidden" bind:this={sourceVideo}>
|
|
||||||
<track kind="captions" />
|
|
||||||
</video> -->
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
</style>
|
</style>
|
Loading…
x
Reference in New Issue
Block a user