Initial commit

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-05-11 15:55:14 -04:00
commit 290ff0bc1e
41 changed files with 7998 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
---
import SectionHeading from './SectionHeading.astro';
import type { NewsItem } from '../lib/fallback-data';
import { formatDate } from '../lib/format';
type Props = {
news: NewsItem[];
title?: string;
description?: string;
};
const { news, title = 'Latest news', description = 'Fresh updates, operational changes, and airport announcements.' } = Astro.props as Props;
---
<section>
<SectionHeading eyebrow="News" title={title} description={description} />
<div class="cards-grid">
{news.length > 0 ? (
news.map((item) => (
<article class="card">
<p class="meta">{formatDate(item.publish_date)}</p>
<h3><a href={`/news/${item.slug}/`}>{item.title}</a></h3>
<p>{item.summary}</p>
</article>
))
) : (
<article class="card">
<h3>No news items</h3>
<p>News articles will be generated from Directus at build time.</p>
</article>
)}
</div>
</section>