-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage (6).tsx
More file actions
52 lines (49 loc) · 1.84 KB
/
Copy pathpage (6).tsx
File metadata and controls
52 lines (49 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import type { Metadata } from "next";
import Link from "next/link";
import { Breadcrumbs } from "@/components/Breadcrumbs";
import { PageHero } from "@/components/PageHero";
import { Section } from "@/components/Section";
import { blogPosts } from "@/lib/blog";
export const metadata: Metadata = {
title: "Blog",
description: "Longer-form posts from the CeloHT team on our mission, technology, and programs.",
alternates: { canonical: "/blog" },
};
export default function BlogIndexPage() {
return (
<>
<Breadcrumbs items={[{ label: "Blog" }]} />
<PageHero
eyebrow="Blog"
title="Longer-form thinking from the CeloHT team"
lead="For quick updates, see News. This is where we go deeper on why we make the choices we make."
/>
<Section>
<div className="space-y-6">
{blogPosts.map((post) => (
<Link
key={post.slug}
href={`/blog/${post.slug}`}
className="block rounded-2xl border border-navy-700/15 p-6 transition-colors hover:border-gold-500/50 dark:border-parchment-100/10"
>
<time className="font-mono text-xs uppercase tracking-wide text-ink-soft dark:text-parchment-100/50">
{new Date(post.date).toLocaleDateString("en-US", {
year: "numeric",
month: "long",
day: "numeric",
})}
</time>
<h2 className="mt-2 font-display text-2xl font-semibold">{post.title}</h2>
<p className="mt-2 text-sm text-ink-soft dark:text-parchment-100/70">
{post.excerpt}
</p>
<p className="mt-3 text-sm font-medium text-gold-800 dark:text-gold-300">
Read more →
</p>
</Link>
))}
</div>
</Section>
</>
);
}