responsive stuff

This commit is contained in:
Graham Hall
2022-12-09 13:14:45 -05:00
parent 18287083b9
commit 3116dc3889
5 changed files with 40 additions and 14 deletions
+15
View File
@@ -0,0 +1,15 @@
---
import { format } from "date-fns";
interface Props {
title: String;
date: String;
}
const { title, date } = Astro.props;
---
<div class="blog-header">
<h4>{title}</h4>
<h5>{`🗓️ ${format(new Date(date), "MMM do, y")}`}</h5>
</div>