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

	const speed = getPageSpeedMultiplier('packages');
	const autoscroll = getPageAutoscroll('packages');
	const meta = pageMeta['/projects/packages'];
</script>

<svelte:head>
	<title>{meta?.title ?? `${user.displayname} — Packages`}</title>
	<meta name="description" content={meta?.description ?? 'Published packages'} />
</svelte:head>

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

<style>
	.packages-container {
		padding: 0;
		min-height: calc(100vh - 60px);
	}
</style>
