<script lang="ts">
	import type { ArticleSummary } from './types';
	import FullWidthContent from '$lib/content-boxes/FullWidthContent.svelte';

	export let article: ArticleSummary;
</script>

<FullWidthContent>
	<a href="/posts/{article.slug}">
		<article>
			<h1>{article.title}</h1>
			<p>{article.summary}</p>
		</article>
	</a>
</FullWidthContent>

<style>
	a {
		text-decoration: none;
		color: black;
	}
	article {
		height: auto;
		width: 100%;
		margin: auto;
		padding-top: 1px;
		padding-bottom: 5px;
	}

	h1 {
		margin-left: 10px;
		margin-right: 10px;
		font-family: shadowsintolight;
	}

	p {
		margin-left: 10px;
		margin-right: 10px;
	}
</style>
