<script lang="ts">
	import { getAuth } from '$lib/auth.svelte';
	import MarketingHome from '$lib/components/home/MarketingHome.svelte';

	const auth = getAuth();
</script>

<svelte:head>
	<title>Tangled &middot; The next-generation social coding platform</title>
	<meta
		name="description"
		content="The next-generation social coding platform. Host repositories on your infrastructure with knots, use stacked pull requests, and run CI with spindles."
	/>
</svelte:head>

{#if auth.currentUser}
	<section class="mx-auto flex w-full max-w-screen-lg flex-col gap-2 px-6 py-8">
		<h1 class="text-2xl font-semibold">Home</h1>
	</section>
{:else}
	<MarketingHome />
{/if}
