<script lang="ts">
	import { Button } from '$lib/components/ui/button'
	import { Separator } from '$lib/components/ui/separator'
	import {
		Check,
		QrCodeIcon,
		XIcon,
		ChartAreaIcon,
		ExternalLinkIcon,
	} from 'lucide-svelte'
</script>

<main class="flex w-full flex-col items-center pt-24">
	<div class="flex w-full max-w-6xl flex-col gap-12 p-4">
		<div class="flex flex-col items-center gap-10 text-center">
			<h1
				class="bg-gradient-to-r from-orange-300 to-orange-400 bg-clip-text text-6xl font-bold text-transparent">
				Kon.sh
			</h1>
			<p class="max-w-sm text-center text-xl font-semibold">
				Open Source Self-hostable Link Shortener With Analytics
			</p>
			<Button
				href="/signup"
				class="w-fit bg-orange-400 hover:bg-orange-300">
				Get Started
			</Button>
		</div>
		<div class="flex flex-col items-center gap-10 pt-12 text-center">
			<h1 class="text-4xl font-bold">Why Kon.sh?</h1>
			<p class="max-w-lg text-center text-xl font-semibold">
				Kon.sh is completely self-hostable, open source, and free. No
				vendor lock-in, can be hosted using docker/docker compose with
				no limitations.
				<!-- <a href="/landing/docs" class="text-orange-400 underline">
					Learn More
				</a> -->
			</p>
		</div>
		<section id="features" class="pt-12">
			<div
				class="flex w-full flex-col items-center gap-10 text-center">
				<h1 class="text-4xl font-bold">Features</h1>
				<div
					class="grid w-full grid-cols-[repeat(auto-fit,_minmax(250px,_1fr))] gap-4">
					<div class="flex gap-8 rounded-lg p-8">
						<div class="flex w-full flex-col gap-4 text-start">
							<div class="flex flex-col items-center justify-center">
								<QrCodeIcon size={128} class="text-orange-400" />
								<h2 class="text-xl font-semibold">Custom QR Codes</h2>
							</div>
						</div>
					</div>
					<div class="flex gap-8 rounded-lg p-8">
						<div class="flex w-full flex-col gap-4 text-start">
							<div class="flex flex-col items-center justify-center">
								<ChartAreaIcon size={128} class="text-orange-400" />
								<h2 class="text-xl font-semibold">Analytics</h2>
							</div>
						</div>
					</div>
					<div class="flex gap-8 rounded-lg p-8">
						<div class="flex w-full flex-col gap-4 text-start">
							<div class="flex flex-col items-center justify-center">
								<ExternalLinkIcon
									size={128}
									class="text-orange-400" />
								<h2 class="font-semibol text-xl">Custom Domains</h2>
							</div>
						</div>
					</div>
				</div>
			</div>
		</section>
		<section id="pricing" class="pt-12">
			<div
				class="flex w-full flex-col items-center gap-10 text-center">
				<h1 class="text-4xl font-bold">Pricing</h1>
				<div
					class="grid w-full grid-cols-[repeat(auto-fit,_minmax(450px,_1fr))] gap-4">
					<div class="flex gap-8 rounded-lg border p-8">
						<div class="flex w-full flex-col gap-4 text-start">
							<h2 class="text-2xl font-bold">Free (demo)</h2>
							<p>No credit card required.</p>
							<Separator />
							<div class="flex flex-col gap-4">
								<div class="flex items-center gap-2">
									<Check class="text-orange-400" />
									<p>Unlimited Links</p>
								</div>
								<div class="flex items-center gap-2">
									<Check class="text-orange-400" />
									<p>Unlimited Projects</p>
								</div>
								<div class="flex items-center gap-2">
									<XIcon class="text-orange-400" />
									<p>Will be limited in future</p>
								</div>
							</div>
						</div>
						<div
							class="flex w-full flex-col items-center justify-center gap-4 rounded-xl bg-gradient-to-r from-orange-300 to-orange-400 text-start">
							<div class="flex items-end gap-2">
								<h1 class="text-3xl font-bold">$0</h1>
								<span>/month</span>
							</div>
							<Button href="/signup" class="bg-background">
								Get Started
							</Button>
						</div>
					</div>
					<div class="flex gap-8 rounded-lg border p-8">
						<div class="flex w-full flex-col gap-4 text-start">
							<h2 class="text-2xl font-bold">Free (Self Host)</h2>
							<p>No credit card required.</p>
							<Separator />
							<div class="flex flex-col gap-4">
								<div class="flex items-center gap-2">
									<Check class="text-orange-400" />
									<p>Unlimited Links</p>
								</div>
								<div class="flex items-center gap-2">
									<Check class="text-orange-400" />
									<p>Unlimited Projects</p>
								</div>
								<div class="flex items-center gap-2">
									<Check class="text-orange-400" />
									<p>Basically No Limits</p>
								</div>
							</div>
						</div>
						<div
							class="flex w-full flex-col items-center justify-center gap-4 rounded-xl bg-gradient-to-r from-orange-300 to-orange-400 text-start">
							<div class="flex items-end gap-2">
								<h1 class="text-3xl font-bold">$0</h1>
								<span>/month</span>
							</div>
							<Button href="/signup" class="bg-background">
								Get Started
							</Button>
						</div>
					</div>
				</div>
			</div>
		</section>
	</div>
</main>
