<script lang="ts">
	import TerminalTUI from '$lib/components/TerminalTUI.svelte';
	import { user } from '$lib/config';
	import { getPageSpeedMultiplier, getPageAutoscroll } from '$lib';
	import { lines } from '$lib/pages/components';

	const speed = getPageSpeedMultiplier('components');
	const autoscroll = getPageAutoscroll('components');

</script>

<svelte:head>
	<title>Components | {user.displayname}</title>
	<meta name="description" content="Terminal UI Components Showcase" />
</svelte:head>

<div class="components-container">
	<TerminalTUI {lines} title="~/components" interactive={true} {speed} {autoscroll} />
</div>

<style>
	.components-container {
		padding: 2rem 1rem;
		min-height: calc(100vh - 60px);
	}
</style>
