<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/opensource';

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

<svelte:head>
	<title>{meta?.title ?? `${user.displayname} — Open Source`}</title>
	<meta name="description" content={meta?.description ?? 'Open source projects'} />
</svelte:head>

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

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