fix bug in vercle i think

This commit is contained in:
RezHackXYZ 2025-05-11 19:22:17 +05:30
parent 5eb9e9d4f6
commit daadc57229
No known key found for this signature in database
5 changed files with 176 additions and 27 deletions

View file

@ -1,12 +1,12 @@
<!doctype html>
<html lang="en" style="height: 100%; margin: 0">
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover" style="height: 100%; margin: 0">
<div style="display: contents" style="height: 100%; margin: 0">%sveltekit.body%</div>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>

View file

@ -3,8 +3,4 @@
let { children } = $props();
</script>
<div class="h-full text-white">{@render children()}</div>
<style>:root {
background-color: black;
}</style>
{@render children()}

View file

@ -1,19 +1,2 @@
<script>
import { goto } from '$app/navigation';
</script>
<div class="bg-grey-900 flex h-full items-center justify-center">
<div class="flex flex-col items-center justify-center gap-1 rounded-lg bg-gray-900 p-8 shadow-lg">
<h1 class="m-[0] text-6xl">DaKahootClone</h1>
<p class="m-[0] mb-2 text-lg text-gray-400">The best eveer kahoot clone.</p>
<button
on:click={() => goto('/join')}
class="cursor-pointer rounded-full bg-green-700 p-2 transition-all hover:scale-110 hover:-rotate-10"
>Join a game</button
>
<button
class="cursor-pointer rounded-full bg-blue-700 p-2 transition-all hover:scale-110 hover:-rotate-10"
on:click={() => goto('/create')}>Create and Host a game</button
>
</div>
</div>
<h1>Welcome to SvelteKit</h1>
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>